LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamic change the appearance of donzen of control of the same kind?

I want to change the appearance of a donzen of LED control in the panel by
program. How to realize it through a for loop without explicit change the
value of every control?


0 Kudos
Message 1 of 5
(3,080 Views)
You may create a control reference for each LED and collect all references in an array.
Feed a for loop with this array and use property nodes to change value and appearance of all LEDs.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 5
(3,070 Views)
Thanks.
0 Kudos
Message 3 of 5
(3,063 Views)

Pincanter,

 

COuld you also typedef the control and then make a change to one of them instead of all?...or can typedefs not be changed in runtime?

Hell, there are no rules here...we're trying to accomplish something!!! - Thomas Edison
0 Kudos
Message 4 of 5
(3,057 Views)
You can do the same with custom controls, too.
If I correctly remember, there are some limitation with strictly typed controls when you try to change things like colors and other appearance properties.
Values can always be changed, though.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 5
(3,051 Views)