LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to correctly packpage a CVI project with required libraries

Solved!
Go to solution

Hello,

 

I have created a CVI project which is intended to be a DLL with wrapper functions for a certain device driver. The device driver is the tkmso5x Oscilloscope driver which was developed by NI for a series of Tektronix scopes. When I build my DLL, I am able to include the header file from that driver because I installed the driver on my local machine. The driver was installed at C:\Program Files\IVI Foundation\VISA\Win64. I can also add the .fp file to my "instruments" tree in CVI for ease of accessing functions. 

 

If I want to allow someone else to update the code, is there a way to package the scope driver with my project so that they don't have to install it on their machine? DO I simply add the header, source and .lib files to my local project, or does the other person need to also install the driver on their machine to use it for development?

 

On another note, how do I retain that driver in my instruments tree in CVI? Every time I close CVI, it's removed and I have to load the instrument again after launching. 

 

Thank you

 

 

0 Kudos
Message 1 of 3
(1,506 Views)

The answer to your last question is easy: simply add the .fp file to your project and it will be loaded automatically when you open it.

 

As per other questions, I suppose the most reliable solution is to install the complete driver: on one hand it is possible that the .dll you are calling relies on other components and libraries you may not be aware of; on the other hand the driver could also install some documentation and reference material that may be worth having at hand in development.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(1,481 Views)
Solution
Accepted by topic author TestEngineer11

You can try to edit the distribution and look for the Tektronix driver in "Drivers & Components" tab page.

0 Kudos
Message 3 of 3
(1,465 Views)