Professional Documents
Culture Documents
LabVIEW Programming
Lecture 1 - Introduction
1
Course Goals
Become comfortable with the LabVIEW environment and data flow
execution
Use LabVIEW to solve problems
Learn LabVIEW concepts
a) Acquiring, saving and loading data
b) Finding and using math and complex analysis functions
c) Working with data types, such as arrays and clusters
d) Displaying and printing results
Grading
Lab. sections (30 Marks)
Midterm exam (30 Marks)
Final examination (90 Marks)
2
Course Materials
Lecture Slides
Reference Books:
1. LabView Manual
2. National Instruments Corporation, LabVIEWTM Basics I
Introduction Course Manual, 2006 Edition, Part
Number 320628P-01.
3. Telemark University College, Introduction to LabVIEW,
Faculty of Technology, Postboks 203, Kjlnes ring 56,
N-3901 Porsgrunn, Norway.
3
Programming
Text Based Programming
Visual Basic
C, C++
Fortran
Matlab
4
LabVIEW programming
LabVIEW (Laboratory Virtual Instrument
Engineering Workbench) is a development
environment based on graphical
programming.
5
LABVIEW BASICS
6
In Front Panel, means of interactions are:
7
Programming
Item Graphical Based Programing Text Based Programming
8
Example of a Block Diagram and Corresponding Front
Panel
9
LabVIEW Programs
10
LABVIEW PALETTES
Tools Palette
Control Palette Function Palette
Used in both:
12
Front Panel Controls Palette
Controls Palette
13
Block Diagram Functions Palette
Functions Palette
14
Front Panel and Block Diagram Toolbars (Status Toolbar)
15
Context Help Window
Help > Show Context Help
press the <Ctrl-H> keys
Hover cursor over object to update window
Additional Help
Right-click on the VI icon
and choose Help, or
Choose Detailed help
on the context help window
16
Basic Wire Types
A wire is a data path between nodes. Wires
are colored according to the kind of data each
wire carries.
Numeric ex. Numbers, Boolean ex. True or false, String ex. text
17
Wiring Techniques Hot Spot
Right-click terminals
and select Visible
ItemsTerminals
18
Some shortcuts
19
Example- Converting K to F
Click on New
VI to open a
new file
20
Composition of a new VI
Diagram (D)
Front Panel (FP)
21
Creating a VI Front Panel
Build the front panel with controls (inputs)
and indicators (outputs)
Increment
Buttons Numeric
Boolean Boolean Control
Control Indicator
22
Creating the Front Panel
Create this Front Panel using the Controls Palette
23
Shortcut Menus for Front Panel Objects
Right-click the digital display
to access its shortcut menu
24
Creating a VI Block Diagram
Front Panel
Control Indicator
Block Diagram
Control
Terminal
Indicator
Constant Wires Nodes Terminal 25