LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Index through cluster to change value

Solved!
Go to solution
Solution
Accepted by topic author TeddyLu

@TeddyLu wrote:

 

I have over 20 boolean controls that need to be reset back to default state (off). I've put all them into a cluster and then set to an array and change each one through a for loop,

 


What you need to do instead is combining also the controls into a cluster (you can make the cluster container transparent so it's not even visible) . Now you only have one terminal instead of 20. To reset, just write back to a local variables of that cluster.

 

Here's a quick example (LV2013).

setclearcluster.png

Message 11 of 13
(58,714 Views)

hi TeddyLu,

just wanted to add this 

if you only want reinitialize to default value

you can use reinitialize to default invoke node

bp
0 Kudos
Message 12 of 13
(58,686 Views)

Yes, Local Variables gets replaced with Reference property nodes in Snippets.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 13 of 13
(58,673 Views)