08312013 labview

Upload: aditya-chaudhary

Post on 14-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 08312013 LABVIEW

    1/19

    INTRODUCTION TO

    LABVIEW

    By:

    Aditya Chaudhary

  • 7/27/2019 08312013 LABVIEW

    2/19

    Agenda

    Brief Introduction

    How does LABVIEW Works?

    Components of LABVIEW

    LABVIEW Conventions

    Creating a VI

    Induction Motor Simulation on LABVIEW

    Applications

  • 7/27/2019 08312013 LABVIEW

    3/19

    Brief Introduction

    Laboratory Virtual Instrument Engineering

    Workbench

    Create programs using a graphical notation

    However, it is much more than any programminglanguage.

    It can create programs that run on a number of

    platforms e.g. computers (running Windows, MacOS X or Linux), Microsoft Pocket PC, FPGAs,

    DSPs and microprocessors.

    Users Affectionately call LABVIEW as G

    Language (for graphical).

  • 7/27/2019 08312013 LABVIEW

    4/19

    How does LABVIEW Works?

    A LabVIEW program consists of one or more virtual

    instruments (VIs).

    Virtual instruments are called such because their

    appearance and operation often imitate actual physical

    instruments.

    However, behind the scenes, they are analogous to main

    programs, functions, and subroutines from popular

    programming languages like C or Basic.

    Hereafter, we will refer to a LabVIEW program as a "VI".

    Also, a LabVIEW program is always called a VI, whether

    its appearance or function relates to an actual instrument

    or not.

  • 7/27/2019 08312013 LABVIEW

    5/19

    Components of LABVIEW

    Front Panel Controls = Inputs

    Indicators = Outputs

    Block Diagram Accompanying program for front

    panel

    Components wired together

  • 7/27/2019 08312013 LABVIEW

    6/19

    VI Front Panel

    Front PanelToolbar

    GraphLegend

    Boolean

    Control

    WaveformGraph

    Icon

    Plot

    Legend

    Scale

    Legend

  • 7/27/2019 08312013 LABVIEW

    7/19

    VI Block Diagram

    WireData

    GraphTerminal

    SubVI

    While LoopStructure

    BlockDiagramToolbar Divide

    Function

    NumericConstant

    TimingFunction

    Boolean ControlTerminal

  • 7/27/2019 08312013 LABVIEW

    8/19

    Run Button

    Continuous Run Button

    Abort Execution

    Pause/Continue Button

    Text Settings

    Align Objects

    Distribute Objects

    Reorder

    Resize front panelobjects

    Execution HighlightingButton

    Step Into Button

    Step Over Button

    Step Out Button

    Additional Buttons onthe Diagram Toolbar

    Status Toolbar

  • 7/27/2019 08312013 LABVIEW

    9/19

    Terminals

    When you place a control

    (orindicator) on the

    FRONT PANEL

    LabVIEW automatically

    creates a corresponding

    control(orindicator)terminalon the BLOCK

    DIAGRAM

  • 7/27/2019 08312013 LABVIEW

    10/19

    Control? orIndicator?

    Controls = Inputs from the user = Source Terminals

    Indicators = Outputs to the user = Destinations

  • 7/27/2019 08312013 LABVIEW

    11/19

    Wires

    A LabVIEW VI is held together by wires connecting nodes

    and terminals; they deliver data from one source terminal to

    one or more destination terminals.

  • 7/27/2019 08312013 LABVIEW

    12/19

    Wiring Connections

    Wires transport data

    through the block

    diagram

    Wire color indicates

    variable type

    A red X means

    something is wrong!

  • 7/27/2019 08312013 LABVIEW

    13/19

    Broken wires

    If you connect more than

    one source or no source

    at all to a wire,

    LabVIEW

    DISAGREES with whatyoure doing, and the

    wire will appearbroken

  • 7/27/2019 08312013 LABVIEW

    14/19

    Basic wires used in block diagrams

    and corresponding types

    Each wire has different style or color, depending on the

    data

    type that flows through the wire:

    Scalar 1D array 2D array Color

    Floating-point

    number

    orange

    Integer number blue

    Boolean green

    String pink

  • 7/27/2019 08312013 LABVIEW

    15/19

    LabVIEW Conventions

    Front panel items Controls and indicators

    Block diagram items

    Program structures (loops, case structures, math, etc.)

    Controls vs. Indicators Wires attach to controls on the right (give values)

    Wires attach to indicators on the left (receive values)

    Wiring colors Wires are color coded to correspond to data types

  • 7/27/2019 08312013 LABVIEW

    16/19

    Control

    Terminals

    Block Diagram Window

    Front Panel Window

    Indicator

    Terminals

    Creating a VI

  • 7/27/2019 08312013 LABVIEW

    17/19

    Induction Motor Simulationon LABVIEW

  • 7/27/2019 08312013 LABVIEW

    18/19

    Applications

    Virtual Design of Instruments

    Data Acquisition

    Signal Processing And Analysis

    And many more

  • 7/27/2019 08312013 LABVIEW

    19/19

    THANKYOU