取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 6 条)
4,766 次查看
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 项奖励
2 条消息(共 6 条)
4,761 次查看
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 项奖励
3 条消息(共 6 条)
4,581 次查看
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 项奖励
4 条消息(共 6 条)
4,573 次查看


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 项奖励
5 条消息(共 6 条)
4,566 次查看


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 项奖励
6 条消息(共 6 条)
4,558 次查看