Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5625

Deploy a .NET app with NI dlls?

$
0
0

Hello all,

 

I hope I have the right place here.

 

I have a .NET utility I wrote in C# in Visual Studio 13 which I'd like to make freely available.  It uses the NationalInstruments.Common and NationalInstruments.NI4882 dlls to directly read a GPIB instrument.  I have LabView installed and it runs fine on my development system, but when I publish my app and try to install and run on another machine I get an unhandled exception error:

"System.TypeInitializationException: The type initializer for 'NationalInstruments.NI4882.Internal.GpibDll' threw an exception. ---> System.DllNotFoundException: The NI-488.2 Driver library cannot be found.  Either Gpib is not installed, or Gpib is improperly installed. ---> System.DllNotFoundException: Unable to load DLL 'ni4882.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

 

Am I publishing my app incorrectly, or is it not possible to include the NI dlls along with it?  Are the dlls proprietary, so they'll only work if a person has LabView or equivalent installed?

 

Thanks for any help,

Gerrit


Viewing all articles
Browse latest Browse all 5625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>