LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change cluster size

How do I convert 1D array of cluster of 3 elements to 1D array of cluster of 4 elements?
0 Kudos
Message 1 of 3
(3,061 Views)
Its not super-quick with clusters, but here's what I'd do:
Use a For loop to index out each cluster from the array. Then unbundle the cluster. Then add the 3 unbundled elements and your new 4th element using the bundle function - this will make your new array. See the LV 6 attached.
Good luck with it, Doug
Message 2 of 3
(3,061 Views)
samsam,

When you create a cluster, it's always a good idea to make it a typedef. This allows you to only need to make changes in one place, and the changes are propogated through all instances. If this cluster were a typedef, all you would need to do is add the element in the cluster in the typedef.

Good luck
Message 3 of 3
(3,061 Views)