LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use the button in one panel to control the other panel's appearing and disappearing?

How can I use the button in one panel to control the other panel's
appearing and disappearing? What I want is when I push the button on
one button . another panel appears to display something and when I
push it again, that the second panel disappears.
0 Kudos
Message 1 of 3
(2,521 Views)
> How can I use the button in one panel to control the other panel's
> appearing and disappearing? What I want is when I push the button on
> one button . another panel appears to display something and when I
> push it again, that the second panel disappears.
>

You want to use a combination of three features, a button on the panel,
code to notice value changes using either polling in a state machine of
some sort or an event structure, and a VI Server property node to set
the Visible property of the VI being opened and closed.

The button exists on the controlling panel. The code to notice value
changes is probably on the controlling panel's diagram, and this diagram
sets the Visible property node of a VI class property node to FALSE or
TRUE to show or
hide the panel. To get the VI reference to wire to the
property node, you probably want to use the Open VI Reference node with
the VI name.

Greg McKaskle
0 Kudos
Message 2 of 3
(2,521 Views)
I still don't understand. Would you write a simple example for me at
your convenience?
0 Kudos
Message 3 of 3
(2,521 Views)