LabVIEW Idea Exchange

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

Conditional Disable Symbol Constants

Status: New

Currently we can use a Conditional Disable Symbol (CDS) only as some "special kind of case selector".

There is no way to get the actual content of a CDS.

 

I think there should be a Conditional Disable Symbol Constant. 

This would behave exactly like a string constant, but it's value would change with the attached CDS.

 

This would enable us to generate log files or messages (especially on RT systems) that carry more valuable information.

In some cases it would also enable  us to use CDS similar to #define in C.

 

3 Comments
TCPlomp
Trusted Enthusiast

So a sub-vi that outputs the value of a specific CDS?

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
silmaril
Member

Such a Sub-VI would definitely help.

 

Since Conditional Disable Structures are handled at compile time, I think the more appropriate way would be a string constant for which the compiler sets the value to the current content of a certain CDS.

 

shb
Active Participant
Active Participant

Reading a Conditional Disable Symbol in a project (not in an executable):

forums.ni.com/.../Programmatic-read-access-to-project-symbols/