labview is a graphical programming development environment for data acquisition and control, data...

17
•LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentat ion. •With LabVIEW you can build graphical programs called virtual i nstruments (VIs) instead of writing text based programs. •One creates front panel user interfaces that give interactive control of system. •One assembles block diagrams to add functionality to the user interface. (This is done in the diagram window)

Upload: quinn-plumley

Post on 31-Mar-2015

225 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

•LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation.

•With LabVIEW you can build graphical programs called virtual instruments (VIs) instead of writing text based programs.

•One creates front panel user interfaces that give interactive control of system.

•One assembles block diagrams to add functionality to the user interface. (This is done in the diagram window)

Page 2: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can
Page 3: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Front PanelThe front panel is the user interface of the VI. You build the front panel with controls and indicators, which are the interactive input and output terminals of the VI, respectively. Controls are knobs, pushbuttons, dials, and other input devices. Indicators are graphs, LEDs, and other displays. Controls simulate instrument input devices and supply data to the block diagram of the VI. Indicators simulate instrument output devices and display data the block diagram acquires or generates.

Controls PaletteThe Controls palette is available only on the front panel. The Controls palette contains the controls and indicators you use to create the front panel. Select Window»Show Controls Palette or right-click the front panel workspace to display the Controls palette. You can place the Controls palette anywhere on the screen.

Page 4: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Block DiagramAfter you build the front panel, you add code using graphical representations of functions to control the front panel objects. The block diagram contains this graphical source code. Front panel objects appear as terminals on the block diagram. Additionally, the block diagram contains functions and structures from built-in LabVIEW VI libraries. Wires connect each of the nodes on the block diagram, including control and indicator terminals, functions, and structures.

Functions PaletteThe Functions palette is available only on the block diagram. The Functions palette contains the VIs and functions you use to build the block diagram. Select Window»Show Functions Palette or right-click the block diagram workspace to display the Functions palette. You can place the Functions palette anywhere on the screen.

Page 5: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Operating tool

Wiring tool

Breakpoint tool

Probe tool

Positioning tool

Labeling tool

Scrolling tool

Color Copy Tool

Coloring tool

Object pop-up

Menu tool

Tools PaletteThe Tools palette is available on the front panel and the block diagram. A tool is a special operating mode of the mouse cursor. When you select a tool, the cursor icon changes to the tool icon. Use the tools to operate and modify front panel and block diagram objects. Select Window»Show Tools Palette to display the Tools palette. You can place the Tools palette anywhere on the screen. If automatic tool selection is enabled and you move the cursor over objects on the front panel or block diagram, LabVIEW automatically selects the corresponding tool from the Tools palette.

Page 6: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

DIAGRAM EXAMPLE WITH FUNCTION PALETTE

Page 7: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Wiring tool: Tool to define data paths between terminals.

Operating tool: Tool to enter data into controls and operate them.

Labeling tool: Tool to create labels and enter text into text windows.

BreakPoint Tool:Use the Breakpoint tool to place a breakpoint on a VI, node, or wire on the block diagram and pause execution at that location.When you set a breakpoint on a wire, execution pauses after data pass through the wire. Place a breakpoint on the block diagram workspace to pause execution after all nodes on the block diagram execute.

Positioning Tool: Used to position objects. The Positioning tool also resizes objects. To avoid resizing an object, place the Positioning tool in the center of the object to move it. Click the corners of an object to resize it.

Scrolling tool: Used to size window for VIs.

SOME IMPORTANT TOOL FUNCTIONS

Page 8: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

FRONT PANEL EXAMPLE WITH CONTROLS

Page 9: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Numeric

Array &

Cluster

Ring &

Enum

Decoration

Boolean

String & Path

Graph

User Control

Select a control

CONTROL PALETTE

The Control palette is available only when the front panel window is active.

Page 10: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Digital Control

Vertical Fill slide

Digital Indicator

Horizontal Fill Slide

Knob

Tank

Vertical Pointer Slide

Vertical Graduated bar

Gauge

Thermometer

NUMERIC CONTROL

Page 11: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Push Button

Round LED

Square LEDVertical Slide

Switch

Vertical Toggle switch

Vert Rocker

BOOLEAN CONTROL

Page 12: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Waveform Chart

3-D Curve Graph3-D Surface Graph

XY Graph

Digital Waveform Chart

Intensity Chart

GRAPH CONTROL

Page 13: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

DIAGRAM EXAMPLE WITH FUNCTION PALETTE

Page 14: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Structures Boolean

Numeric

String

Comparison

Data Acquisition

Tutorial

Select a VI

Cluster

File I/O

Mathematics

User Libraries

Waveform

Analyze

FUNCTION PALETTE

Page 15: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

Case

For

While

Formula Node

Sequence

STRUCTURES

Page 16: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

NUMERIC

Add

Absolute ValueSquare root

Numeric constant

Trigonometric

Conversion

Compound Arithmetic

Increment

Page 17: LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can

AND

NOT AND

COMPOUND ARTHIMETIC

BOOLEAN TO 0 or 1

AND

AND ARRAY ELEMENTS

TRUE CONSTANT

FALSE CONSTANT

BOOLEAN FUNCTION