LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I link an app to a dll?

Using CVI 8.0.  While investigating a VISA dll issue, I came across an article that states

"To use NI VISA, link the program with visa32.dll or to use Agilent VISA, link the program with agvisa32.dll."


My question is how do I "link the program" and how can I tell what dll files the program may already be linked with?

Thanks for any suggestions.
0 Kudos
Message 1 of 2
(3,040 Views)
You shouldn't need to do anything special to use visa32.dll. If you want to use NI Visa, first you need to make sure that you've installed the NI-VISA feature from the Device Drivers CD that comes with CVI 8.0. Then, in CVI itself, you just need to call the Visa functions using the VISA library that is pre-loaded by CVI.

If instead you have installed Agilent Visa, I'm pretty sure you can still use the VISA library from CVI. I think Agilent Visa also installs a visa32.dll in your system, which the CVI VISA library can use.

If you have both installed, and you want to switch back and forth between the two, it might be a bit more complicated, and I don't really know the details. (I think you have to run some utility, or at least do some configuration in NI's Measurement and Automation Explorer). If this is what you want to do, I recommend that you post a question about it in the Instrument Control forum, instead of the CVI forum. You'll probably get a better answer there.

Hope this helps.

Luis
0 Kudos
Message 2 of 2
(3,009 Views)