NI LabVIEW,CVI,数据采集等产品讨论区

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

显示和隐藏控件的问题

做了一个显示控件和输入控件相重合,都作为隐藏属性。当使用显示控件时显示控件能显示出来,输入控件隐藏;当使用输入控件时输入控件可显示出来,显示控件隐藏。该用什么属性?请指教。
0 项奖励
1 条消息(共 3 条)
4,667 次查看

linlei1984你好,

 

感谢使用NI中文技术论坛。请问,“使用”一词应该如何理解?因为程序不能智能地判断用户意图,所以我们必须指定一个条件或是动作来对控件的可见属性加以控制。例如:

 

controlhide.PNG

"spawn more overlords" means "create another subVI, dude", literally
2 条消息(共 3 条)
4,660 次查看

Hi, 

 

Property node(s) i.e. Visible, should be updated only at when the "type selection" changes it state, instead of keep writing/ updating them (in polling loop).

 

Alternatively, you may try using just Control, set its Disbled property to 0 as Control, and to 1 as indicator. 

 

Last but not least, you may also use Event structure to perform the property updates at when "type selection" value change.

 

PS: attached example uses Enum as "type selection", polling-loop, shift register for value change check. 

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
3 条消息(共 3 条)
4,636 次查看