9

LabVIEW Clusters

Embed Size (px)

Citation preview

Page 1: LabVIEW Clusters
Page 2: LabVIEW Clusters

LabVIEW Clusters• A cluster combines one or more data types into one data type. The

cluster may contain different data types such as Boolean, string and integer (not as the array).

• Bundling several data elements into clusters eliminates wire clutter on the block diagram and reduces the number of connector pane terminals that subVIs need.

• Although cluster and array elements are both ordered, you must unbundle all cluster elements at once rather than index one element at a time.

• Like an array, a cluster is either a control or an indicator. A clustercannot contain a mixture of controls and indicators.

Page 3: LabVIEW Clusters

LabVIEW Clusters & String• Most clusters on the block diagram have a pink wire pattern and

data type icon.

• Clusters of numerics have a brown wire pattern and data type icon.

• You can wire brown numeric clusters to Numeric functions, such as Add or Square Root, to perform the same operation simultaneouslyon all elements of the cluster.

• Cluster elements have a logical order unrelated to their position in the shell. The first object you place in the cluster is element 0, the second is element 1, and so on

• You can view and modify the cluster order by right-clicking the cluster border and selecting Reorder Controls In Cluster from the shortcut menu.

Page 4: LabVIEW Clusters

Creating a Cluster Control• on the front panel.by popping-up on the • Front Panel > Controls > Array & Cluster > Cluster

Click for motion1Click for motion2

Page 5: LabVIEW Clusters

Cluster Functions• Assembling a Cluster on the Block

Diagram Using the Bundle Function

Page 6: LabVIEW Clusters

Cluster Functions

• You can use the unbundle function to disassemble the cluster back into its individual components.

Page 7: LabVIEW Clusters

Cluster Functions

Page 8: LabVIEW Clusters

Cluster Functions

• Using the Unbundle by Name Function

Page 9: LabVIEW Clusters

Cluster to Array Conversion