From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



如何改变LabVIEW前面板中LED灯的开/关闪烁状态



主要软件:
主要软件版本: 8.5.1
主要软件修正版本:
次要软件: N/A

问题:

当我在LabVIEW中设置了LED显示控件的开/关状态颜色后,我在程序框图中用属性节点将LED的闪烁属性值设为真。然而当VI运行时,LED总是以黄色状态闪烁而并非我设置的状态。我应该如何改变默认的LED闪烁颜色?


解答:

闪烁颜色与属性节点中可设置的开/关颜色是完全独立的。开/关颜色状态既可以通过在前面板上右键点击对象改变它的属性,也可以在程序框图中通过属性节点设置对象的颜色属性。

而要修改闪烁颜色,需在LabVIEW菜单栏打开工具»选项窗口,并选择颜色项。在LabVIEW中,黄色是默认的输入控件和显示控件的闪烁颜色。修改闪烁前景闪烁背景颜色设置就可以改变LED灯的闪烁颜色。



相关链接:
KnowledgeBase 2F6CB7DV: How Can I Get My Blinking Colors to Be the Same in an Executable as in the Development Environment?
KnowledgeBase 3C0HLMPC: How Do I Change the Color of a Boolean Control or Indicator Programmatically?

附件:





报告日期: 05/07/2004
最近更新: 01/04/2010
文档编号: 396ADVLD