Lesson 2 - Navigating LabVIEW
Lesson 2 - Navigating LabVIEW
Navigating LabVIEW
TOPICS
A. Virtual Instruments (VIs) G. Searching for Controls, VIs
B. Parts of a VI and Functions
C. Starting a VI H. Selecting a Tool
D. Project Explorer I. Dataflow
E. Front Panel J. Building a Simple VI
F. Block Diagram
[Link]/training
A. Virtual Instruments (VIs)
[Link]/training
B. Parts of a VI
[Link]/training
B. Parts of a VI – Front Panel
[Link]/training
B. Parts of a VI – Block Diagram
[Link]/training
B. Parts of a VI – Icon/Connector Pane
• Icon: graphical representation of a VI
• Connector Pane: map of the inputs and outputs of a VI
• Icons and connector panes are necessary to use a VI as
a subVI
− A subVI is a VI that is inside of another VI
− Similar to a function in a text-based programming
language
Icon Connector Pane
[Link]/training
C. Starting a VI
DEMONSTRATION
D. Project Explorer
Use LabVIEW Projects to:
• Group LabVIEW files and non-LabVIEW files
• Create build specifications
• Deploy or download files to targets
[Link]/training
E. Front Panel – Controls Palette
• Contains the controls and indicators you use to
create the front panel
• Access from the front panel by selecting
View»Controls Palette
[Link]/training
E. Front Panel – Front Panel Toolbar
[Link]/training
E. Front Panel – Controls & Indicators
• Controls
− Knobs, push buttons, dials, and other input devices
− Simulate instrument input devices and supply data to the block
diagram of the VI
• Indicators
− Graphs, LEDs, and other displays
− Simulate instrument output devices and display data the block
diagram acquires or generates
[Link]/training
E. Front Panel – Numeric Controls/Indicators
Numeric Control
Increment/Decrement Buttons
Numeric Indicator
[Link]/training
E. Front Panel – Boolean Controls/Indicators
• The Boolean data type represents data that only has two
parts, such as True and False or On and Off
• Use Boolean controls and indicators to enter and display
Boolean (True or False) values
• Boolean objects simulate switches, push buttons, and LEDs
Boolean Boolean
Control Indicator
[Link]/training
E. Front Panel – Strings
[Link]/training
E. Front Panel – Shortcut Menus
• All LabVIEW objects have
associated shortcut menus
• As you create a VI, use the
shortcut menu items to change
the look or behavior of front
panel and block diagram
objects
• To access the shortcut menu,
right-click the object
[Link]/training
E. Front Panel – Property Dialog Box
• Right-click a front panel
object and select
Properties to display
• The options available on
the property dialog box
are similar to the options
available on the shortcut
menu for that object
[Link]/training
E. Front Panel – Configure Multiple Objects
[Link]/training
F. Block Diagram
[Link]/training
F. Block Diagram – Functions Palette
Contains the VIs, functions, and constants
you use to create the block diagram
[Link]/training
F. Block Diagram – Block Diagram Toolbar
[Link]/training
F. Block Diagram – Terminals
• Terminals are:
− Block diagram appearance of front panel objects
− Entry and exit ports that exchange information between the
front panel and block diagram
− Analogous to parameters and constants in text-based
programming languages
• Change the view type of a terminal by toggling the View as
Icon selection from the context menu
[Link]/training
F. Block Diagram Terminals
[Link]/training
F. Block Diagram – Nodes
[Link]/training
F. Block Diagram – Function Nodes
[Link]/training
F. Block Diagram – SubVI Nodes
[Link]/training
F. Block Diagram – SubVI Nodes
• Express VIs are a special type of subVI
− Require minimal wiring because you configure them
with dialog boxes
− Save the configuration of an Express VI as a subVI
• Icons for Express VIs appear on the block diagram
as icons surrounded by a blue field
[Link]/training
F. Block Diagram – Icons/Expandable Nodes
[Link]/training
F. Block Diagram – Wires
[Link]/training
F. Block Diagram – Wiring Tips
[Link]/training
F. Block Diagram – Wiring Tips
[Link]/training
Exercise 2-1
Concept: Exploring a VI
[Link]/training
Exercise 2-2
Concept: Navigating Palettes
[Link]/training
Exercise 2-3
Concept: Selecting A Tool
[Link]/training
I. Dataflow – Quiz
[Link]/training
I. Dataflow – Quiz Answers
NO CORRECT ANSWER
[Link]/training
Exercise 2-4
Concept: Dataflow
[Link]/training
J. Building a Simple VI – Acquire
[Link]/training
J. Building a Simple VI – Analyze
• Statistics Express VI
• Filter Express VI
[Link]/training
J. Building a Simple VI – Present
[Link]/training
J. Building A Simple VI – Running
[Link]/training
Exercise 2-5
Simple Acquire, Analyze, and Present VI
[Link]/training
Summary—Quiz Answer
1. Which function executes first:
Add or Subtract?
a) Add
b) Subtract
c) Unknown
[Link]/training
Summary—Quiz
2. Which function executes first:
Sine or Divide?
a) Sine
b) Divide
c) Unknown
[Link]/training
Summary—Quiz Answer
2. Which function executes first:
Sine or Divide?
a) Sine
b) Divide
c) Unknown
[Link]/training
Summary—Quiz
3. Which of the following
functions executes first:
Random Number, Add or
Divide?
a) Random Number
b) Divide
c) Add
d) Unknown
[Link]/training
Summary—Quiz Answer
3. Which of the following
functions executes first:
Random Number, Add or
Divide?
a) Random Number
b) Divide
c) Add
d) Unknown
[Link]/training
Summary—Quiz
4. Which of the following
functions execute last:
Random Number, Subtract or
Add?
a) Random Number
b) Subtract
c) Add
d) Unknown
[Link]/training
Summary—Quiz Answer
4. Which of the following
functions execute last:
Random Number, Subtract or
Add?
a) Random Number
b) Subtract
c) Add
d) Unknown
[Link]/training
Summary—Quiz
[Link]/training
Summary—Quiz Answer
[Link]/training