07-03-2006 12:22 AM
07-03-2006 07:35 PM
07-03-2006 07:44 PM
I can't see what the "address changing" is meaning, but there may be two cases you mean - 1)change the instrument's address at the instrument side, and 2)change the target GPIB address that your app will communicate with.
case 1)
Unless the instrument supports the "address change" feature on the remote operation, you can't do it. Some of recent SCPI based instruments may implement "SYSTem:COMMunicate:GPIB:ADDRess" or similar command to allow changing the GPIB address remotely, but a quite few instruments implement it.
case 2)
To change the target GPIB address that your app communicate with, without modifying your app code, you can use virtual GPIB DEVICE NAME or virtual VISA address. If your GPIB access is through NI-488.2 API, you can use IBFIND() function to open the instrument (instead of IBDEV) with passing a virtual GPIB DEVICE NAME such as "MYDMM". The device name can be configured on the System / Device Manager / GPIB node. If your GPIB access is through NI-VISA API, you can use a virtual VISA address using "VISA Alias" such as mapping "MYDMM" to "GPIB0::1::INSTR" then pass the alias name to viOpen(). The alias name can be configured on the NI-MAX, at Tools | NI-VISA | VISA Options menu.
Makoto
07-04-2006 12:29 AM
I have three silmilar instruments and i want to control them alternately..
07-04-2006 02:36 AM
You may use Session in input on Instrument I/O assistant to change between your instruments???