Just set the "Devicename" control input on the direct I/O object.
It does take a little time and I have not tried it with the new ASRL drivers in 14.2. It may be fast enough now with fast cpu's and the latest drivers.
...Rob
Stan Bischof (Richard S) <rsb@soco.agilent.com>
09/07/2007 11:56 AM
Please respond to
Stan Bischof (Richard S) <rsb@soco.agilent.com>
To
VRF <vrf@agilent.com>
cc
vrf@agilent.com
Subject
Re[2]: [vrf] Programmatic selection of instruments
Richard Wilson <wilsonr@ucalgary.ca> wrote:
>
> Yes, I am using multiple serial RS232 instruments. Each shows up
> under a different COM port so maybe i am chasing the impossible.
>
> > I'm not sure that VEE will allow a
> > direct IO objects to be programmatically assigned to different
> > physical
> > interfaces.
Since with serial devices all you are changing is the address
( 9,10, whatever ) I'd pretty much expect this to work. I doubt
that VEE cares or even knows that 9 and 10 are different physical
interfaces.
You would of course need to set up the interfaces in the IOLIB's
and I suppose you may need to create dummy instruments in the
instrument manager so that it also understands the interfaces,
but otherwise I'd expect this to work.
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: ramarquardt@ra.rockwell.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
--- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
It does take a little time and I have not tried it with the new ASRL drivers in 14.2. It may be fast enough now with fast cpu's and the latest drivers.
...Rob
Stan Bischof (Richard S) <rsb@soco.agilent.com>
09/07/2007 11:56 AM
Please respond to
Stan Bischof (Richard S) <rsb@soco.agilent.com>
To
VRF <vrf@agilent.com>
cc
vrf@agilent.com
Subject
Re[2]: [vrf] Programmatic selection of instruments
Richard Wilson <wilsonr@ucalgary.ca> wrote:
>
> Yes, I am using multiple serial RS232 instruments. Each shows up
> under a different COM port so maybe i am chasing the impossible.
>
> > I'm not sure that VEE will allow a
> > direct IO objects to be programmatically assigned to different
> > physical
> > interfaces.
Since with serial devices all you are changing is the address
( 9,10, whatever ) I'd pretty much expect this to work. I doubt
that VEE cares or even knows that 9 and 10 are different physical
interfaces.
You would of course need to set up the interfaces in the IOLIB's
and I suppose you may need to create dummy instruments in the
instrument manager so that it also understands the interfaces,
but otherwise I'd expect this to work.
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: ramarquardt@ra.rockwell.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
--- You are currently subscribed to vrf as: hua_jing@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Question regarding programmatically selecting instruments: I am use MultiInstruments Direct I/O to control a couple of instruments at a time, but would like to programmatically change the couple of instruments it refers to, i.e., loop through a whole bunch of instruments. There does not seem to be any way to programatically pass instruments to each transaction. Is there any clever way to do this, other than repeat code for each instrument?
Best wishes,
Richard.
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".