An Introduction to LabVIEW - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

An Introduction to LabVIEW

Description:

Understand the components of a Virtual Instrument. Introduce LabVIEW and common LabVIEW functions ... Color Copy Tool. Coloring Tool. Tools Palette ... – PowerPoint PPT presentation

Number of Views:847
Avg rating:3.0/5.0
Slides: 18
Provided by: macm80
Category:

less

Transcript and Presenter's Notes

Title: An Introduction to LabVIEW


1
An Introduction to LabVIEW
2
Course Aims
  • Understand the components of a Virtual Instrument
  • Introduce LabVIEW and common LabVIEW functions
  • Create a subroutine in LabVIEW

3
Section I
  • LabVIEW terms
  • Components of a LabVIEW application
  • LabVIEW programming tools
  • Creating an application in LabVIEW

4
LabVIEW Programs known as Virtual Instruments
(VIs)
Front Panel Controls Inputs Indicators Outputs
Block Diagram Accompanying program for front
panel Components wired together
5
VI Front Panel
Panel Toolbar
Numeric Controls
Numeric Indicator
Boolean Control
Array Indicators
X-Y Graph
6
VI Block Diagram
Numeric Indicator
Control Terminals
Stop Button Terminal
Numeric Constant
While Loop Stop Terminal
While Loop
For-Next Loop
7
Controls and Functions Palettes
Graphical, floating palettes used to place
controls and indicators on the front panel, or to
build the block diagram.
Controls Palette (Front Panel)
Functions Palette (Block Diagram)
8
Tools Palette
Floating palette used to operate and modify front
panel and block diagram objects. Click the green
rectangle for automatic selection.
  • Operating Tool
  • Positioning/Resizing Tool
  • Labeling Tool
  • Wiring Tool
  • Shortcut Menu Tool

Scrolling Tool Breakpoint Tool Probe Tool Color
Copy Tool Coloring Tool

9
Status Toolbar
Run Button Continuous Run Button Abort
Execution Pause/Continue Button Text
Settings Align Objects Distribute
Objects Re-order
Additional Buttons on the Diagram Toolbar
Execution Highlighting Button Step Into
Button Step Over Button Step Out Button
10
Creating a VI
Front Panel Window
Indicators
Corresponding Indicator Terminals
Controls
Corresponding Control Terminals
Block Diagram Window
11
Right click to select the controls palette
Creating a front panel
Drag and drop the components
As you place components a corresponding terminal
will appear in the diagram window
12
Right click to select the functions palette
Wiring the diagram
Drag and drop functions
Select the wiring tool
Drag the wire between terminals
13
Program Dataflow
  • Block diagram does not execute left to right
  • Node executes when data is available to ALL input
    terminals
  • Nodes supply data to all output terminals when
    done

14
Running the program
Click Run to execute the program
The program will read the inputs, display a
result, and exit
To make the process continuous, a loop must be
added.
15
Section II Loops
While Loops Have iteration terminal I Run
continuously, subject to the Exit terminal
status
For Loops Have iteration terminal I Run N times
set by input N
16
Adding a loop
Select the While loop and drag and drop around
the section you wish to repeat.
Add a Stop button with which to exit the loop.
Wire the button terminal to the exit terminal.
17
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com