Вы находитесь на странице: 1из 20

LabVIEW

Laboratory Virtual Instrumentation Engineering workbench

By Durgesh & Naveen


5/20/12

LAYOUT
INTRODUCTION BASIC ARCHITECTURES MAIN FEATURES APPLICATIONS PROS AND CONS REFERENCES

5/20/12

INTRODUCTION
Platform and development environment Uses graphical programming language Known as virtual instrument Platform independent nature Includes libraries for :

Data Data Data Data

acquisition analysis presentation storage

Latest version is 8.5.1


5/20/12

Two window system

Block Diagram

pictorial solution to a programming problem Components wired together

Front Panel

Controls = Inputs Indicators = Outputs

5/20/12

Block diagram
Source code for VI

5/20/12

Front panel
A User interface Consist of controls and indicators

5/20/12

Basic Architectures
1. Simple VI Architecture

Functional VI that produces results when run


No start or stop options Suitable for lab tests, calculations

5/20/12

Basic Architectures
2. General VI Architecture

Three Main Steps


Startup Main Application Shutdown

5/20/12

Basic Architectures
3. State Machine Architecture

Advantages

Disadvantages

Can go from any state from any other Easy to modify and debug Can lose events if two occur at the same time

States: 0: Startup 1: Idle 2: Event 1 3: Event 2 4: Shutdown

5/20/12

Main Features

Loop Structure
For loop

While loop

5/20/12

Main features
Case

structure

Sequence

structure

5/20/12

Main features
Formula

node structure

5/20/12

Main features
Arrays

and graphs

LabVIEW provides function to work with 1D or 2D array some are :


Initialize array Build array Index array

5/20/12

Main Features

Clusters

Data structure that groups data together Data may be of different types Analogous to struct in C Elements must be either all controls or all indicators

5/20/12

Main features

5/20/12

APPLICATIONS
Data Acquisition Instrument Control Test Automation Analysis and Signal Processing Industrial Control Embedded Design Educational Institutions

5/20/12

Pros
Allows non-programmers to build programs User friendly Reusability of VIs Parallelism Platform independent Time saving

5/20/12

Cons
Lack of the expertise in text programming . Slower than equivalent compiled C code. Expensive compared to other development suites.

5/20/12

REFERENCES
Wikipedia www.ni.com LabVIEW

Summary and Review.htm LabVIEW tutorial.htm

5/20/12

5/20/12