Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve the GPIB device serial number

For an application we are developing it is necessary that an application is matched with the correct USB GPIB device, because we use multiple GPIB USB devices the GPIB board id sometimes changes after a restart.

Now we want to retrieve the serial number of the GPIB device so we can match the application with the correct USB GPIB. I know ni stores the information in the file GPIB.ini on windows machines, is there also such a file under linux?

If not is it possible to retrieve the serial number of the USB GPIB device via VISA? Or else how does NI retrieve the serial number before writing it in the GPIB.ini file.

I also know it is possible to retrieve the serial number via the ibask function but this is only possible if you open the GPIB device, but this cannot be done if the device is already in use by another application (application hangs).

0 Kudos
Message 1 of 2
(3,335 Views)
Hello Marco,
 
take a look at the following link, it contains an example VI which shows how to do this:
 
 
Regards,
 
RikP - National Instruments Applications Engineering
Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 2 of 2
(3,298 Views)