LabVIEW Course - PowerPoint PPT Presentation

1 / 37
About This Presentation
Title:

LabVIEW Course

Description:

Color Copying Tool. Coloring Tool. Editing and Debugging Tools. Floating Palette ... Using Color. Debugging Techniques. Finding Errors. Execution Highlighting. Probe ... – PowerPoint PPT presentation

Number of Views:439
Avg rating:3.0/5.0
Slides: 38
Provided by: crystaldr
Category:

less

Transcript and Presenter's Notes

Title: LabVIEW Course


1
LabVIEW Course
2
  • Graphical Programming
  • Easy to use
  • Fast Development Time
  • Graphical User Interface
  • Graphical Source Code
  • Easily Modularised
  • Application Builder to create stand-alone
    executables

3
LabVIEW History
2003 - LabVIEW 7.0
7
2000 - LabVIEW 6i brings the internet to
measurement and automation
6i
5
1998 - LabVIEW 5 connectivity, multithreading
4
1996 - LabVIEW 4 has customizable interface
3
1994 - LabVIEW 3 has add-on toolkits
2
1990 - LabVIEW 2 is now a compiler
1
1986 - LabVIEW 1 introduced on the Mac
4
Multi-Platform Compatibility
  • Platform neutral
  • Migrate applications between platforms

5
Network-based Measurement Automation
  • Entire Measurement and Automation system can be
    controlled with LabVIEW locally, or over the
    Internet

6
Acquisition with LabVIEW
Acquire Anywhere
  • LabVIEW can acquire data by using
  • one or more of the following devices
  • Serial
  • Data Acquisition (DAQ)
  • Remote Data Acquisition (RDA)
  • GPIB
  • PCI eXtensions for Instrumentation (PXI)
  • Image Acquisition (IMAQ)
  • Motion Control
  • Real-Time (RT) Board
  • PLC (through OPC Server)
  • LabVIEW is completely compatible with National
    Instruments hardware, and also works with a
    variety of third party devices

7
Analysis with LabVIEW
Analyze Anywhere
  • LabVIEW includes the following
  • tools to help you analyze your data
  • Analysis VIs for Differential Equations,
    Optimization, Curve Fitting, Calculus, Linear
    Algebra, Statistics, etc.
  • Signal Processing VIs for Filtering, Windowing,
    Transforms, Peak Detection, Harmonic Analysis,
    Spectrum Analysis, etc.
  • Analysis can either be done directly in LabVIEW,
    or with third party software such as Matlab, HiQ,
    or C

8
Presentation with LabVIEW
Present Anywhere
  • LabVIEW includes the following
  • tools to help you present your data
  • On your machine - Graphs, Charts, Tables, Gauges,
    Meters, Tanks, 3D Controls, Picture Control, 3D
    Graphs (Windows Only), Report Generation (Windows
    Only)
  • Over the Internet - Web Publishing Tools,
    Datasocket (Windows Only), TCP/IP, VI Server
  • Enterprise Connectivity Toolset - SQL Tools
    (Databases), Internet Tools (FTP, E-mail, Telnet,
    HTML)

Presentation with LabVIEW can be done on your PC
or over a network, and you can use third party
software like Excel, or DIAdem
9
Course Goals
This course will prepare you to
  • Use LabVIEW to create your applications
  • Use various debugging techniques
  • Understand front panels, block diagrams, and
    connectors/ icons
  • Use both built-in LabVIEW functions and library
    VIs
  • Create and save your own VIs so you can use them
    as subVIs
  • Create applications that use plug-in data
    acquisition (DAQ) boards

10
Course Map
Weeks 1 2
Weeks 3 4
Introduction to LabVIEW
Arrays, Graphs, Clusters
Weeks 5 6
Creating, Editing, Debugging a VI
Data Acquisition Waveforms
Case Sequence Structures and Formula Nodes
Creating a SubVI
Instrument Control
Loops Charts
Strings File I/O
VI Customization
11
Week 1 Part AIntroduction to LabVIEW
  • You Will Learn

A. What a virtual instrument (VI) is B. The
LabVIEW environment C. LabVIEW Help Options
12
Virtual Instruments (VIs)
  • Front Panel
  • Controls Inputs
  • Indicators Outputs
  • Block Diagram
  • Accompanying program for front panel
  • Components wired together

13
Icon/Connector
  • An icon represents a VI in other
  • block diagrams
  • A connector passes data to and
  • receives data from a subVI
  • through terminals

14
Example Temperature VI
SubVI from previous slides
15
LabVIEW Files
Start menu (task bar)Programs National
Instruments LabVIEW
  • Keep vi.lib in the LabVIEW directory
  • Place items in User.lib or Instr.lib to have them
    appear in the LabVIEW Control and Function
    Palettes

16
LabVIEW Startup Screen
17
Panel Window
Icon Pane
Panel Toolbar
Knob Owned Label
Digital Control
Knob Control
Graph Legend
XY Graph
18
Diagram Window
Digital Control Terminal
Wire Data
Knob Terminal
Graph Terminal
Numeric Constant
SubVI
For Loop Structure
Multiply Function
Timing Function
19
Status Toolbar
Run button Continuous Run button Abort
button Pause/Continue button
Font ring Alignment ring Distribution
ring Reorder ring
Additional Buttons on the Diagram Toolbar
Warning indicator Enter button
Execution Highlighting button Step Into
button Step Over button Step Out button
20
Menus
  • Pull Down Menus
  • LabVIEW Shortcut Menus

