Converting a Cluster to an Array

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.

  1. Add a cluster to the front panel.

     Add  Find
  2. Add the Cluster To Array function to the block diagram.

     Add  Find
  3. Wire the cluster to the Cluster To Array function.
  4. Right-click the Cluster To Array function and select Create»Indicator from the shortcut menu to create an array indicator.
  5. Run the VI from the front panel. The array indicator displays the values of the cluster.

You also can convert an array to a cluster.