Professional Documents
Culture Documents
• You can do anything with LabView that you can with C++
or any other scientific programming language
LabVIEW
LabVIEW
• Originally developed for communication
with laboratory devices.
• Communication Through
»GPIB
»Serial RS-232 & RS-485
»USB
»VXI
»PXI
»Plug in Data Acquisition
Virtual Instrument
Controls
Indicators
Front Panel Toolbar
Errors in the VI
VI is running continuously
To abort execution
Text settings
Step Into: To see the execution step by step and it enters the SUBVI and Loops
Step Over: To see the execution step by step by pressing it, SUBVI and Loops
Considered one step, it does not enter to it.
Step Out: To exit the loop or SUBVI in one step and navigate to next node
Icon/Connector pane
• You can use a VI as a subVI.
• A subVI is a VI that is used inside another VI.
• To be used as a subVI, a VI must have an icon and a connector pane.
• The connector pane is a set of terminals that corresponds to the controls
and indicators of that VI.
Saving a VI
• To save a VI, select File>>Save.
• When you have saved your VI, you can select File>>Save As
to access the Save As dialog box below.
LabVIEW Palettes
•The Front panel contains:
The Controls Palette
Tools palette
Dataflow Programming
• Block diagram executes
dependent on the flow of
data; block diagram does
NOT execute left to right
• Example 1: Converting ºC to ºF
°F = (1.8 * °C) + 32
Control
Indicator
Creating VIs
• Example 2: Add and Subtract two numbers
Controls
Indicators
Creating VIs
• Example 3: Slope of a Line
Creating SubVIs
AX^2 + BX + C = 0