LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programically make a top level VI panel invisible?

How can I programically make a top level VI panel invisible?
0 Kudos
Message 1 of 5
(3,226 Views)

You can use VI Server's 'Close FP' method to close the front-panel. You will need a reference to that VI to invoke the method. One easy way is to launch the VI with the VI Server and hold on to its reference.

See the attached diagram -- the top-level.vi is launched and run, we wait for 5 seconds, and then close its front-panel.

Hope this gives you some ideas.

Khalid

0 Kudos
Message 2 of 5
(3,226 Views)
Is closing a VI the same as making the panel invisible? What would I do when I want the panel back? Would re-running the VI be the same as making an invisible panel visible?
0 Kudos
Message 3 of 5
(3,226 Views)

I am sorry for not being clear.. in fact my answer was misleading. Closing a front-panel (as previously described) is NOT the same as making the front-panel invisible. You instead will want to set state of the front-panel to "hidden" using the FP.state property.

To get back the panel (make it visible), you will write "standard" to the FP.state.

See the following example (in your LabVIEW) folder for how to do this: \examples\viserver\FrontPanelStates.vi

Khalid


0 Kudos
Message 4 of 5
(3,226 Views)
Thanks.
This example is exactly what I was looking for.
0 Kudos
Message 5 of 5
(3,226 Views)