Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from an instrument using a GPIB

Hi all,

 

I'm new to using LabView and am having a few problems. I am trying to use labview to read data from an instrument. The instrument is connected to a pc using a GPIB-USB-HS. I am a little lost going through the help file, is the GPIB read the best function to use and can I take the data and write it to a file?

 

Thanks,

0 Kudos
Message 1 of 3
(3,938 Views)

I think you would be better off using the VISA functions.  When you read from the instrument, the Read VISA function will give you a string.  You will need to decode the string and then you can do with that whatever you want.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(3,937 Views)

And before you start writing any code, select Help>Find Instrument Drivers. You might find something already written for your instrument.

 

And I agree with crossrulz. VISA is the preferred api for instrument communication. It is portable between different protocols (i.e. GPIB/Ethernet/USB/Serial) and different vendors of GPIB controllers.

0 Kudos
Message 3 of 3
(3,934 Views)