LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I program in C++ inside of the LabWindows/CVI environemnt?

I want to learn C++ programming while I am utilizing LabWindows/CVI to develop my instrumentation. Does CVI support object-oriented programming?
0 Kudos
Message 1 of 3
(3,963 Views)
LabWindows CVI supports ANSI C, not C++.
In several of my applications, I needed to utilize existing C++ code. I use Visual C++ to generate a DLL and call those DLL functions from my CVI app.
0 Kudos
Message 2 of 3
(3,963 Views)

Hi,

You can also use the CVI libraries in VC++; that way you can compile C++ code and still use a CVI UI or any of the other functions; you loose the function panels and a bunch of the aids that CVI includes; however it is definatelly usefull.

If you have Measurement Studio installed on you computer together with VC++ you can use the Measurement Studio wizard that converts the CVI project to a VC++ project and creates the callback table so that VC++ can associate the callbacks with the UI.

You can find more information about this in the following document and the links on it: Does LabWindows/CVI Support C++?.

I hope this helps.

Regards,


Juan Carlos
N.I.

Message 3 of 3
(3,963 Views)