Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get data from GPIB port by VISA API?

Solved!
Go to solution

Hi, friends. I am new to LabView. Presently, I want to read the data in the GPIB bus, and I also got a example vi as "basic_gpib_write_and_read". My problem is how to get the command list for "Command to Send to Instrument", especially for the operation of "read". 

 

Would you please give me some help?

 

Thank you very much.

0 Kudos
Message 1 of 7
(4,225 Views)

Hi

What you need to send as a command and what you receive is more dependant on the instrument than on the gpib bus.

So which instrument are you trying to read and write ?

greetings from the Netherlands
0 Kudos
Message 2 of 7
(4,212 Views)

Thanks Albert:

In our lab, we connect our PC and ECU (from Thorlab) by a gpib cable. The PC will send control signal to ECU, and what I want to get is the data that was sent by PC.

 

I hope I can make some sense.

 

Thank you.

0 Kudos
Message 3 of 7
(4,208 Views)
Solution
Accepted by topic author colorizedice

Hi

You say the pc sends a control signal and also some data that you want to get.

Which program on the pc is preparing that data?

 

Is it another program maybe from Thorlabs?

 

In that case you can use NI IO trace to see what happens on the bus.

LabVIEW also can control that ECU but from your mail I understand it is already controlled. 

greetings from the Netherlands
0 Kudos
Message 4 of 7
(4,198 Views)

Wow. I got much inspiration. Thanks.

Have a good weekend.

0 Kudos
Message 5 of 7
(4,195 Views)

So exactly what is the step-by-step to get data from GPIB through Labview???

0 Kudos
Message 6 of 7
(4,070 Views)

Open the VISA connection to the instrument, write to the instrument with VISA Write, read from the instrument with VISA Read, and when done with everything, close the connection.  Now what commands you have to send the instrument depends on your instrument.



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 7 of 7
(4,047 Views)