LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible bug with "Array To Cluster" function?

The front panel for one of my VIs has a cluster of 16 booleans.  I wanted to incorporate a simple "Select All" button which will cause all of these booleans to become true.  I used the "Cluster to Array" function, made every element True, then used the "Array to Cluster" function.  The problem with that is the new cluster now has a size 9 so LV refuses to write that back into the cluster using a local variable.  The interesting thing is that the size of the array immediately before using "Array to Cluster" is still 16.  Is this a bug or am I doing something wrong here?  I have attached the vi saved in LV 8.5.
0 Kudos
Message 1 of 3
(2,658 Views)

AntLee29,

If you right-click the 'Array to Cluster' function you can select the desired cluster size, which is 9 by default.  This value cannot be determined programatically because the size of a cluster is determined during 'edit time'.

Chris M.

0 Kudos
Message 2 of 3
(2,655 Views)
Ahhh that was simple.  Thanks!
0 Kudos
Message 3 of 3
(2,651 Views)