LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
PPLLC

Compile Time Conditional Disable Symbols

Status: Duplicate

When deploying code to multiple users with slightly different requirements, it would be useful to have conditional disable symbols available in the compiler to allow creation of multiple versions of the same code. For example, I may have a conditional disable that allows me to change the title of the main program window or loads a different spalsh graphic.  

 

I may also want to have a 'lite' version or a simulation version of code for demonstration purposes, but both rely on the same fully functional code base. Presently, I have to change the conditional disable symbol value in the project and resave everytime I want to create a different version of the same software (with a different feature set).

Chris
Practical Physics, LLC
www.practicalphysicsllc.com
4 Comments
MatthewHarrison
Member

I hope it is in keeping with PPLLC's intent, but I have long wished that there was a setting within the Build Specification to set build specific conditional disable symbols.  I assume this is what is meant by "compile time".

 

-Matt

PPLLC
Member

You are correct Matt. I have been switching between languages lately, and I mixed 'compile' with 'build'. Sorry for the confusion.

 

Chris

Chris
Practical Physics, LLC
www.practicalphysicsllc.com
AristosQueue (NI)
NI Employee (retired)
Laura F.
Active Participant
Status changed to: Duplicate