0% found this document useful (0 votes)
41 views21 pages

Programming: Labview Course 1 Quick Reminder of Labview

This document provides an overview of LabVIEW programming concepts including: - The components of a Virtual Instrument (VI) including the front panel and block diagram. - Common controls, indicators, and functions used in the front panel and block diagram. - Tools for creating, editing, and running VIs. - Programming structures like while loops, for loops, arrays, clusters, and decision making using select functions and case structures. - Additional topics covered include plotting data, strings, modular programming using subVIs, and help options.

Uploaded by

traian4u2005
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views21 pages

Programming: Labview Course 1 Quick Reminder of Labview

This document provides an overview of LabVIEW programming concepts including: - The components of a Virtual Instrument (VI) including the front panel and block diagram. - Common controls, indicators, and functions used in the front panel and block diagram. - Tools for creating, editing, and running VIs. - Programming structures like while loops, for loops, arrays, clusters, and decision making using select functions and case structures. - Additional topics covered include plotting data, strings, modular programming using subVIs, and help options.

Uploaded by

traian4u2005
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 21

Programming

LabVIEW
Course 1
Quick reminder of LabVIEW
Course Goals

• Remind of the components of a Virtual


Instrument
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
Front Panel Icon
Toolbar

Boolean
Control Graph
Legend

Waveform
Graph

Plot Scale
Legend Legend
VI Block Diagram
Block
Diagram
Toolbar Divide
Function

SubVI

Graph
Terminal

Wire
Data

While Loop Numeric Timing Boolean Control


Structure Constant Function Terminal
Controls and Functions Palettes
Controls Palette
(Front Panel Window)

Functions Palette
(Block Diagram Window)
Tools Palette
• Floating Palette
• Used to operate and modify
front panel and block diagram
objects.
Automatic Selection Tool

Operating Tool Scrolling Tool

Positioning/Resizing Tool Breakpoint Tool

Labeling Tool Probe Tool

Wiring Tool Color Copy Tool

Shortcut Menu Tool Coloring Tool


Status Toolbar
Run Button

Continuous Run Button Additional Buttons on


the Diagram Toolbar
Abort Execution

Pause/Continue Button Execution Highlighting


Button
Text Settings
Step Into Button
Align Objects
Step Over Button
Distribute Objects
Step Out Button
Reorder

Resize front panel


objects
Creating a VI
Front Panel Window

Block Diagram Window

Control Indicator
Terminals Terminals
Creating a VI – Block Diagram
Help Options
Context Help
• Online help
• Lock help
• Simple/Complex Diagram help
• Ctrl + H

Online reference
• All menus online
• Pop up on functions in diagram to access online info directly
Repetition and Loops

TOPICS
While Loops
For Loops
Accessing Previous Loop Data
Arrays

TOPICS
Introduction to Arrays
Auto Indexing Arrays
Array Functions
Polymorphism
Clusters

TOPICS
Introduction to Clusters
Cluster Functions
Error Clusters
Plotting Data

TOPICS
Waveform Charts
Waveform and XY Graphs
Intensity Graphs
Making Decisions in a VI

TOPICS
Decision making with the Select function
Case Structures
Formula Nodes
Simple Decision: Select Function
• If Temp Scale is TRUE, pass top input;
if temp scale is FALSE, pass bottom input.

• If the decision to be made is more complex than a


Select function can execute, a Case Structure may be
what is required.
Case Structures
Boolean Case Structure Example:
If Temp Scale is TRUE, execute True case;
if temp scale is FALSE, execute False case.
Case Structures
• In the Structures
subpalette of
Functions palette

• Enclose nodes or drag


them inside the
structure

• Stacked like a deck of


cards, only one case
visible at a time
Strings
• A string is a sequence of displayable or - characters (ASCII)

• Many uses — displaying messages, instrument control, file I/O

• String control/indicator is in the Controls»String subpalette


Modular Programming

TOPICS
SubVIs
Icon and Connector Pane
Using SubVIs
Creating a SubVI from sections of a VI

You might also like