LabVIEW Lecture 1 - Navigating LabVIEW
LabVIEW Lecture 1 - Navigating LabVIEW
Lecture 1
Navigating LabVIEW
By Dr. Rehan Zahid
• Recertification Process
• Certified Professionals can recertify by two methods
• Recertification by exam
• Recertification by points.
• Recertification by Points
• By participating and completing approved activities, Certified Professionals can earn and
accumulate points redeemable toward recertification.
1. What is LabVIEW
• LABoratory Virtual Instrument Engineering Workbench
• Controls
• Simulate instrument input devices and supply data to the block
diagram of the VI
• Knobs
• Push buttons
• Dials
6. Front Panel - Controls and Indicators
• Indicators
• Output devices and display data the block diagram acquires or
generates
• LEDs
• Graphs
6. Front Panel - Controls and Indicators
• Every control or indicator – associated data type
• Example
• Delay (sec) horizontal slide - numeric data type
• Most commonly used data types
• Numeric
• Boolean
• String
6. Front Panel – Numeric Controls and
Indicators
Increment/Decrement Buttons
Numeric Control
Numeric Indicator
6. Front Panel – Bolean Controls and
Indicators
6. Front Panel – String Controls and Indicators
6. Front Panel - Controls Palette
• Controls palette contains the controls and indicators
• Access
• Front panel window – View -> Controls Palette
• Front panel window – right click
• Controls palette - various categories
• Generally used category - Modern
• View or hide categories (subpalettes)- customize button - select
or deselect in the Change Visible Palettes option
6. Front Panel – Shortcut Menus
• All LabVIEW objects - associated shortcut menus (context
menus, pop-up menus, and right-click menus)
• Use shortcut menu - change the appearance or behavior of
front panel and block diagram objects
• Access - right-click the object
6. Front Panel – Window Toolbar
6. Front Panel – Window Toolbar
Reorder
Wires
Nodes
Control Terminals
7. Block Diagram - Terminals
• Terminals represent inputs and outputs of VI, sub VIs and
functions
• Objects on the front panel window - appear as terminals on the
block diagram
• Terminals - entry and exit points of data
• Terminals - analogous to parameters and constants in text-
based programming languages
• Types of terminals
• Control or indicator terminals
• Node terminals
7. Block Diagram - Terminals
• Control and indicator terminals
• Belong to front panel controls and indicators
• Data enter into front panel controls enter block diagram through
control terminals
• Data enter Add and Subtract functions and produce new data values
• New data values flow to indicator terminals and update front panel
indicators
7. Block Diagram - Terminals
• Connector panes of Add and Subtract functions - three node
terminals
• Display terminals of function - right-click - Visible Items ->
Terminals
7. Block Diagram - Controls, Indicators, and
Constants
7. Block Diagram - Controls, Indicators, and
Constants
7. Block Diagram - Controls, Indicators, and
Constants
7. Block Diagram - Controls, Indicators, and
Constants
• Nodes
• Objects on block diagram – have inputs and/or outputs - perform
operations when VI runs
• Analogous to statements, operators, functions, and subroutines in
text-based programming languages
• Nodes can be functions, subVIs, or structures
• Structures - process control elements, such as Case structures, For
Loops, or While Loops
• Add and Subtract functions - function nodes
7. Block Diagram - Functions
• Functions
• Fundamental operating elements of LabVIEW
• Do not have front panel windows or block diagram windows but
do have connector panes
• Double-clicking function only selects function
• Function - pale yellow background on its icon
7. Block Diagram – Sub VIs
• Sub VIs
• VIs use inside of another VI
• Double-click a sub VI on block diagram - its front panel window
appears
• Sub VIs also can be Express Vis
• Express VIs - nodes require minimal wiring - configure them with
dialog boxes
• Use Express VIs for common measurement tasks
• Save the configuration of an Express VI as a sub VI
• Express VIs icons - surrounded by a blue field
• Sub VI icons – surrounded by a yellow field
7. Block Diagram - Controls, Indicators, and
Constants
Basic Function
Generator VI in
Different Display
Modes
7. Block Diagram - Controls, Indicators, and
Constants