03-05-2011 05:01 PM
Here's my problem that I am sure has an easy fix. I have seen a solution some time ago for it (I believe), but I can't remember where and my search of the knowledge base and forum have led no where.
I need to make invisible, a control during run-time (with an executable). However if the program is running in the developement environment, the control is visible. I don't remember if there is a specific vi for detecting which mode LV is in or not. As you may have guessed, this control is for debugging purposes only. The property node will control the visibility regardless of which mode I am running in, so this is not an option.
Is there a way to detect if LabView is in develope mode or not?
Thanks for your assistance.
Solved! Go to Solution.
03-05-2011 05:05 PM - edited 03-05-2011 05:06 PM
Yes. The Application Kind property.
Here is an example that deterimines whether to close LabVIEW or not. If in the run-time system, LabVIEW will close. If in development, you don't want your whole development environment to shut down when you stop the VI.
You'd need the same code, but just put your hiding of your controls in here instead.
03-06-2011 08:23 PM
Perfect! Thanks for the feedback. It works great.