LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

use c++ STL <vector> and <string> in labwindows/CVI

Hello All, I have been using Labwindows/CVI to talk to some GPIB instruments on a lab test rack. I have been using simple arrays and char* but would like to use vectors and strings like with c++ STL specificall #include <vector> #include <string> which I have used in visual studio c++ 2008 .. I can't figure out or find a post about how to use these in the CVI developer. FYI I am using the labwindows GUI form with callbacks etc... Hopefully this is enough info, but I will happily use more details if it would help. Thanks in advance.
Douglas Sappet
Test Hardware Development Engineer
Allegro Microsystems Inc.
Manchester, NH
0 Kudos
Message 1 of 2
(3,987 Views)

unfortunately, CVI is a pure C compiler. it will not compile C++ code, and the vector and string datatypes are part of the C++ standard library.

i've never tried this, but it seems you can use the CVI libraries in Visual Studio, which may allow you to use strings and vectors along with the GPIB library.

Message 2 of 2
(3,963 Views)