12-18-2009 03:05 PM
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
Solved! Go to Solution.
12-18-2009 03:17 PM
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.
12-18-2009 03:24 PM - edited 12-18-2009 03:24 PM
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