LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i make the front panet of a VI invisible when it is calling another VI

Hi folks,

Sorry for a typical stupid question, but i have just got back to my old program and now i want to finalise it. In my main VI, i call several VI's that i want the front panel of each displayed when called seperately, i also want the main VI panel to dissapear (but close), and reapear again when the called VI is closed. I know i should refer to a VI reference, but cant manage it at all. Help would be much appreciated

Thanks\

Me
0 Kudos
Message 1 of 6
(3,311 Views)
Hi

You can use the property FrontPanel.State.

Just have a look at this thread. I posted a simple example there.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 6
(3,303 Views)
Thanks bekhto, that's exactly what i was looking for.
Best wishes

Me
0 Kudos
Message 3 of 6
(3,299 Views)
If you happen to make an executable with this system, watch out for a hidden gotcha. The LabVIEW run-time engine constantly monitors to ensure that at least one front panel is visible at all times. It exits when all front panels are closed. If you happen to close all your secondary front panels before opening your primary one, your application will exit. This is not a problem in the development environment. You can use queues or notifiers to ensure that one panel is open before the other closes.
Message 4 of 6
(3,278 Views)
Hi

Does this "problem" occur if I use one of the states "Closed" and "Hidden" or just if I use the Closed-state?

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 6
(3,275 Views)
I don't know if the problem is “closed” or “hidden” or both, but my guess is both. I ran into it when I was doing a multi-stage program launch. I had a splash screen which launched a VI template. If I opened the template using VI server, then exited the splash screen immediately, the run-time engine would exit because the VI template had not displayed its front panel yet, even though the template was running.
0 Kudos
Message 6 of 6
(3,254 Views)