Labview Environment Using Labview Creating Vis
Labview Environment Using Labview Creating Vis
LABVIEW ENVIRONMENT
USING LABVIEW
CREATING VIS
LABVIEW
Laboratory Virtual Instrument Engineering Workbench
(LabVIEW) is a graphical programming language that uses
icons instead of lines of text to create programs.
Importance Of LabVIEW
National Instruments
Certificates
Virtual instruments
1.USING LOOPS
2.PLOTTING DATA
3.MAKING DECISION
4.DATA TYPES
5. IMPLEMENTING & DOCUMENTING CODE
Using Loops
Loops enable programmers to execute a
sequence of instructions repeatedly with a
condition specifying when the loop will stop.
LabVIEW uses For and While Loops to control
repetitive operations within a VI.
Placing a While Loop
To place a While Loop, select While Loop from the Structures
sub-palette.
Structure Tunnels
Tunnels feed data into and out of structures. They appear as
colored, solid blocks on the border of the While Loop. When a
tunnel passes data into a loop, the loop executes only after
data arrives at the tunnel. Data passes out of a loop after the
loop terminates.
For Loop
Placing a For Loop is similar to placing a While Loop.
Timing a VI
When a loop finishes executing an iteration, it immediately
begins executing the next iteration, unless it reaches a stop
condition. Most often, you need to control the frequency or
timing of the iteration.
Wait Functions
Wait functions, placed inside a loop, allow a VI to sleep for a set amount of
time. The Time Delay Express VI behaves similar to the Wait (ms) function
with the addition of built-in error clusters. This Express VI allows the
processor to address other tasks during the wait time.
Elapsed Time
The Elapsed Time Express VI indicates the amount of
time that elapses after the specified start time. This VI
allows you to keep track of time when the VI continues to
execute.
1. Waveform Charts
2. Waveform Graphs
3. XY Graphs
Waveform Charts
The waveform chart is a special type of numeric indicator that displays one
or more plots of data typically acquired at a constant rate. Waveform charts
can display single or multiple plots.
Waveform Graphs
The graphs located on the Graph Indicators palette include the waveform
graph. This graph plots only single-valued functions, as in y = f(x), with
points evenly distributed along the x-axis, such as acquired time-varying
waveforms.
XY Graphs
The graphs located on the Graph Indicators palette also
include the XY graph. This type of graph displays any set of
points, evenly sampled or not. You can resize the plot legend
to display multiple plots.
Making Decision
Labels
Controls and indicators labels correspond to the names of terminals on the
block diagram.
Captions
Captions help you describe a control on the front panel. Captions do not
appear on the block diagram.
Options
There many options available for controls and indicators. You can set these
options from the shortcut menu of the control or the indicator.
Visible items
you cans et the visible items from the shortcut menu.
Using Color
•White space and alignment are the most important techniques for grouping
and separation.
•Add highlight colors only for important settings.
•Small objects need brighter colors and more contrast than larger objects.
Spacing and Alignment
In menus, use left-justify items, and
right-justify related shortcut.
Use dividing lines between menu
sections to help users find items quickly.
If you want your front panel controls to use the system colors,
choose objects from the System Controls category of the
Controls palette.
User Interface Tips and Tools
LabVIEW has various built-in tools for creating user-friendly front panels.
These tools include system controls, tab controls, decorations, menus, and
automatic resizing of front panel objects.
Tab Controls
Physical instruments usually have good user
interfaces. Borrow heavily from their design
principles, but use smaller or more efficient
controls.
Decorations
You use the decorations located on the
Decorations palette to group or separate objects
on a front panel with boxes, lines, or arrows.
Comments
There are two types of block diagram comments,
comments that describe the function or operation
of algorithms and comments that explain the
purpose of data that passes through wires.
Commenting VIs
You can insert standard labels either with the Labeling tool or by inserting a
free label from the Decorations subpalette. By default, free labels have a
yellow background color.
•Use free labels to document algorithms that you use on the block
diagrams.