Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Why VS2010 MFC program with NI driver can't work in other PC

Solved!
Go to solution

Hello,

     I have installed NI MAX software on my PC. I create a 32bit MFC program using VS2010, the program will call NI Driver(visa32.dll and NiViSv32.dll), I put these 2 *.dll in my exe program's folder. I can access instruments(Keithley Power supply, Fluke8816A meter and etc.) using VISA interface, it works without any problem. When I send the this program to my colleague, he can't use this program to access instrument. Even the program can't set the instrument from local to remote in his PC. He has also installed NI MAX software. I add some debug message and only "cannot open a session to the device" message was print out. What's the possible reason for that? Thanks.

 

0 Kudos
Message 1 of 5
(3,208 Views)

You should need to install the legacy C++ package of Measurement studio . This is you get from NI.

 

Message 2 of 5
(3,193 Views)

Thank you for your reply. I don't know the relationship of NI driver(nivisa32.dll, NiViSv32.dll and nisyscfg.dll) and Measurement studio. If I install measurement studio in my pc, what should I do before I recompile my vs2010 project? Which *.dll file should I copy to other PC except for the generated *.exe file?

Message 3 of 5
(3,178 Views)
Solution
Accepted by topic author jimmybai
0 Kudos
Message 4 of 5
(3,156 Views)
Thank you very much.
0 Kudos
Message 5 of 5
(3,135 Views)