LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

button visible

Hello,

How can i make a button visible if a shared variable is true and not visible if that same varable is false...?? is this possible??


0 Kudos
Message 1 of 6
(4,522 Views)
Yes, simply create a property node for the button, select property "visible",  change it to write, and wire the boolean value from the shared variable to it.
 
TRUE: visible, FALSE: invisible. 🙂
0 Kudos
Message 2 of 6
(4,517 Views)
hello,
 
I would like to do the same but the problem is i have to run the vi each time.
 
My problem is that I would like that to do that in "real time", when I turn off a switch, a button disappears in the display screen.
 
Can you help me ?
 
Thanks
 
Romain
0 Kudos
Message 3 of 6
(4,337 Views)
Use an event structure trigger off of the switch value wired into the property node of the control (visible) that you want to appear/dissapear...
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 4 of 6
(4,329 Views)


Romain_H wrote:
I would like to do the same but the problem is i have to run the vi each time.

To do it in edit mode....
 
From Diagram: right-click on the terminal and select "hide control or "show control" as desired.
From Front Panel: right-click on the control and select "advanced...hide control or "advanced..show control" as desired.
 
 
0 Kudos
Message 5 of 6
(4,322 Views)


Romain_H wrote:
I would like to do the same but the problem is i have to run the vi each time.

If you want to switch visibility with a FP control while the VI is in edit mode, you can make an xcontrol consisting of a button and a switch for its visibility. 🙂
 
Typically, you should design your VI such that it always runs during use. It can be in a wait state when it's not supposed to do anything.
0 Kudos
Message 6 of 6
(4,314 Views)