From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I determine if a VI is running in the runtime engine or LabView Development Environment?

Is there a function or VI that I can call that will tell me if the program is running in the LabVIEW Runtime Engine or if it is running in the LabVIEW developement Environment?  I am using LabView 8.5.
 
I have a menu item, File/Exit,  and I would like to call the Exit LabVIEW vi if running in the runtime engine when that item is selected.  However, in development, I don't want to shut down LabVIEW when I select that menu item.
 
Maybe there is a more appropriate way to exit the program.  However, I am looking for something elegant.  I'm sure I could find some other way to accomplish the same thing, but I'm looking for a clean way to do it.
 
Thanks
0 Kudos
Message 1 of 4
(6,608 Views)
use the vi property "application kind"
0 Kudos
Message 2 of 4
(6,601 Views)
Here is a small VI with this exact function.
0 Kudos
Message 3 of 4
(6,573 Views)

Wow, thank you very much.  The App.Kind property worked.

I think I looked at that property yesterday, but I didn't read the help correctly. 

Thanks a lot!!

 

0 Kudos
Message 4 of 4
(6,563 Views)