• Home
  • LabVIEW
  • LABVIEW – Conversion Between Arrays And Clusters

LABVIEW – Conversion Between Arrays And Clusters

  • (5.0)
  • | 3195 Ratings

LABVIEW has many more functions for ARRAYS than CLUSTERS and it is often required to change array to clusters and clusters to arrays. A cluster can be converted into an array first and converted back to a cluster after performing the required operation from the available array functions. You can convert a CLUSTER with elements of the same data type to an array using the Cluster To Array function as shown in below Figure and use array functions to manipulate the contents. This function cannot be used on a cluster of arrays, since LabVIEW does not allow an array or arrays type of structure.

Enhance your IT skills and proficiency by taking up the LabVIEW Training.

LabVIEW tutorials, LabVIEW training, LabVIEW Interview Questions, LabVIEW Sample resumes

You can convert a cluster with elements of the same type to an array and use array functions to manipulate the contents. Complete the following steps to convert a cluster to an array.
Step    1: Place a cluster on the FRONT PANEL.
Step    2: Place the Cluster To Array function on the BLOCK DIAGRAM.
Step    3: Wire the cluster to the Cluster To Array function.
Step   4: Right-click the Cluster To Array function and select Create»Indicator from the shortcut menu to create an array indicator.
Step   5: Run the VI from the front panel. The array indicator displays the values of the cluster.

Frequently Asked LabVIEW Interview Questions & Answers

You also can convert an array to a cluster using the Array To Cluster function. This function converts an n element, one-dimensional array into a cluster of n element of the same type. This function is useful when you would like to display the elements of the same type in a front panel but still want to manipulate the elements on the block diagram by their index values. Clusters do not size automatically, you need to specify the cluster size by popping up on function. The default cluster size is 9, and the maximum size permitted is 256.

The Build Cluster Array function is used to create an array of CLUSTERS where each cluster contains an array. This function does it by first bundling each component input into a cluster and then ASSEMBLING all component clusters into an array of clusters.

Check Out LabVIEW Tutorials

The Index and Build Cluster Array function indexes a set of array and creates a cluster array in which the ith element contains the ith element of each input array. All array inputs need not be of the same type and the function yields a cluster array containing one element from each input array

Explore LabVIEW Sample Resumes! Download & Edit, Get Noticed by Top Employers!Download Now!

Subscribe For Free Demo

Free Demo for Corporate & Online Trainings.

Ravindra Savaram
About The Author

Ravindra Savaram is a Content Lead at His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter. Protection Status