presentation on labview basics

29
INTRODUCTION LabVIEW ENVIRONMENT LabVIEW PROGRAMMING CONCEPT SOFTWARE CONSTRUCTS IN LabVIEW PRESENTATION ON LabVIEW

Upload: himshekhar-das

Post on 24-May-2015

551 views

Category:

Engineering


5 download

DESCRIPTION

Presentation to understand the basics of LabVIEW

TRANSCRIPT

Page 1: Presentation on LabVIEW Basics

INTRODUCTION LabVIEW ENVIRONMENT LabVIEW PROGRAMMING CONCEPT SOFTWARE CONSTRUCTS IN

LabVIEW

PRESENTATION ON LabVIEW

Page 2: Presentation on LabVIEW Basics

INTRODUCTION

• LabVIEW is the acronym for Laboratory Virtual Instrument Engineering Workbench

• It is a Graphical-based programming language• VI (virtual instrument) is the basic LabVIEW

element• Programming languages such as C, C++,BASIC

use functions and subroutines LabVIEW uses VI

Page 3: Presentation on LabVIEW Basics

BENEFITSExtensive Interface - Even people with limited

coding experience can write programs and deploy solutions in reduced time interval.It also includes An interface to .NET framework assembly

Code Reuse and Platform independent -The G-code is independent of the operating system

Parallel Processing- Easy to code programs with multiple tasksperformed in parallel by multithreading

Page 4: Presentation on LabVIEW Basics

APPLICATIONS OF LabVIEW

Machine monitoring and control :LabVIEW Real-Time module helps in preparing powerful machine monitoring and control applications

Research and Analysis : Scientist and Researchers use it biomedical ,aerospace energy industries etc .

Control Design : Real world data can be compared with theoretical data .

Page 5: Presentation on LabVIEW Basics

Analogy between LabVIEW and C

• VI FUNCTION• DRAG-DROP UNITS COMMANDS• BLOCK DIAGRAM COMMAND WINDOW

• FRONT PANEL USER INTERFACE• FILE EXTENSION .VI .C• MATH-SCRIPT math.stdio and lot more …..

Page 6: Presentation on LabVIEW Basics

FRONT PANEL •

BLOCK DIAGR

AM

CONNECTOR PANE

Page 7: Presentation on LabVIEW Basics

LabVIEW Environment

A VI has three main parts A. Front PanelB. Block DiagramC. Connector Pane Front Panel: Interacts with the user Block Diagram: Contains the code Connector Pane: Method of connecting to other

VI’s

Page 8: Presentation on LabVIEW Basics

Front Panel

• Right click controls palette pop's up• Connector pane (terminal connector) is a part

of front panel• Caption and Label both are front panel

properties• Traditional Debugging features not available

for front panel

Page 9: Presentation on LabVIEW Basics

FRONT PANEL

It is the user interface

Page 10: Presentation on LabVIEW Basics

Block Diagram

• Label is block diagram property• Right click functions palette pop's up• Traditional debugging features and clean up

diagram option(ctrl+u) available only for block diagram

Page 11: Presentation on LabVIEW Basics

BLOCK DIAGRAM

It contains the code

Page 12: Presentation on LabVIEW Basics

Connector Pane

Means of Passing Data to other VIThe Connector Pane terminals display

the color of data

Page 13: Presentation on LabVIEW Basics

CONNECTOR -PANE

Means of passing data to other VI

Page 14: Presentation on LabVIEW Basics

BUILT-IN-HELP

This is enabled by selecting this item from the Help pull-down menu

If the cursor is placed over the particular button, a small box pops up with its description

It is also activated from the Help pull-down menu by selecting Show Help (Ctrl+H)

Page 15: Presentation on LabVIEW Basics
Page 16: Presentation on LabVIEW Basics

LabVIEW Programming Concept

LabVIEW follows Data-Flow programmingThe process to determine the execution of

program is called Arbitrary-InterleavingDuring compilation the VI compiler constructs a

wired tableLabVIEW functions are polymorphic LabVIEW is not an interpreted language it is

compiled behind the scenes by LabVIEW’s execution engine

Page 17: Presentation on LabVIEW Basics

LabVIEW constructs a wire table for the VIThis wire table identifies elements in the block

diagram that have inputs needed for that element to run

A LabVIEW program is executed by pressing the arrow or the Run button located in the palette along the top of the window

Page 18: Presentation on LabVIEW Basics

LabVIEW has three paletteso Functions Paletteo Control Paletteo Tools Palette

Page 19: Presentation on LabVIEW Basics

CONTROL PALETTE

Page 20: Presentation on LabVIEW Basics

Invoke the control palette by clicking VIEW-CONTROL PALETTE or by right clicking on the front panel

The controls are grouped into categories in a tree

The sub palettes have a lock in the top left corner to keep the window visible while you are working with the controls

Page 21: Presentation on LabVIEW Basics

FUNCTION PALETTE

Invoke the function palette by VIEW-FUCNTION PALETTE or by right clicking on the block diagram

The functions are grouped into categories

Page 22: Presentation on LabVIEW Basics

TOOLS PALETTE

Page 23: Presentation on LabVIEW Basics

VARIOUS TOOLS Automatic tool selectionOperating value PositioningLabeling WiringShort-cut menuScrollingBreakpointProbeGet colorColoring

Page 24: Presentation on LabVIEW Basics

DATA TYPES Numeric StringDynamic Data type BooleanEnumRingWaveformVariantTimestamp

Page 25: Presentation on LabVIEW Basics

STRUCTURES

While-loop- Executes at least once then execute the conditional terminal

For-loop- for(i=0,i<N,i++)If-Else – if (condition) body1

else body2Switch – switch (case1) (case2)……

Page 26: Presentation on LabVIEW Basics

• FOR LOOPN=count terminali=iteration count

Page 27: Presentation on LabVIEW Basics

WHILE LOOPi=Iteration count

Stop Button =test for stop condition(by default it is stop if true)

Page 28: Presentation on LabVIEW Basics

If-Elseif ‘?’ gets value 1, T is executedif it gets value 0 ,F is executed

Page 29: Presentation on LabVIEW Basics

SWITCH CASE(MULTIPLE CASE)

? – CONDITIONAL TERMINALUPPER BOX DISPLAY THE CASE NUMBER