08-24-2011 01:14 PM
I have one computer which has Measurement studio installed, but is old and slow. I want to continue developing code I started writing on another computer. I copied the National Instruments dlls I need, specifically DAQmx, Common, and VisaNS. However, running this code on another computer, I get the error "Could not load file or assembly 'NationalInstruments.VisaNS, Version=9.0.20.156, Culture=neutral, PublicKeyToken=4544464cdeaab541' or one of its dependencies. An attempt was made to load a program with an incorrect format."
Is this because I do not have a license for Measurement Studio on the new computer? If so, do I have any options for developing code that don't require a Measurement Studio license?
08-24-2011 02:15 PM
Solved this- turns out I was copying the drivers from a 32-bit CPU machine to a 64-bit CPU machine. I fixed it by telling Visual Studio to run my code in 32 bit mode using Project-> project properties and then setting the platform target to 32 bit on the build tab.