12-08-2021 08:59 AM
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
Solved! Go to Solution.
12-09-2021 02:12 AM
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.
12-09-2021 06:28 AM
You can try to edit the distribution and look for the Tektronix driver in "Drivers & Components" tab page.