Professional Documents
Culture Documents
on
“NI LABVIEW”
Done at
“ABES ENGINEERING COLLEGE”
by
ANUSHA BANSAL (1703231043)
Submitted to
Department of Electronics & Communication Engineering
in partial fulfilment of the requirements for the Degree of
Bachelor of Technology
in
Electronics & Communication Engineering
Introduction
Training Structure
Data Structure in Labview
Execution Structures in LabVIEW
Some More Programs
Benifits of Labview
Applications of Labview
INTRODUCTION
LabVIEW is the acronym for Laboratory Virtual Instrument
Engineering Workbench. Lab VIEW is a graphical programming
language that uses icons instead of lines of text to create programs.
LabVIEW program called Virtual Instrument produced by National
Instruments in 1988. LabVIEW is a much loved tool of the scientist
and engineer.
Jeff Kodosky is the “Father of LabVIEW”. Lab VIEW programs are
called virtual instruments, or VIs, because their appearance and
operation imitate physical instruments, such as oscilloscopes and
multimeters etc. . After build the user interface, add code using VIs
and structures to control the front panel objects. The block diagram
contains this code.
Each VI contains three main parts:
i. Front Panel - How the user interacts with the VI.
ii. Block Diagram - The code that controls the program.
iii. Icon/Connector - Means of connecting a VI to other Vis.
The Front Panel is used to interact with the user when the program is
running. Users can control the program, change inputs, and see data
updated in real time. Stress that controls are used for inputs-
adjusting a slide control to set an alarm value, turning a switch on or
off, or stopping a program. Indicators are used as outputs.
Thermometers, lights, and other indicators indicate values from the
program. These may include data, program states, and other
information. Every front panel control or indicator has a
corresponding terminal on the block diagram. When a VI is run,
values from controls flow through the block diagram, where they are
used in the functions on the diagram, and the results are passed into
other functions or indicators.
DATA STRUCTURES IN
LABVIEW
String Data Type
LabVIEW stores Boolean data as 8-bit values. You can use a Boolean in
LabVIEW to represent a 0 or 1, or a TRUE or FALSE. If the 8-bit value is zero,
the Boolean value is FALSE. Any nonzero value represents TRUE. Common
applications for Boolean data include representing digital data and serving as
a front panel control that acts as a switch that has a mechanical action often
used to control an execution structure such as a Case structure. A Boolean
control is typically used as the conditional statement to exit a While Loop. In
LabVIEW, the color green represents Boolean data.
Most Express VIs accept and/or return the dynamic data type, which appears as a
dark blue terminal.
Using the Convert to Dynamic Data and Convert from Dynamic Data VIs, you can
convert floating-point numeric or Boolean data of the following data types:
1D array of waveforms
1D array of scalars
1D array of scalars—most recent value
1D array of scalars—single channel
2D array of scalars—columns are channels
2D array of scalars—rows are channels
Single scalar
Single waveform
Arrays
Sometimes it is beneficial to group related data. Use arrays and clusters to
group related data in LabVIEW. Arrays combine data points of the same data
type into one data structure, and clusters combine data points of multiple data
types into one data structure.
An array consists of elements and dimensions. Elements are the data points
that make up the array. A dimension is the length, height, or depth of an array.
An array can have one or more dimensions and as many as (2 31)—1 elements
per dimension, memory permitting.
Clusters
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.
Bundling several data elements into clusters eliminates wire clutter on the
block diagram and reduces the number of connector pane terminals that
subVIs need.
Enums
An enum (enumerated control, constant or indicator) is a combination of data
types.
An enum represents a pair of values, a string and a numeric, where the enum
can be one of a list of values
EXECUTION STRUCTURES
IN LABVIEW
Execution structures contain sections of graphical code and control
how and when the code inside is run. The most common execution
structures are While Loops, For Loops and Case structures which we
can use to run the same section of code multiple times or to execute a
different section of code based on some condition.
LOOPS
While Loops
Similar to a Do Loop or a Repeat-Until Loop in text-based programming languages, a
While Loop, shown in Figure 1, executes the code it contains until a condition
occurs.
Fig3. shows a While Loop in LabVIEW, a flowchart equivalent of the While Loop functionality,
and a pseudo code example of the functionality of the While Loop.
The While Loop is located on the Structures palette. Select the While Loop from the
palette and then use the cursor to drag a selection rectangle around the section of
the block diagram you want to repeat. When you release the mouse button, a While
Loop boundary encloses the section you selected.
A For Loop executes a subdiagram a set number of times. Figure shows a For Loop
in LabVIEW, a flowchart equivalent of the For Loop functionality, and a pseudo code
example of the functionality of the For Loop.
The For Loop is on the Structures palette. You also can place a While Loop on the
block diagram, right-click the border of the While Loop, and select Replace with For
Loop from the shortcut menu to change a While Loop to a For Loop.
The count terminal is an input terminal whose value indicates how many times to
repeat the subdiagram.
The iteration terminal is an output terminal that contains the number of completed
iterations.
The iteration count for the For Loop always starts at zero.
Case Structures
The case selector label at the top of the Case structure contains the name of the
selector value that corresponds to the case in the center and decrement and
increment arrows on each side.
Click the decrement and increment arrows to scroll through the available cases. You
also can click the down arrow next to the case name and select a case from the pull-
down menu.
Wire an input value, or selector, to the selector terminal to determine which case
executes.
PARALLELISM
TEMPERATURE LIMIT VI
BENIFITS OF
LABVIEW
APPLICATION OF
LABVIEW
Machine monitoring and control
:LabVIEW Real-Time module helps in
preparing powerful machine monitoring
and control applications
Research and Analysis : Scientist and
Researchers use it biomedical
,aerospace energy industries etc
Control Design : Real world data can
be compared with theoretical data
Currently used in firms like
Nokia,Phillips,Amazon etc.