For i = 0 to N-1 Execute diagram portion inside the loop

Similar documents
EET 310 Programming Tools

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

Hands-On: Introduction to Object-Oriented Programming in LabVIEW

LabVIEW Lesson 5 Clusters

Data Acquisition Using NI-DAQmx

Cell Phone Vibration Experiment

LabVIEW Day 6: Saving Files and Making Sub vis

DSP Laboratory: Analog to Digital and Digital to Analog Conversion

Introduction to LabVIEW for Control Design & Simulation Ricardo Dunia (NI), Eric Dean (NI), and Dr. Thomas Edgar (UT)

Sample. LabVIEW TM Core 1 Course Manual. Course Software Version 2010 August 2010 Edition Part Number B-01

Introduction to LabVIEW

Lab 4 - Data Acquisition

Lab 3: Introduction to Data Acquisition Cards

Exercise 10: Basic LabVIEW Programming

Lab 1: Full Adder 0.0

First Bytes Programming Lab 2

LabVIEW DSP Test Integration Toolkit for TI DSP

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

Introduction to LabVIEW Design Patterns

Getting Started Manual

Lecture 2 Mathcad Basics

Statgraphics Getting started

Scientific Graphing in Excel 2010

Creating a table of contents quickly in Word

Jump-Start Tutorial For ProcessModel

Beginner s Matlab Tutorial

ACS Version Check Layout Design

4. Do you have a VGA splitter ( Y Cable)? a document camera?

GAMBIT Demo Tutorial

5. Tutorial. Starting FlashCut CNC

Central Processing Unit Simulation Version v2.5 (July 2005) Charles André University Nice-Sophia Antipolis

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

GPIB Instrument Control

Inking in MS Office 2013

Creating tables of contents and figures in Word 2013

1. Installing The Monitoring Software

Directions for Frequency Tables, Histograms, and Frequency Bar Charts

PowerWorld Simulator

Gmail: Signatures, labels, and filters

Gestation Period as a function of Lifespan

This activity will show you how to draw graphs of algebraic functions in Excel.

RLC Series Resonance

Creating an Excel XY (Scatter) Plot

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

User guide for the Error & Warning LabVIEW toolset

Choosing your Preferred Colours in Windows

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

LEGENDplex Data Analysis Software

Tutorial for Tracker and Supporting Software By David Chandler

Smart Connection 9 Element Labels

LABVIEW DSP TEST TOOLKIT FOR TI DSP

Datum > Curve KIM,ME,NIU

Virtual Instrumentation With LabVIEW

Windows: File Management. Lesson Notes Author: Pamela Schmidt

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Hierarchical Clustering Analysis

Introduction to LabVIEW For Use in Embedded System Development. UC Berkeley EE249

How to test and debug an ASP.NET application

Beckman Coulter DTX 880 Multimode Detector Bergen County Technical Schools Stem Cell Lab

Advanced Programming with LEGO NXT MindStorms

Excel Basics By Tom Peters & Laura Spielman

Dash 8Xe / Dash 8X Data Acquisition Recorder

Summary of important mathematical operations and formulas (from first tutorial):

To Begin Customize Office

User's Guide DylosLogger Software Version 1.6

SW43W. Users Manual. FlukeView Power Quality Analyzer Software Version 3.20 onwards

User Guide to LabVIEW & APT

The following is an overview of lessons included in the tutorial.

Introduction to Modern Data Acquisition with LabVIEW and MATLAB. By Matt Hollingsworth

AODA Mouse Pointer Visibility

Dash 18X / Dash 18 Data Acquisition Recorder

ValveLink Mobile Software

An Introduction to Using Simulink

SnagIt Add-Ins User Guide

Installing Remote Desktop Connection

LabVIEW Tutorial Manual

BLE Series. Data setting software MEXE02 OPERATING MANUAL. Tabel of contents 1 Synchronization with the driver Monitor function...

DUKANE Intelligent Assembly Solutions

Creating Database Model Diagrams in Microsoft Visio Jeffery S. Horsburgh

RFID Logger Software User Manual Rev 1.0

EARTH PEOPLE TECHNOLOGY SERIAL GRAPH TOOL FOR THE ARDUINO UNO USER MANUAL

One-Minute Spotlight. The Crystal Ball Forecast Chart

Chapter Table & Graph

Model 288B Charge Plate Graphing Software Operators Guide

Blackboard s Collaboration Tool

Crown Field Support Engineering

Series and Parallel Resistive Circuits

Running a Load Flow Analysis

Years after US Student to Teacher Ratio

Instrument Software Update Instructions. Keysight X-Series Signal Analyzers (PXA/MXA/EXA/CXA) Upgrading an older version to A.12.

FNC-1000 User Guide Table of Contents

