11-25-2014 10:37 AM
I am new to labview so this may be a simple problem. I have some code in my project that I need to execute when running from an EXE but do not execute when running from the development envirenment and vise versa. can anyone tell me how to do this?
Thank-you in advance.
11-25-2014 10:44 AM - edited 11-25-2014 10:48 AM
Either....
1) Use a conditional disable structure with RUN_TIME_ENGINE == TRUE
2) Use an App.Kind property node with the output feeding into a case structure. The App.Kind will return whether or not the application is running in the development environment/run-time engine etc.
The difference/merits of each one are that the conditional disable will only compile with the appropriate code (small memory/performance improvement) and won't produce a broken run arrow if you put something in there which is target specific (which makes it great for writing code for different targets) and the App.Kind returns more information (like if you're running the student version of LabVIEW).
11-25-2014 12:19 PM
Thanks, works great, I knew it had to be easy I just did not know enough about Labview.
Thanks again.
11-25-2014 01:28 PM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord