LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hiding controls during runtime only

Solved!
Go to solution

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.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 1 of 3
(2,470 Views)
Solution
Accepted by topic author MoReese

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.

 

Message 2 of 3
(2,467 Views)

Perfect!  Thanks for the feedback.  It works great.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 3 of 3
(2,425 Views)