LabVIEW Idea Exchange

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

Disabling Test/Debug code in exe mode (especially in RT)

Status: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.

Like in other languages, I want to disable Test/Debug code in exe mode and have it execute in run mode.

 

Kind property from the Application Control palette can be used as follows. 

http://digital.ni.com/public.nsf/allkb/454C2048938FCD6E8625706E007FEA52

 

The KB says "When this property node for a VI or executable is used on a real-time system, the property node will always return the value of Embedded LabVIEW."

 

So this won't work for my RT application. Makes this even more important.

 

Also I believe the Conditional Disable Structure should have this as a system defined symbol.

 

Best regards, Pavan 

5 Comments
pavanb
Active Participant

 

The KB says "When this property node for a VI or executable is used on a real-time system, the property node will always return the value of Embedded LabVIEW."

 

So this won't work for my RT application. Makes this even more important.

crossrulz
Knight of NI

The Conditional Disable Structure does this already.  I think the symbol you are looking for is "RUN_TIME_ENGINE".  It accepts "True" (running as an EXE) and "False" (running in the IDE).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
pavanb
Active Participant

Thanks. I had looked at that and it wasn't clear. It works on windows. Haven't tried it on RT.

AristosQueue (NI)
NI Employee (retired)

You can define custom symbols in your project and use them in your Conditional Disable Structures. Add your own "IAmDebugging" token to your project for this use case.

 

(Yes, I too would like such a symbol to be built in... I'm just offering you a way that works today across all platforms, including RT.)

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.