01 - Lecture Labview Basics
01 - Lecture Labview Basics
Interfacing
PH 534
Tim Mewes
Spring 2011
Digital Electronics
Binary systems with two possible values (logic states):
High/Low
ON/OFF
1/0
TRUE/FALSE
First part of the course, after introduction to LabVIEW
01/11/2007
Computer interfacing
Connects the digital world to the analog world
One way to communicate with Laboratory equipment is
by using GPIB-commands
(General Purpose Instrumentation Bus)
Data acquisition cards (DAQ-cards) provide another
interface between the computer and the outside world
01/11/2007
1. LabVIEW Basics
1.1 Front panel
1.2 Block diagram
1.3 Getting help
1.4 Debugging
Experiment #1
01/11/2007
1. LabVIEW Basics
Block diagram:
contains the graphical
program code
Front panel:
the interface to the
program
<CTRL>-E switches
between Block diagram
and Front panel
Together these two parts constitute a Virtual Instrument short: VI
A VI is typically build by using other VIs which are then called subVIs
01/11/2007
1. LabVIEW basics
Pull-down menus
Window title
VI icon (right click
for short cut menu)
Toolbar
(Numeric) controls:
Enable the user to enter data
01/11/2007
(Numeric) indicator:
Displays data
1. LabVIEW basics
resize objects
pause/resume button
align objects
text settings
run button
show/hide
context help
distribute objects
reorder objects
01/11/2007
1. LabVIEW basics
2
5
01/11/2007
1. LabVIEW basics
5
left click
1. LabVIEW basics
10
1. LabVIEW basics
11
1. LabVIEW basics
01/11/2007
12
1. LabVIEW basics
Scrolling Tool
Positioning/Resizing Tool
Breakpoint Tool
Labeling Tool
Probe Tool
Wiring Tool
Coloring Tool
01/11/2007
13
1. LabVIEW basics
Pull-down menus
Window title
VI icon (right click
for short cut menu)
Toolbar
wire
Control terminals
01/11/2007
function
node
Indicator terminal
14
1. LabVIEW basics
debugging features
01/11/2007
15
1. LabVIEW basics
9
01/11/2007
16
1. LabVIEW basics
01/11/2007
17
1. LabVIEW basics
01/11/2007
18
1. LabVIEW basics
Clean Up Wiring
01/11/2007
19
1. LabVIEW basics
20
1. LabVIEW basics
1.3 Help
<CTRL>+H,
or Show Context Help from the
Help pull-down menu toggles the Context Help on and off
Move the cursor over the Block diagram object you are
interested in
Using <CTRL>+?, F1 or Search the LabVIEW from the
Help pull-down menu you can get more detailed help
Besides help for different LabVIEW components tutorials are also
available (PDF-files)
try for example to search for getting started how-to
Use Find examples from the Help pull-down menu to find example VIs for
a specific task
Make yourself familiar with the LabVIEW help!
01/11/2007
21
1. LabVIEW basics
1.4 Debugging
Locating errors:
Click on broken Run button:
a Window that explains the error and possible solutions appears
Execution Highlighting:
Click on Execution Highlighting button; data flow is animated
using bubbles. Values are displayed on wires.
Probes:
01/11/2007
22
1. LabVIEW basics
1.4 Debugging
Break points:
Right-click on a wire or node to set/clear a break point
Continue execution until the next break point or the end of the program
Step Into opens a node and pauses
Step Over executes a node and pauses at the next node
Step Out finishes executing the current node and pauses
01/11/2007
23