How To Program An Nxt Mindstorms On A Computer Or Tablet Computer

Windows XP Home Edition / Windows XP Professional

Bates Gmail Labels, Filters, and Signatures

Comparisons and Contrasts Between imovie 2 and Movie Maker 2

D-MAX WEB GUIDE CONTROLLER WITH OPERATOR INTERFACE PANEL QUICK START SETUP MANUAL

Control and Simulation. in LabVIEW

Adobe Digital Signatures in Adobe Acrobat X Pro

Google Sites. How to create a site using Google Sites

Transcription:

Introductory LabVIEW: Loops, Arrays, and Graphs I. Loops LabVIEW allows the repetition of section of the block diagram by providing two types of loops that are common to structured programming: the while loop and the for loop. 1. While Loop a. The while loop is available in the Functions>Structures sub-palette b. To implement a while loop, select it from the palette then click and drag a window around the section of the block diagram you want to repeat. When you release the mouse button, the while loop will appear. c. Two terminals appear with the while loop: the condition terminal and the iteration terminal i. The condition terminal is a Boolean input terminal that controls the iteration of the while loop. 1. The VI will continue to repeat the diagram within the loop while the input to the condition terminal is TRUE. 2. The condition terminal is checked at the end of each iteration, therefore the while loop always executes once. ii. The iteration terminal is a numeric output terminal that increments for each iteration of the loop 1. The iteration terminal outputs a zero for the first iteration, a one for the second,, n-1 for the n th iteration d. Basically, a while loop is equivalent to the following pseudo-code: Do Execute diagram portion inside loop (which sets the condition) While the condition is TRUE 2. For Loop a. The for loop is also found in the Functions>Structures sub-palette b. You make a for loop in the same way you do a while loop; select it from the palette, then click and drag a window around the part of the diagram you want to repeat c. The for loop also has two terminals: the count terminal and the iteration terminal i. The iteration terminal for the for loop is identical to that of the while loop ii. The count terminal specifies the number of iterations the for loop will execute d. The for loop is equivalent to the following structured pseudocode For i = 0 to N-1 Execute diagram portion inside the loop

II. Arrays LabVIEW sports arrays of one or more dimensions with up to 2 31 elements per dimension, memory permitting 1. Creating arrays a. To create an array control or indicator on the front panel, select an array shell from the Controls>Array & Cluster sub-palette. Next, drag a control or indicator into the array shell. i. To create an array constant in the block diagram, select an array constant shell from the Functions>Array sub-palette. Drag a data constant into the array shell. ii. You can index elements in the array by using the up and down arrows iii. To add a dimension to the array, right click on the index display and select add dimension from the pop-up menu 2. Creating arrays with loops a. For and while loops can index and accumulate arrays at their boundaries automatically b. When auto-indexing is enabled on a wire that passes out of a loop to an indicator, the loop will create and array and pass it to the indicator when the array is complete c. If you only want the final value of an iterated calculation, auto-indexing can be disabled. The loop will pass a scalar value out of the loop to an indicator d. You can enable or disable auto-indexing by right clicking on the box that appears when a wire passes through a loop boundary e. Note that a wire that passes out of an auto-indexed loop is thicker than a wire that exits a loop with auto-indexing disabled. The thicker wire represents an array value. f. For loops enable auto-indexing by default g. While loops disable auto-indexing by default h. Arrays of two or more dimensions can be generated by nesting loops 3. Using arrays a. Many array functions are available on the Functions>Array sub-palette b. LabVIEW arithmetic functions are polymorphic, that is, inputs to these functions can be of different data types: array or scalar i. An example of polymorphism for the add function is shown below

III. Graphs 1. A graph indicator is a two-dimensional display of one or more data arrays called plots or signals. 2. Graphs are found in the Controls>Graph sub-palette 3. There are two types of graphs: waveform graphs and x-y graphs, we will use waveform graphs extensively in this course 4. Simple graphs a. Since a graph is an array indicator, it can simply be wired to the output of an array control, an array function, or an auto-indexed loop b. Multiple dimension arrays can be wired similarly to produce multiple plots in the graph 5. Advanced graphs a. You can change the time scale in a graph by employing the aid of a bundle function i. A bundle function outputs a cluster datatype 1. A cluster is to LabVIEW datatypes as a C structure is to C datatypes or as a telephone cable is to the multiple wires that exist inside it 2. A cluster is a data type that groups other data types ii. A bundler then, is like a cable terminal separate wires go in and a single cable that holds all the wires goes out b. Bundle terminals i. The top input terminal to a bundle function is the initial x value X0 ii. The middle input to a bundle is the step in the x axis, x iii. The bottom input terminal is the data array iv. The output terminal is a single cluster that can be wired directly to a graph indicator