LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with cluster to array to cluster size mismatch, please!

Solved!
Go to solution

I freely admit to always struggling with LabVIEW arrays, and as usual, the behavior in the attached vi makes no sense to me!  The attached vi shows a 6 element cluster being converted to an array, then right back to a cluster.  The reconstructed cluster has 9 elements, even though the array size indicator correctly shows 6.  How do I maintain the original cluster size when converting to, and then from, an array?

 

Jeff 

0 Kudos
Message 1 of 3
(2,921 Views)
Solution
Accepted by topic author jstevens

Well, if you worked with Context Help turned on you would see:

 

"Right-click the function and select Cluster Size from the shortcut menu to set the number of elements in the cluster.

The default is nine. The maximum cluster size for this function is 256."

 

You have to set the size. There is no way for the function to know how many elements are in the array.

Message 2 of 3
(2,916 Views)

OK, busted!  I thought the size information would passed along with the cluster<->array conversion blocks.  Thanks for the quick reply!

 

Jeff, the lowly Shrubber

Message Edited by jstevens on 12-18-2009 03:24 PM
0 Kudos
Message 3 of 3
(2,904 Views)