Blog

Overview Of Clusters In Labview

  • (4.0)
  • | 1253 Ratings |
  • Last Updated March 14, 2017

Introduction

CLUSTERS group data elements of mixed types. An example of a cluster is the LABVIEW error cluster, which combines a Boolean value, a numeric value and a string. A cluster is similar to a record or a struct in text-based programming languages. The below Figure shows the error cluster control and the corresponding terminal created in the BLOCK DIAGRAM. This cluster consists of a Boolean control (status), a numeric control (code) and a string control (source).

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

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

Bundling several data elements into clusters eliminates wire clutter on the block diagram. It also reduces the number of connector pane terminals that SUBVIS need by passing several values to one terminal. The connector pane has, at most, 28 terminals. If your FRONT PANEL contains more than 28 controls and indicators that you want to pass to another VI, group some of them into a cluster and assign the cluster to a terminal on the connector pane. In the below Figure (a) individual values are passed to the connector pane terminals. In the below Figure (b) CONTROLS AND INDICATORS are grouped into clusters and connected to one control panel terminal each.

LabVIEW tutorials, LabVIEW training, LabVIEW Interview Questions, LabVIEW Sample resumesMost clusters on the block diagram have a pink wire pattern and data type terminal. Clusters of numeric values, sometimes referred to as points, have a brown wire pattern and data type terminal as shown in below Figure. You can wire brown numeric clusters to numeric functions, such as Add or Square Root, to perform the same operation simultaneously on all elements of the cluster.

                                              Checkout LabVIEW Interview Questions


Clusters group like or unlike components together. They are equivalent to a record in Pascal or a struct in ANSI C. Cluster components may be of different data types.
Examples

  • Error information – Grouping a Boolean error flag, a numeric error code, and an error source string to specify the exact error.
  • User information – Grouping a string indicating a user’s name and an ID number specifying the user’s security code.

Learn LabVIEW Tutorial

All elements of a cluster must be either controls or indicators. You cannot have a string control and a Boolean indicator. Think of clusters as grouping individual wires (data objects) together into a cable (cluster). The following is an example of a cluster used to store student information.

LABVIEW CLUSTER EXAMPLE

Description: Clusters group data elements of mixed types, such as a bundle of wires, as in a telephone cable, where each wire in the cable represents a different element of the cluster. A cluster is similar to a record or a struct in text-based programming languages. Bundling several data elements into clusters eliminates wire clutter on the BLOCK DIAGRAM and reduces the number of connector pane terminals that subVIs need. Like an ARRAY, a cluster is either a control or an indicator. A cluster cannot contain a mixture of controls and indicators.

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

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

Subscribe For Free Demo

Free Demo for Corporate & Online Trainings.

Free Demo Popup -->