LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

index() function in LabWindows 2013 compiler

Solved!
Go to solution

LabWindows CVI 2013 compiler complained about the use of global "index" variable, even though LabWindows 2010 is OK with that. The error is a redefined error because LabWindows 2013 confused with an old C library string index function. 

Is there any simple solution for that, instead of rename my "index" global variable into some other name?

0 Kudos
Message 1 of 3
(4,346 Views)
Solution
Accepted by topic author nhd973

Hello nhd973!

 

The behaviour you are experiencing is unfortunately a known issue in CVI 2013 (see incompatibilities section):

http://www.ni.com/product-documentation/51877/en/

 

The easiest way around this is to rename your global variable.

However, there is a backdoor that you can use, which forces the LabWindows/CVI compiler to ignore builtins. You may modify the following configuration registry key to these built-ins:

HKEY_CURRENT_USER\Software\National Instruments\CVI\13.0\Environment\DisableBuiltIns

By default, this key value is False. Setting its value to True makes the LabWindows/CVI compiler ignore builtins, so you shouldn't see the error again.

 

Best regards!

- Johannes

0 Kudos
Message 2 of 3
(4,307 Views)

Thanks for your quick response. My question is answered.

0 Kudos
Message 3 of 3
(4,288 Views)