Hi VRF,
Some time ago, there was a discussion about "Programmatic selection of instruments/interfaces" and the appropriate I/O configuration. Unfortunately the question how to do that with serial control has not been answered...
I want the address of the instruments be changeable by a setup function (all instruments connected to the PC RS232 interface). The aim is that one lab-PC can have instrument 'abc' connected to COM1 while another lab-PC has instrument 'abc' connected to COM2.
My (embedded) I/O configuration is as follows (Vee 8):
----ASRL0 //COM1
-----'abc'
----ASRL1 //COM2
-----'def'
----ASRL2 //COM3
-----'ghi'
I tried to change the Com Port of 'abc' from COM1 to COM2 by using "IO.abc.visaAddress="ASRL1::INSTR" from "Function browser-->Instruments->Serial Instruments".
Reading back the address of 'abc' results in "ASRL1::INSTR", however the instrument does NOT perform any I/O action on Com2, but still on COM1!? The I/O box of 'abc' is placed in the same thread as the formula which changes the address.
I noticed that the above instruments have an attribute "ppAddr" (value "ASRLx::INSTR") in the I/O config file which can not be changed programmatically (with GPIB instruments this seams to be possible)...
Any ideas?
Sebastian
---
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".
Some time ago, there was a discussion about "Programmatic selection of instruments/interfaces" and the appropriate I/O configuration. Unfortunately the question how to do that with serial control has not been answered...
I want the address of the instruments be changeable by a setup function (all instruments connected to the PC RS232 interface). The aim is that one lab-PC can have instrument 'abc' connected to COM1 while another lab-PC has instrument 'abc' connected to COM2.
My (embedded) I/O configuration is as follows (Vee 8):
----ASRL0 //COM1
-----'abc'
----ASRL1 //COM2
-----'def'
----ASRL2 //COM3
-----'ghi'
I tried to change the Com Port of 'abc' from COM1 to COM2 by using "IO.abc.visaAddress="ASRL1::INSTR" from "Function browser-->Instruments->Serial Instruments".
Reading back the address of 'abc' results in "ASRL1::INSTR", however the instrument does NOT perform any I/O action on Com2, but still on COM1!? The I/O box of 'abc' is placed in the same thread as the formula which changes the address.
I noticed that the above instruments have an attribute "ppAddr" (value "ASRLx::INSTR") in the I/O config file which can not be changed programmatically (with GPIB instruments this seams to be possible)...
Any ideas?
Sebastian
---
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".
I keep waiting for somebody to answer Sebastian's question since the problem he's facing is one of the two major RS232 Vee issues that originally drove me to use CommX.ocx rather than the built-in serial port capability (see my recent Kernel32 messages). For what its worth, the second major issue was the inability to obtain data received prior to a port time-out. In those days (maybe still) Vee assumed a time-out indicated an error and dumped any data that had arrived. For me, a pause in the data stream was a legitimate message terminator.
Barrie
Sebastian Giessmann wrote:
> Hi VRF,
>
> Some time ago, there was a discussion about "Programmatic selection of
> instruments/interfaces" and the appropriate I/O configuration.
> Unfortunately the question how to do that with serial control has not
> been answered...
>
> I want the address of the instruments be changeable by a setup
> function (all instruments connected to the PC RS232 interface). The
> aim is that one lab-PC can have instrument 'abc' connected to COM1
> while another lab-PC has instrument 'abc' connected to COM2.
>
> My (embedded) I/O configuration is as follows (Vee 8):
>
> ----ASRL0 //COM1
> -----'abc'
> ----ASRL1 //COM2
> -----'def'
> ----ASRL2 //COM3
> -----'ghi'
>
> I tried to change the Com Port of 'abc' from COM1 to COM2 by using
> "IO.abc.visaAddress="ASRL1::INSTR" from "Function
> browser-->Instruments->Serial Instruments".
>
> Reading back the address of 'abc' results in "ASRL1::INSTR", however
> the instrument does NOT perform any I/O action on Com2, but still on
> COM1!? The I/O box of 'abc' is placed in the same thread as the
> formula which changes the address.
>
> I noticed that the above instruments have an attribute "ppAddr" (value
> "ASRLx::INSTR") in the I/O config file which can not be changed
> programmatically (with GPIB instruments this seams to be possible)...
>
> Any ideas?
>
> Sebastian
>
> ---
> You are currently subscribed to vrf as: bwalden@whoi.edu
> 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: 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".