LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Checking for GPIB devices

Solved!
Go to solution

Hello,

 

   I have some code that sends a "*IDN?" to GPIB addresses 1 thru 31, if I get a response to the query I assume that a GPIB device exists at the address. This approach gets all hosed up when I have a GPIB instrument that does does support/recognize the *IDN? query.   MAX however is able to recognize that a GPIB device does exist at the address of the instrument that I have. Any ideas of how to recognize/detect if a GPIB device exists if it does not respond to a *IDN?

 

Regards

 

 

Kaspar

Regards,


Kaspar
0 Kudos
Message 1 of 9
(5,403 Views)
I don't remember the exact sequence that is used in MAX. It uses low level GPIB functions. To get the sequence of function calls, turn on NI-Spy and do a Scan For Instruments.
Message 2 of 9
(5,394 Views)

Hello,

 

  I used NI-spy to see what Max does and looked at the low level calls. There is a function called FindLstn that finds all of the listening devices on the GPIB bus. So now I have to see if there is such a low level call in Labview. The saga continues...

 

Regards,

 

Kaspar

Regards,


Kaspar
0 Kudos
Message 3 of 9
(5,368 Views)
Message 4 of 9
(5,359 Views)
Solution
Accepted by Kaspar
Use the function of the same name on the Instrument I/O>GPIB>488.2 palette.
Message 5 of 9
(5,358 Views)

Hello,

 

  I used the find listener function and it works just the way I want it to. Now I have a way to identify devices that do not respond to a *IDN? query.

 

Thanks again....

 

Regards,

 

 

Kaspar

Regards,


Kaspar
0 Kudos
Message 6 of 9
(5,339 Views)

Kaspar wrote:

it works just the way I want it to. Now I have a way


Hai Kaspar,

 

Can you please post that code. This will help me now and will help others also in future.

 

Thanks,

Mathan

0 Kudos
Message 7 of 9
(4,944 Views)

Kaspar wrote:

 

I used NI-spy to see what Max does


When I press the Start button of NI Spy, nothing happens. It stays only blank. Smiley Indifferent

 

Am I using it wrongly?

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 8 of 9
(4,898 Views)

parthabe wrote:

 

When I press the Start button of NI Spy, nothing happens. It stays only blank. Smiley Indifferent


It stays blank initially. Once you start sending some commands, it will be captured. Launch NI Spy and use MAX - VISAIC (VISA Interactive Control) and do some change in attributes and see what's happening in Spy.

 

Mathan

0 Kudos
Message 9 of 9
(4,878 Views)