Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you enumerate GPIB boards?

I would like to find out what boards are available to me when I start my program. Is there a way I can enumerate which GPIB boards are available? Typically there will be only 1, but there could potentially be many or even none at all.

Thanks!
0 Kudos
Message 1 of 3
(3,542 Views)
VISA has a function (viFindRsrc) that will enumerate all of the available VISA resources on your system. You can specify a mask such that the results will only contain the resources associated with GPIB interfaces.


Documentation of this function can be found on page 5-20 of the VISA Function Reference Manual at http://www.ni.com/pdf/manuals/321073c.pdf
Message 2 of 3
(3,542 Views)
Okay. That function works great. I downloaded the VISA developers package, developed my application and now I'm ready to distribute. I stuffed visa32.dll into my installer and my application complains of missing nivilo32.dll. So I stuffed that into the installer, too. But now it's missing nivisv32.dll.

So, a couple of questions.

First, is what I'm doing legit? Can I redistrubute the VISA DLLs? At first I thought that since I could get a package online that the DLLS are free, but after reading the license agreements, I'm not so sure anymore. It seems that the end-user must have a copy of LabView? I just want to enumerate what GPIB devices are active. I'm not making my own device driver, and my application has nothing to do with LabView. To me, t
hat means that my program is not included in "7B" if of the EULA, but it still seems as if the end user needs to have previously purchased LabView. So does that mean I cannot freely redistribute the DLLs? Tthe license agreement is confusing.

Providing that I can redistribute the DLLs necessary to use the one VISA function, which DLLs are they? What files do I need to redistribute? I can't find any documentation on what the base-bones redistribution file list is.


Thanks for the help!
0 Kudos
Message 3 of 3
(3,542 Views)