LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I hide leds switch off in an array using property node?

How can I hide leds switch off in an array using property node?
For example: I have an array with 2 leds. This leds is controled by a numeric control. If this number is zero or less, all leds will be switched off, if it's "1", the first led will be switch on, and if it's 2 or more the third led will be on.
The objective is this: when appears the last case (number 2) I want that this second led switch on in the firts place of the array and the other led (switch off) be hidden.
I don't know if it's possible using the "Property node".
Also it's possible assign differents labels in each led of the array?
 
thank you,
 
Vicen
 
Win XP / LV 7.1
0 Kudos
Message 1 of 2
(2,461 Views)
You cannot treat array elements as individuals. Keep in mind that all the elements share the same properties, so if you set visibility for one element, you are indeed setting for all, and so on.
Use clusters instead of arrays. Cluster members properties can be set either by manually creating a property node for the member, either through the cluster property Controls (an array of references to the members).
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 2
(2,455 Views)