How to Change the Blinking Color of a Control Programmatically Primary Software: LabVIEW Development Systems>>Base PackagePrimary Software Version: 1.0 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I want to change the blinking color of a string control or indicator while my VI runs depending on the state of my program. I cannot find a property that allows me to do this. How can I accomplish this? Solution: Although there is not a property that allows the user to change the blinking color, it can be done programmatically by periodically changing the background color of the control or indicator.
Figure 1: BGColor case for example blinking algorithm. Figure 2: BlinkColor case for example blinking algorithm. Note: This is one algorithm that will allow the user to control the blinking color programmatically. There may be other ways to accomplish this task. If you do not need to change the blinking color while the program is running, you may change the settings by going to Tools » Options. Select the Colors option. This allows you to change the global LabVIEW color properties. Related Links: Developer Zone: Application Design Patterns: State Machines KnowledgeBase 3E586ILE: Best Way for State Machine to Handle Three or More Transitions KnowledgeBase 396ADVLD: How to Change the On/Off Blink State of a Front Panel LED in LabVIEW KnowledgeBase 2F6CB7DV: How Can I Get My Blinking Colors to Be the Same in an Executable as in the Development Environment Attachments:
Report Date: 04/15/2008 Last Updated: 05/08/2008 Document ID: 4KEHH31D |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
