0% found this document useful (0 votes)
20 views7 pages

LabVIEW Case Structures and Arrays Guide

The document outlines procedures for three LabVIEW programming tasks: performing addition or subtraction using a case structure, finding the maximum and minimum elements of an array, and bundling and unbundling a cluster. Each task includes aims, required software, step-by-step procedures, and results confirming the successful creation of the corresponding Virtual Instruments (VIs). The document is intended for a Measurements and Instrumentation Laboratory course at VIT, Chennai.

Uploaded by

ibk2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views7 pages

LabVIEW Case Structures and Arrays Guide

The document outlines procedures for three LabVIEW programming tasks: performing addition or subtraction using a case structure, finding the maximum and minimum elements of an array, and bundling and unbundling a cluster. Each task includes aims, required software, step-by-step procedures, and results confirming the successful creation of the corresponding Virtual Instruments (VIs). The document is intended for a Measurements and Instrumentation Laboratory course at VIT, Chennai.

Uploaded by

ibk2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BEEE305P – Measurements and Instrumentation Laboratory

Programming using Case structures, Arrays and Clusters

[a] Addition or Subtraction of any two numbers using Case Structure


Aim:
To perform addition or subtraction of any two numbers using case structure in
LabVIEW.

Software Required:
NI LabVIEW

Procedure:
• Open a new VI. Press Ctrl+T.
• Right click in front panel. Select Numeric>>Numeric Control and drop two controls in
front panel.
• Right click in front panel. Select Numeric>>Numeric Indicator and drop it in front
panel.
• Right click in front panel. Select Boolean>>Push Button and drop it in front panel.
• Add Case Structure in the block diagram.
• Now write the logic for case “SUB” and “ADD” as shown in figure.
• Run VI.
• Note: False: ADD; True: SUBTRACT
Block Diagram: “SUB” Case

VIT, Chennai
BEEE305P – Measurements and Instrumentation Laboratory

Block Diagram: “ADD” Case

Front Panel:

Result:
Thus, the VI to perform addition or subtraction of any two numbers using case structure
is created.

VIT, Chennai
BEEE305P – Measurements and Instrumentation Laboratory

[b] Maximum and Minimum Element of an array


Aim:
To find the maximum and minimum element from an array in LabVIEW.

Software Required:
NI LabVIEW

Procedure:
• Create blank VI.
• Right click on the front panel →modern →array→ array matrix→ numeric control.
• Create four numeric indicators in the front panel for maximum variable, index,
minimum variable and index.
• Right click on block diagram→Array→Array Max & Min.
• Using wiring operations, required connections are given in the block diagram.
• Inputs are given in the front panel and the program is executed

Block Diagram:

VIT, Chennai
BEEE305P – Measurements and Instrumentation Laboratory

Front Panel:

Result:
Thus, the VI to find the maximum and minimum element from an array is created.

VIT, Chennai
BEEE305P – Measurements and Instrumentation Laboratory

[c] Bundle and Unbundle Cluster


Aim:
To bundle and unbundle a cluster

Software Required:
NI LabVIEW

Procedure:
• Create a new VI.
• Create a cluster with numeric control, string and round LED.
• Create numeric indicator, Boolean indictor and string indicator.
• Using wiring operations required connections are given in the block diagram.
• Inputs are given in the front panel and the program is executed.

Bundle Cluster
Block Diagram:

VIT, Chennai
BEEE305P – Measurements and Instrumentation Laboratory

Front Panel:

Unbundle Cluster:
Block Diagram:

VIT, Chennai
BEEE305P – Measurements and Instrumentation Laboratory

Front Panel:

Result:
Thus, the VI to bundle and unbundle a cluster is created.

VIT, Chennai

You might also like