Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling two instruments with GPIB

I have a Stanford Research Systems PTC10 Temperature controller, and a Fluke/Phillips LCR meter, both connected to my computer via GPIB. I know the individual commands for each instrument and I can query and parse the response from each instrument separately. I now need to send commands to both instruments and get responses from them. For example, I need to:

 

PTC 10 -- Set temperature Tset

PTC 10 -- Query temperature T

If T = Tset, then 

     FLUKE -- Query Capacitance

 

How do I set up such a program?

 

0 Kudos
Message 1 of 5
(3,877 Views)

Assuming you purchased a NI GPIB card, the installation would have included examples in various programming languages.

 

 

0 Kudos
Message 2 of 5
(3,870 Views)

Make sure each instrument has a different GPIB address.  If they are set to the same address, you will have conflicts.  Once you have that set up, you can just send the commands you have been.

 

As far as cabling, you will need two GPIB cables.  Piggy back the cables in a chain, not a star, configuration.



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 3 of 5
(3,849 Views)

Thank you. Yes. I have the instruments cabled with separate GPIB cables, I am using different GPIB addresses.

 

Should I use an Instrument IO assistant for each instrument, or is there a way to send commands without the Instrument IO Assistant?

 

I want to start a project in Labview for this. For each instrument separately, I could send commands successfully. But I don't know the method for conbining the two intsruments into a single project, sending a command to one instrument depending on the state of the other, etc. Is there an example project which I could look at?

 

Thank you again for your time.   

0 Kudos
Message 4 of 5
(3,845 Views)
First, try Help> Find Instrument Drivers. The Instrument Assistant could be used but there is a great deal of overhead in using it. The regular VISA functions are simple to use.

If you have not taken the LabVIEW tutorials, take them now. With an understanding of data flow, you should be able to use two different instruments and control execution order with error in/out terminals. How to use comparison functions, etc. will be included in the tutorials.
0 Kudos
Message 5 of 5
(3,839 Views)