Windows and UNIX - Right-Click on object
with mouse
21
Tools Palette
  • Automatic Tool Selection
  • Operating Tool
  • Positioning/Resizing Tool
  • Labeling Tool
  • Wiring Tool
  • Pop-Up Menu Tool
  • Scrolling Tool
  • Breakpoint Tool
  • Probe Tool
  • Color Copying Tool
  • Coloring Tool
  • Editing and Debugging Tools
  • Floating Palette


22
Control and Function Palettes
Controls Palette (Panel Window)
Functions Palette (Diagram Window)
Find
Up one level
Browser Options
  • Graphical, floating palettes
  • Subpalettes can be converted to floating palettes

23
Moving VIs Across Platforms
  • LabVIEW automatically translates and recompiles
    VIs
  • File transfer utility mounts a disk from another
    platform
  • Windows MacDisk and TransferPro
  • MacOS DOS Mounter and Apple File Exchange
  • Sun PC File System (PCFS)

Note Certain operating system-specific VIs are
not portable for example, DDE, ActiveX,
and AppleEvents
24
Help Options
  • Show Context Help (Help menu)
  • Simple/Detailed Diagram Help
  • Lock Help
  • Online Help
  • Contents and Index (Help menu)
  • All menus online
  • Right-click on functions in diagram to access
    online info directly

25
Summary
  • Virtual instruments (VIs) have three main parts
    the front panel, the block diagram, and the
    icon/connector
  • The front panel is the user interface of a
    LabVIEW program and the block diagram is the
    executable code
  • Menu options allow you to access different
    features in LabVIEW
  • Use shortcut menus to customize any object in
    LabVIEW. Right mouse click on Windows and UNIX or
    Command-click for MacOS
  • Floating Palettes
  • Tools Palette
  • Controls Palette (only when Panel Window is
    active)
  • Functions Palette (only when Diagram Window is
    active)
  • There are help utilities including the Context
    Help Window and Contents and Index...

26
Week 1 Part BCreating, Editing, Debugging a VI
You Will Learn
A. How to Create VIs B. How to Edit VIs C. How to
Debug VIs
27
Creating a VI Front Panel
  • Numeric controls and indicators
  • Boolean controls and indicators
  • Configuring controls and indicators
  • Use shortcut menus
  • Parts have different menus

Digital Indicator
Labels
Increment Buttons
Digital Control
Boolean Control
Boolean Indicator
28
Accessing Shortcut Menus
Right-click on the label for its shortcut menu
Right-click on the digital display for its
shortcut menu
Windows UNIX Right-Click
MacOS Control-Click
29
Creating a VI Block Diagram
Panel Window
Diagram Window
Control Terminals
Indicator Terminals
Nodes
Wires
30
Wiring a VI Block Diagram
Tools to Help Wiring
Hot Spot
- Automatic Wiring - Tip Strips - Right-click on
terminals and select Visible ItemsTerminals -
Context Help Window
31
Dataflow Programming
  • 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
    complete

32
Searching for Controls, VIs, and Functions
Press the search button to perform text searches
of the palettes.
  • Use the buttons on top of the Controls and
    Functions palettes to navigate and search for
    specific controls, VIs, and functions.
  • Press the search button to perform text searches
    of the palettes.

33
Editing Techniques
  • Creating Objects from Diagram Window
  • Selecting Objects
  • Moving and Resizing Objects
  • Deleting Objects
  • Undo and Redo
  • Free vs. Owned Labels
  • Wiring Techniques
  • Changing Fonts and Text Colors
  • Copying Objects
  • Using Color

34
Debugging Techniques
  • Finding Errors
  • Execution Highlighting
  • Probe

Click on broken Run button Window showing error
appears
Click on Execution Highlighting button data flow
is animated using bubbles. Values are displayed
on wires.
Right-click on wire to display probe and it shows
data as it flows through wire segment You can
also select Probe tool from Tools palette and
click on wire
35
Debugging Techniques
  • Breakpoints
  • Step Into, Over, and Out buttons for Single
    Stepping

Select Breakpoint tool from Tools palette and
click on wire or node where you want execution to
pause
Click on Step Into button to enable single
stepping Once Single Stepping has begun, the
button steps into nodes Click on Step Over
button to enable single stepping or to step over
nodes Click on Step Out button to step out of
nodes
36
Summary
  • You place controls (inputs) and indicators
    (outputs) in the panel window
  • Use the Operating tool to manipulate panel
    objects. Use the Positioning tool to select,
    move, and resize panel objects. Use the Wiring
    tool to connect diagram objects
  • Control terminals have thicker borders than
    indicator terminals
  • All LabVIEW objects have shortcut menus
  • Wiring is the mechanism to control dataflow and
    produce LabVIEW programs
  • Broken Run arrow nonexecutable VI
  • Various debugging tools and options available
    such as setting probes and breakpoints, execution
    highlighting, and single stepping

37
Tips
  • Tip 1 Command key shortcuts
  • Tip 2 Accessing Tools Palette with
    ltshiftgt-right-click
  • Tip 3 Use ltTabgt to select tools use space bar
    to toggle
  • between the two commonly used tools
  • Tip 4 Increment/Decrement faster
  • Tip 5 ToolsOptions selection - set
    preferences in LabVIEW
  • Tip 6 VI Properties (File menu)

ltCtrl-Rgt Run a VI ltCtrl-Fgt Find
object ltCtrl-Hgt Activate Context Help
window ltCtrl-Bgt Remove all broken
wires ltCtrl-Wgt Close the active
window ltCtrl-Egt Toggle between Diagram/Panel
Window
Write a Comment
User Comments (0)
About PowerShow.com