Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating and using a VI to control a 488.2 device

I am trying to control an IEEE 488.2 device using labview. I connected a usb GPIB controller to the device and I am recieving signals on the Measurement and Instrumentation explorer. Now, I want to develop a VI on Labview that reads values from the device and uses them. How do I use the device driver/VISA/example GPIB vi ect. to do this?
0 Kudos
Message 1 of 2
(3,068 Views)
It's too esay to do than to explain it but i'll try! The only VIs you'll need to use are Visa READ and Visa WRITE under the Instrument I/O menu. The last one could be used to send strings of commands to the selected instrument whereas the first could be used to read strings of data from the instrument. To select the instrument you must plug a constant value to the "VISA Resource Name" terminal. Labview automatically lists all the possible visa peripherals you need only to select the gpib device and that's all! The same thing when you want to retrive informations from the instrument. In this case you must specify the length of the string to be read which is indicated by an integer number. To know this value you can use NI Spy in the "Measurement and Automation" sui
te and simulate the reading operation. NI Spy will then show the command strings sent to the instrument and the ibrd command show the length of the retrived string (idrd(instr.id,string,length)).
I hope that this explanation could be clear and of some use.
0 Kudos
Message 2 of 2
(3,068 Views)