LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Autodetect GPIB Instrument

Is there any way to autodetect the GPIB instruments connected to my system, like autodetecting the PXI slots & cards?

 

LabVIEW 8.5

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 1 of 8
(3,369 Views)

Hi..

 

The only way I know of, in the NI world currently, is with NiMAX (the Measurement and Automation eXplorer)   That has funcitons to scan the bus for active instruments, and return a list on screen with their details as found ***

 

I do not know (but would be suprised if there wasn't) a way to call that from within LV?   This is something I've got to figure out too.  (LabVIEW that is)

 

*** Not all instruments will reply to a '*IDN?' query, most modern ones will, but there are even some right bang up to date devices that will stay silent, unless you manually put them into 'Remote' mode first...

 

Of those that do reply, don't expect any sort of common standard as to the structure their reply, other than somewhere in the string they send you, there will be a manufacturer and model number, maybe a serial number too.  Each and every instrument maker has their own idea about the way they do all that...

 

I think there was a push some years back to formalise that, but it never seemed to get off the ground from what I can see.  The idea was to have something along the lines of SCPI in reverse (it might even have been part of the SCPI spec?) so that any software could not only identify an instrument, but learn what it was capable of doing etc...  You can immagine that is a somwhat open ended loop of a task, at best.

 

Otherwise, you're going to have to poll the bus with a short timeout, and effectivly scan all posible addresses, to see if the handshake completes when you try to address something, then try to identify what might be lurking at that address.

 

Look for NiSpy on your system, then use that in conjunction with NiMAX, and see how it all works, or not as the case may be.   Then see if there is a way to use NiMAX from LabVIEW.  If it can't it would be good if it could in the future.

 

Regards.

 

DJB.

 

OK... Who let the smoke out?
Message 2 of 8
(3,351 Views)

Thanks DJB! Smiley Happy

 

Sorry, I ve cross-posted it in the Instrument Control board already, in the hope of getting more responses.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 8
(3,343 Views)

What's with "VISA Find Resource.vi"?

 

 

Christian

Message 4 of 8
(3,331 Views)

Christian_M wrote:

What's with "VISA Find Resource.vi"?


 

Not all the instruments will respond to *IDN?

0 Kudos
Message 5 of 8
(3,324 Views)
VISA Find Resources has nothing at all to do with *IDN?. An instrument that does not respond to this will still be detected by MAX and will be returned with the find resources function.
Message 6 of 8
(3,320 Views)

No worries, looked at the replies there, and have just had a play with the FindListners function myself.

 

Cheers.

 

DJB

 

OK... Who let the smoke out?
0 Kudos
Message 7 of 8
(3,318 Views)

@Mathan   I don't really understand what "VISA Find Resource.vi" has in common with writing an *IDN? to a specific insturment?

 

For GPIB it returns the installed interface (GPIB0::INTFC) as well as the connected Instruments (GPIB0::2::INSTR)

 

 

Christian

Message Edited by Christian_M on 10-22-2009 06:46 AM
0 Kudos
Message 8 of 8
(3,315 Views)