01-26-2012 12:30 PM
Please see my picture. Can anyone help me fix this broken wire? The error is telling me the clusters are two different sizes but that does not make sense. Thanks
Solved! Go to Solution.
01-26-2012 12:33 PM - edited 01-26-2012 12:35 PM
Right-click on the array to cluster and change the cluster size to 4. It defaults to 9.
EDIT: OR, just wire the original cluster back in since you didn't change anything...
01-26-2012 12:38 PM
Right-click the Array to Cluster, Set Cluster Size, and set it to 4 elements (or, just use a bundle in the first place and skip the array). LabVIEW cannot generally determine at edit time how many elements are in an array, and that number needs to be constant when converting to a cluster, so you need to manually tell it how many elements should be in the cluster.
01-26-2012 02:25 PM
I'll shield my eyes from possible abuse of the Array to Cluster primitive and take the opportunity to plug this again:
01-26-2012 04:49 PM
NIquist wrote:
EDIT: OR, just wire the original cluster back in since you didn't change anything...
Mmm, might want to look more carefully, it looks like the new cluster contains only some of the elements from the previous cluster...
To the original poster: use the Index Array function to get specific array elements. Don't convert to a cluster and then unbundle. The Index Array function expands so you can retrieve multiple array elements with a single block.
01-30-2012 09:29 AM
@nathand wrote:
NIquist wrote:
EDIT: OR, just wire the original cluster back in since you didn't change anything...
Mmm, might want to look more carefully, it looks like the new cluster contains only some of the elements from the previous cluster...
To the original poster: use the Index Array function to get specific array elements. Don't convert to a cluster and then unbundle. The Index Array function expands so you can retrieve multiple array elements with a single block.
I just meant the bounding box cluster wire, not the ORIGINAL original cluster.