labview material

29
Chapter 1 LabVIEW Basics

Upload: vijaya-lakshmi-kodali

Post on 12-Apr-2017

68 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: Labview material

Chapter 1 LabVIEW Basics

Page 2: Labview material

Features > Uses Graphic Symbols > Created by National Instruments > Virtual Instruments (VIs) > Extensive Library of VIs

Page 3: Labview material

Virtual Instrumentation Applications• Design

– Signal and Image Processing– Embedded System Programming

• (PC, DSP, FPGA, Microcontroller)– Simulation and Prototyping– And more…

• Control– Automatic Controls and Dynamic Systems– Mechatronics and Robotics– And more…

• Measurements– Circuits and Electronics– Measurements and Instrumentation– And more…

Design Prototype Deploy

A single graphical development platform

Page 4: Labview material

The NI Approach – Integrated Hardware Platforms

High-SpeedDigitizers

High-ResolutionDigitizers and DMMs

Multifunction Data Acquisition

DynamicSignal Acquisition

Digital I/OInstrumentControl

Counter/Timers

MachineVision

Motion Control

Distributed I/O andEmbedded Control

Laptop PC PDADesktop PCPXI Modular Instrumentation

Signal Conditioningand Switching

Unit Under Test

Page 5: Labview material

Each VI has 2 Windows

Front Panel• User Interface (UI)

– Controls = Inputs– Indicators = Outputs

Block Diagram• Graphical Code

– Data travels on wires from controls through functions to indicators

– Blocks execute by Dataflow

LabVIEW Programs Are Called Virtual Instruments (VIs)

Page 6: Labview material
Page 7: Labview material
Page 8: Labview material

Express VIs, VIs and Functions• Express VIs: interactive VIs with configurable dialog page• Standard VIs: modularized VIs customized by wiring• Functions: fundamental operating elements of

LabVIEW; no front panel or block diagram

Express VIExpress VI Standard VIStandard VI

FunctionFunction

Page 9: Labview material

Virtual Instrumentation With LabVIEW

Page 10: Labview material

Front Panel Toolbar> Run / Broken Run> Continuous Run> Abort Execution> Pause / Continue> Font Ring> Alignment Ring> Distribution Ring

Page 11: Labview material
Page 12: Labview material

Run Button

Continuous Run Button

Abort Execution

Execution Highlighting Button

Additional Buttons on the Diagram Toolbar

Status Toolbar

Retain Wire Values Button

Step Function Buttons

Page 13: Labview material

Block Diagram Toolbar Additional: > Highlight Execution > Step Into > Step Over > Step Out > Warning Indicator

Page 14: Labview material
Page 15: Labview material

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

Step Out Button

Additional Buttons on the Diagram Toolbar

Status Toolbar

Page 16: Labview material

Palettes > Tools > Controls > Functions

Page 17: Labview material

• Recommended: Automatic Selection Tool• Tools to operate and modify both front panel and

block diagram objects

Operating Tool

Positioning/Resizing Tool

Labeling Tool

Wiring Tool

Tools Palette

Automatic Selection Tool

Automatically chooses among the following tools:

Page 18: Labview material

Operating Tool

Positioning/Resizing Tool

Labeling Tool

Wiring Tool

Shortcut Menu Tool

• Floating Palette• Used to operate and modify

front panel and block diagram objects.

Scrolling Tool

Breakpoint Tool

Probe Tool

Color Copy Tool

Coloring Tool

Tools Palette

Automatic Selection Tool

Page 19: Labview material
Page 20: Labview material
Page 21: Labview material

Controls and Functions Palettes

Controls Palette (Front Panel Window)

Functions Palette (Block Diagram Window)

Page 22: Labview material

Chapter 2

Virtual Instruments

Page 23: Labview material

Modular Programming SubVIs

Page 24: Labview material

VI Main Components > Front Panel - Controls - Indicators

> Block Diagram - Nodes - Terminals - Wires > Icon/Connector

Page 25: Labview material

Block Diagram Features > Control Terminals - Thick Borders > Indicator Terminals - Thin Borders

Page 26: Labview material
Page 27: Labview material

• Block diagram executes dependent on the flow of data; 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 done

Dataflow Programming

Page 28: Labview material
Page 29: Labview material

Block Diagram Features Colors: Number – Orange Boolean – Green Integer – Blue String - PinkWire Type: Thin – Scalar Thick – 1D Array Double – 2D Array