virtual instrumentation with labview

13
Virtual Instrumentation With LabVIEW

Upload: mikkel

Post on 11-Jan-2016

51 views

Category:

Documents


4 download

DESCRIPTION

Virtual Instrumentation With LabVIEW. LabVIEW Programs Are Called Virtual Instruments (VIs). Front Panel Controls = Inputs Indicators = Outputs. Block Diagram Accompanying “program” for front panel Components “wired” together. VI Front Panel. Panel Toolbar. Boolean Control. Double - PowerPoint PPT Presentation

TRANSCRIPT

Virtual Instrumentation With LabVIEW

Front PanelControls = InputsIndicators = Outputs

LabVIEW Programs Are Called Virtual Instruments (VIs)

Block DiagramAccompanying “program”

for front panelComponents “wired”

together

BooleanControl

DoubleIndicator

Waveform Graph

Panel ToolbarVI Front Panel

VI Block Diagram

Numeric Constant

Thermometer TerminalCall to

subVI

While Loop

KnobTerminal

Stop ButtonTerminal

Stop LoopTerminal

TemperatureGraph

Controls and Functions Palettes

Graphical, floating palettes

Used to place controls &

indicators on the front panel, or to build the block diagram

Controls Palette (Panel Window)

Functions Palette (Diagram Window)

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

Run Button

Continuous Run Button

Abort Execution

Pause/Continue Button

Text Settings

Align Objects

Distribute Objects

Reorder

Execution Highlighting Button Step Into Button

Step Over Button

Step Out Button

Additional Buttons on the Diagram Toolbar

Status Toolbar

ControlTerminals

Block Diagram Window

Front Panel Window

Indicator Terminals

Creating a VI

Dataflow Programming

• 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

Icon and Connector

• An icon represents a VI in other block diagrams

• A connector shows available terminals for data transfer

Icon

Connector

Terminals

Loops

• While Loops– Have Iteration Terminal– Always Run Once– Run According to Continue

Terminal

• For Loops– Have Iteration Terminal– Run According to input N

Loops (cont.)

While Loop

1. Select the loop

2. Enclose Code to Repeat

Wiring Data into Charts

Single Plot Charts Multiplot Charts