Array to Cluster Function in LabVIEW Does Not Accept Cluster Sizes Larger Than 256

Updated Sep 7, 2021

Reported In

Software

  • LabVIEW

Issue Details

I am trying to convert an array to a cluster. My Array is larger than 256 elements and when I use the 'Array to Cluster' function and try to set the cluster size, the pop windows closes and immediately reopens, not accepting my input. It does this for any cluster size larger than 256.
Why does this happen?
How can I change my array larger than 256 elements into a cluster?

Solution

The 'Array to Cluster' function in LabVIEW has a limitation where it can not change the data type for arrays larger than 256 elements.

However, it is still possible to convert large arrays into clusters using the 'Type Cast' function. In the snippet below, the data of the 300 element cluster is maintained as the data type is changed into a cluster.

Snippet.png
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.