LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to check CVI version during compile?

Hi,

I would like to selectively compile certain sections of code depending on the CVI version (5.5.1 or 7.0), by using preprocessor statements. Is there a macro constant I could check, analogous to the run-time function GetCVIVersion()?

John.
0 Kudos
Message 1 of 3
(3,533 Views)
The value of _CVI_ macro is related to CVI version running: for version 7.1.1 _CVI_ = 711, for version 8.0.1 _CVI_ = 811 and so on. You can find this macro among other useful macros in Options >> Build Options >> Predefined macros


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,525 Views)
Thanks Roberto,
That works nicely.
John.
0 Kudos
Message 3 of 3
(3,516 Views)