Labview
Labview
Chapter 6:
LabVIEW
Part 1: Introduction
MCEN 371 – Mechanical Engineering Lab
Overview of LabVIEW
3. Icon/connector
MCEN 371 – Mechanical Engineering Lab
Chapter 6:
LabVIEW
Front Panels
Simply put, the front panel is
the window through which
the user interacts with the
program.
• When you run a VI, you must
have the front panel open so
that you can input data to the
executing program.
• The front panel is where you
see your program’s output.
MCEN 371 – Mechanical Engineering Lab
Control? or Indicator?
Block Diagrams
The block diagram window
holds the graphical source
code of a LabVIEW VI – it is
the actual executable code
• You construct the block
diagram by wiring together
objects that perform specific
functions.
• The various components of a
block diagram are terminals,
nodes and wires.
MCEN 371 – Mechanical Engineering Lab
Terminals
When you place a control
(or indicator) on the
FRONT PANEL
LabVIEW automatically
creates a corresponding
control (or indicator)
terminal on the BLOCK
DIAGRAM
MCEN 371 – Mechanical Engineering Lab
Control or Indicator
Terminal?
Nodes
Node is just a fancy word for a program execution element –
Nodes are analogous to statements, operators, functions and
subroutines in standard programming language:
• The add and subtract functions represent one type of node.
• A structure is an other type of node. Structures can execute
code repeatedly or conditionally, similar to loops and case
statements in traditional programming languages.
• LabVIEW has also special nodes, called formula nodes,
which are useful for evaluating mathematical formulas or
expressions.
MCEN 371 – Mechanical Engineering Lab
Wires
Broken wires
If you connect more than
one source or no source
at all to a wire,
LabVIEW
DISAGREES with what
you’re doing, and the
wire will appear broken
MCEN 371 – Mechanical Engineering Lab
&