You are on page 1of 19

INTRODUCTION TO LABVIEW

By: Aditya Chaudhary

Agenda
Brief Introduction How does LABVIEW Works? Components of LABVIEW LABVIEW Conventions

Creating a VI
Induction Motor Simulation on LABVIEW Applications

Brief Introduction
Laboratory Virtual Instrument Engineering

Workbench Create programs using a graphical notation However, it is much more than any programming language. It can create programs that run on a number of platforms e.g. computers (running Windows, Mac OS X or Linux), Microsoft Pocket PC, FPGAs, DSPs and microprocessors. Users Affectionately call LABVIEW as G Language (for graphical).

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.

Components of LABVIEW
Front Panel
Controls = Inputs Indicators = Outputs

Block Diagram
Accompanying program for front panel Components wired together

VI Front Panel
Front Panel Toolbar Icon

Boolean Control

Graph Legend

Waveform Graph Plot Legend Scale Legend

VI Block Diagram
Block Diagram Toolbar
SubVI Graph Terminal Wire Data Divide Function

While Loop Structure

Numeric Constant

Timing Function

Boolean Control Terminal

Status Toolbar
Run Button Continuous Run Button Abort Execution Pause/Continue Button Text Settings Align Objects Distribute Objects Reorder Resize front panel objects Execution Highlighting Button Step Into Button Step Over Button

Additional Buttons on the Diagram Toolbar

Step Out Button

Terminals
When you place a control (or indicator) on the FRONT PANEL

LabVIEW automatically creates a corresponding control (or indicator) terminal on the BLOCK DIAGRAM

Control? or Indicator?

Controls = Inputs from the user = Source Terminals


Indicators = Outputs to the user = Destinations

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.

Wiring Connections
Wires transport data

through the block diagram


Wire color indicates

variable type
A red X means

something is wrong!

Broken wires
If you connect more than one source or no source at all to a wire,

LabVIEW DISAGREES with what youre doing, and the wire will appear broken

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 Floating-point number
Integer number

1D array

2D array

Color orange
blue

Boolean
String

green
pink

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

Creating a VI
Front Panel Window

Block Diagram Window

Control Terminals

Indicator Terminals

Induction Motor Simulation on LABVIEW

Applications
Virtual Design of Instruments Data Acquisition Signal Processing And Analysis

And many more

THANK YOU