Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

instr extention

I have multiple setups and when I initialize the instruments I need different strings. Sometimes it is GPIB::5::INSTR and others it is just GPIB::5. What determins if the ::INSTR is needed and hod do I change it so all setups act the same. Thanks.
 
Terrill
0 Kudos
Message 1 of 3
(3,076 Views)
I'm not sure I understand why you need different strings. The full VISA Resource Name would be GPIB0::5::INSTR and this is what should be listed in MAX and available when you click the VISA Resource Name. I believe the ::INSTR is optional but I don't know where you got just GPIB0::5 in the first place. Did you manually type this into a resource name control? Normally, you would only have one place in the program where you would provide this anyway. At the beginning of the program, do a VISA Open or use the initialize function in the driver and then pass the duplicate VISA Resource Name output to other parts of the program using a wire.
0 Kudos
Message 2 of 3
(3,075 Views)
what you describe is what we do. In the beginning we always provide the address string and have always used just gpib::5. Since upgrading to LabVIEW 7.1 we have some most setups where the GPIB::5 works but we have others where it must be GPIB::5::INSTR. If the GPIB::5::INSTR works for all situations then I will use that.
0 Kudos
Message 3 of 3
(3,070 Views)