Documente Academic
Documente Profesional
Documente Cultură
Navigating LabVIEW
TOPICS
A. Virtual Instruments G. Searching Palettes
B. Parts of a VI H. Selecting a Tool
C. Starting a VI I. Dataflow
D. Project Explorer J. Building a Simple VI
E. Front Panel
F. Block Diagram
1
A. Virtual Instruments (VIs)
2
B. Parts of a VI
3
B. Parts of a VI Front Panel
4
B. Parts of a VI Block Diagram
Contains the
graphical source
code
Front panel objects
appear as terminals
on the block diagram
5
B. Parts of a VI Icon/Connector Pane
6
Demonstration
Starting A VI
8
Demonstration
Project Explorer
10
E. Front Panel Controls Palette
Contains the controls and indicators you use to
create the front panel
Access from the front panel by selecting
ViewControls Palette
11
E. Front Panel Front Panel Toolbar
12
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
13
E. Front Panel Numeric
Controls/Indicators
The numeric data type can represent numbers of various
types, such as integer or real
Numeric Control
Increment/Decrement Buttons
Numeric Indicator
14
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
15
E. Front Panel Strings
16
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
17
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
18
F. Block Diagram
19
F. Block Diagram Functions Palette
20
F. Block Diagram Block Diagram Toolbar
21
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 right click menu
22
F. Block Diagram Terminals
23
F. Block Diagram Nodes
24
F. Block Diagram Function Nodes
25
F. Block Diagram SubVI Nodes
26
F. Block Diagram SubVI Nodes
27
F. Block Diagram Icons/Expandable Nodes
28
F. Block Diagram Wires
29
F. Block Diagram Wiring Tips
30
Exercise 2-1: Exploring a VI
Concept Exercise
Identify the parts of an existing VI.
GOAL
G. Searching for Controls, VIs & Functions
32
Exercise 2-2: Navigating Palettes
Concept Exercise
Learn to use the palettes and search for controls,
GOAL
34
Exercise 2-3: Selecting A Tool
Concept Exercise
Gain experience using the Automatic Tool Selection to
GOAL
36
I. Dataflow - Quiz
Which node executes first?
a) Add
b) Subtract
c) Random Number
d) Divide
e) Sine
37
I. Dataflow Quiz Answers
NO CORRECT ANSWER
38
Exercise 2-4: Dataflow
Concept Exercise
Understand how dataflow determines the execution order
GOAL
in a VI.
J. Building a Simple VI
40
J. Building A Simple VI Running
41
J. Building a Simple VI Present
42
J. Building a Simple VI Acquire
43
J. Building a Simple VI Analyze
Statistics Express VI
Filter Express VI
44
Exercise 2-5: Simple Acquire, Analyze, and
Present VI
DAQ USB-6009