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

Dll reference not working on different computers

$
0
0

I am trying to use Visual Studio 2010 to control some instruments over a GPIB connection using Visual Basic. I have the code working properly onVS2013 running a 4.5 framework, but I'm required to have the code working onVS2010 running the 4.0 framework. On my laptop with the 4.5 framework everything works flawlessly by adding references to NationalInstruments.Common.dll andNationalInstruments.NI4882.dll, then declaring my device using

Dim GPIBdevice As New Device(CInt(0), CByte(9), CByte(0))

On my desktop running VS2010 and the 4.0 framework I run into an error. The code initially recognizes the "Device" class and even has Intellisense pop up with the different constructors possible. When I build the program, I receive an error and a squiggly line pops up under "Device"

 

The error says that I'm missing a reference. I'm having the same error as http://forums.ni.com/t5/Measurement-Studio-for-NET/Missing-assembly-NationalInstruments-Common-Version-13-0-40-188/m-p/2595715/highlight/true#M14809

 

and http://forums.ni.com/t5/Measurement-Studio-for-NET/Still-required-to-install-NationalInstruments-Common-13-0-40-190/td-p/2807540

 

I'm not too familiar with programming and my supervisor said he'd like to avoid using the GAC. Are there any more recent ways to solve this issue or is adding stuff to the GAC my best bet? In the solutions posted in the thread above they mention editting a Common.wxs file, but a search doesn't have that pop up. Where would this file usually be located?

 

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles



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