LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between CVI and Measurement Studio for C++

I'm confused. What is the difference between LabWindows/CVI and Measurement Studio for C++? I've created a project in CVI, however I want to run it in MS Visual C++ because of the debugging capability. When I try to build my code in MS Visual C++ I get link errors like "unresolved external symbol _RunUserInterface@0". Also, what needs to be added to the code besides the gpib.h file in order to communicate to the gpib controller?
0 Kudos
Message 1 of 4
(3,373 Views)
AFAIK, Measurement Studio is a suite of products, one of which is LabWindows/CVI.

If you want to compile CVI code in VC++, you can do so but you have to make sure the appropriate environment is set, and preprocessor directives are included, and CVI run-time libraries are included.

When you install CVI, assuming VC++ is already installed, a new wizard called 'NI Measurement Studio AppWizard' appears in the VC++ File|New|Projects dialog. It has several uses, but you can use this AppWizard to convert a CVI project to an MSVC++ project with [approximately] the right environment and libraries included.

Otherwise, have a look in the CVI on-line help, particularly the 'Programmer Reference|Compiler/Linker Issues|Compatibility with External Compilers' and
'Programmer Reference|Compiler/Linker Issues|Using LabWindows/CVI Libraries in External Compilers'

Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 4
(3,373 Views)
Thanks Martin. I'll give that a try.

Shad
0 Kudos
Message 3 of 4
(3,373 Views)
Yep that did it! Thanks a lot.
0 Kudos
Message 4 of 4
(3,373 Views)