03-30-2022 08:03 AM
I am developing a c# application which connect and automate a signal generator using NI_Visa.
Application works fine in my development PC where NI-Visa is installed.
1. References: ivi.Visa, NationalInstruments.Visa
2. using NationalInstrument.Visa;
I am sharing executable as well as DLLs to the user.
Error in user PC:
NI-Visa implementation not found
System.DLLnotfoundException, unable to load 'nivisa64.dll'
How do I include nivisa64.dll with the executable for deployment?
(I cant ask the user to install NI_visa or other drivers in their machine)
04-05-2022 12:17 PM
Hi Vyshakh,
Did you already review this article: After Installing 3rd Party VISA Software NI-VISA No Longer Works.
How did you deploy your application? Did you create a msi with the Installer Builder and run it on the target pc. Did you verify that the driver is installed on the system? What version of NI-VISA are you using?
Regarding your question, you cannot include the driver with the executable, you need to install it on the target pc so you have two options:
1- Download the VISA runtime from here.
2- Deploy the driver using the Installer Builder following the instructions here.