LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB Equipment Query

I'm trying to search for and identify GPIB equipment that is connectoed to a test PC using Labview.  MAX has this functionality built in, but I would like to be able to perform this query using a VI.  Any suggestions??
0 Kudos
Message 1 of 6
(3,747 Views)
Depending on the age of the equipment,much of the newer (last several years) equipment conforms to a standard refered to as SCPI. In this standard there is a standard command that causes  the instrument to respond with its ID  (I don't remember the command, may be as simple as IDN?) Of course you then need to cycle through the possible addresses for the instruments.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 6
(3,735 Views)
In LV7.1 IEE488.2 pallette is a function called FindLstn.  It will return a list of all listners on the bus.
Jim

LV 2020
0 Kudos
Message 3 of 6
(3,731 Views)
The FindLstn function will simply return an array of GPIB addresses. It won't identify instruments like MAX does. Having a VISA Resource Name control on the front panel of a VI and clicking the little dropdown control to the right of the control will accomplish the same thing, though the list will use VISA resource name syntax. You can also get the list using the "VISA Find Resource" function.

MAX simply sends out the *IDN? command to identify instruments. Thus, you can combine the "VISA Find Resource" with the "VISA Write" and "VISA Read" to identiy the instruments:


Message Edited by smercurio_fc on 10-18-2007 12:34 PM

Message 4 of 6
(3,720 Views)
That's good smercurio, I mentally assumed - and neglected to type - the second step of sending *IDN?  I haven't used VISA a lot, but that is a neat way to poll a resource. 
 
Thanks! *****
Jim

LV 2020
0 Kudos
Message 5 of 6
(3,705 Views)
Thanks for all the help. 
0 Kudos
Message 6 of 6
(3,694 Views)