From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-26-2017 08:02 AM
I thought RUN_TIME_ENGINE==TRUE in the conditional disable diagram means that the code inside will only run after compiled as an application. But it turns out that the code will also run when I simply run the VI. What am I missing here?
Solved! Go to Solution.
01-26-2017 08:10 AM - edited 01-26-2017 08:12 AM
You need to set Conditional variable in Project properties. What you're after is probably easier to do with App-property node and check Application Kind.
/Y
01-26-2017 09:00 AM - edited 01-26-2017 09:02 AM
yes, RTE==true means this code executes in application. Other case is RTE==false (and default).
snippet is from vi (development mode), so this is grayed out.
PS. no need to set Conditional variables in project for this.
01-26-2017 09:06 AM
Make sure that you also created a case RUN_TIME_ENGINE==FALSE where there is no code (or whatever code you want to run when you are in the LabVIEW environment). If not, the RUN_TIME_ENGINE==TRUE will run by default.
Also, there is a benefit in using the conditional disable structures instead of App-property node and check Application Kind with a case structure. With the conditional disable structures, the code that is not run is not even compiled. It means that you can have missing drivers for example, and if the condition is not satisfied, your VI will still run.
01-26-2017 09:07 AM