Lesson 2 Navigating LabVIEW

Slides:



Advertisements
Similar presentations
1 ZonicBook/618EZ-Analyst Resonance Testing & Data Recording.
Advertisements

1
Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Microsoft Access 2007 Advanced Level. © Cheltenham Courseware Pty. Ltd. Slide No 2 Forms Customisation.
Local Customization Chapter 2. Local Customization 2-2 Objectives Customization Considerations Types of Data Elements Location for Locally Defined Data.
A. Virtual Instruments (VIs)
Mike Scott University of Texas at Austin
Microsoft®.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Windows XP Project An Introduction to Microsoft Windows XP and Office 2003.
Creating a Dreamweaver Web Page and Local Site
PP Test Review Sections 6-1 to 6-6
1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,
LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 2 Virtual Instruments Read Bishop, Chapter 2. Lab #2 and Homework #2 due next week. Quiz #1 next week.
LabView Academy 5. óra. Témakörök SubVI Modularitás Icon Connector Pane.
Exercise 1: Install PC Software & NXT Firmware
LabVIEW and G Graphical Programming Language By: Ramtin Raji Kermani.
DAQmx下多點(Multi-channels)訊號量測
INTRODUCTION Lesson 1 – Microsoft Word Word Basics
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Office 2003 Integration Integrating Office 2003 Applications and the World Wide Web.
Pasewark & Pasewark Microsoft Office 2003 : Introductory 1 INTRODUCTORY MICROSOFT WORD Lesson 4 – Formatting Text.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
 Copyright I/O International, 2013 Visit us at: A Feature Within from Item Class User Friendly Maintenance  Copyright.
Diego Torres LabVIEW Student Ambassador Fall 2011 ITESM CQ
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Types of selection structures
Physics for Scientists & Engineers, 3rd Edition
1.step PMIT start + initial project data input Concept Concept.
Outlook 2013 Web App (OWA) User Guide Durham Technical Community College.
Workshop 1 of 7 Welcome!. Who am I? Dilim Nwobu Computer Engineering ‘12 Fall 2011 Software Developer for NI LabVIEW Student Ambassador for Texas A&M.
Introduction to LabVIEW
Introduction to LabVIEW 8.5
CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
PC Applications Course LabVIEW: Laboratory Virtual Instrument Engineering Workbench Graphical Programming Easy to use Faster Development Time.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
Virtual Instrumentation With LabVIEW
Lecture 13LabVIEW and GPIB LabVIEW (National Instruments) –Graphical program language –Widely used in academia (lab) and industry (R&D) General Purpose.
Infinity-project.org Engineering education for today’s classroom The Infinity Project SM LabVIEW for The Infinity Project.
How to use LabVIEW Ihor Korolov February 2011.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
V1: HMFR, V2: MFNB, 2007 LabView Seminar University of Puerto Rico Mayagüez Campus.
Virtual Instrumentation With LabVIEW. Section I LabVIEW terms Components of a LabVIEW application LabVIEW programming tools Creating an application in.
Design of Bio-Medical Virtual Instrumentation Tutorial 1.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Create.
MCEN 371 – Mechanical Engineering Lab Chapter 6: LabVIEW Part 1: Introduction.
Chapter 1 LabVIEW Basics. Features > Uses Graphic Symbols > Created by National Instruments > Virtual Instruments (VIs) > Extensive Library of VIs.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs LabVIEW Programs Are Called Virtual Instruments (VIs) Block Diagram.
LabVIEW an Introduction
Introduction to LabVIEW
Each VI has 2 Windows Front Panel User Interface (UI) –Controls = Inputs –Indicators = Outputs Block Diagram Graphical Code –Data travels on wires from.
1. 2 LabVIEW Intro, Basics, Tips, Tricks Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
Creating, Editing, & Debugging a VI A.How to Create VIs B.How to Edit VIs C.How to Debug VIs You Will Learn:
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 3 Editing and Debugging VIs  Read Bishop, Chapter 3.  Lab #3 and Homework #3 due next week.  Quiz.
Introduction to LabVIEW 8.5
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
LabVIEW Course Course 1.
Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select.
Getting Started with LabVIEW Virtual Instruments
LabVIEW Core 1 Key messages for the instructor:
EET 2259 Unit 3 Editing and Debugging VIs
Chapter 5 SubVIs.
Introduction to LabVIEW
EET 2259 Unit 2 Virtual Instruments
EET 2259 Unit 3 Editing and Debugging VIs
Presentation transcript:

Lesson 2 Navigating LabVIEW Virtual Instruments Parts of a VI Starting a VI Project Explorer Front Panel Block Diagram Searching Palettes Selecting a Tool Dataflow Building a Simple VI

A. Virtual Instruments (VIs) LabVIEW programs are called virtual instruments, or VIs Appearance and operation imitate physical instruments, such as oscilloscopes and digital multimeters

B. Parts of a VI LabVIEW VIs contain three main components: 1. Front Panel 2. Block Diagram 3. Icon/Connector Pane

B. Parts of a VI – Front Panel User interface for the VI You build the front panel with controls (inputs) and indicators (outputs)

B. Parts of a VI – Block Diagram Contains the graphical source code Front panel objects appear as terminals on the block diagram

B. Parts of a VI – Icon/Connector Pane Icon: graphical representation of a VI Connector Pane: map of the inputs and outputs of a VI Icons and connector panes are necessary to use a VI as a subVI A subVI is a VI that is inside of another VI Similar to a function in a text-based programming language Icon Connector Pane

Demonstration Starting A VI Demonstrate using the Getting Started dialog box and the New dialog box to start a VI.

D. Project Explorer group together LabVIEW files and non-LabVIEW files Use LabVIEW Projects to: group together LabVIEW files and non-LabVIEW files create build specifications deploy or download files to targets

Demonstration Project Explorer Demonstrate creating a project, adding files, and removing files. Demonstration should take ~ 5 minutes. Open the Course project solution file to use for this demonstration. Add a blank VI, an existing VI, a text file, and remove as well. Be sure to demonstrate that changes made to the project in the Items page do not reflect how the files are saved on disk. Also, demo the difference between adding/creating virtual folders and adding an auto-populating folder (see manual description). Demo the difference between the Items page and the Files page (The Files page displays the location of project folders on disk. Project operations on the Files page both update and reflect the contents of the folder on disk). Do not save the project so that you do not affect your project solution.

E. Front Panel

E. Front Panel – Controls Palette Contains the controls and indicators you use to create the front panel Access from the front panel by selecting View»Controls Palette

E. Front Panel – Front Panel Toolbar

E. Front Panel – Controls & Indicators Knobs, push buttons, dials, and other input devices Simulate instrument input devices and supply data to the block diagram of the VI Indicators Graphs, LEDs, and other displays Simulate instrument output devices and display data the block diagram acquires or generates

E. Front Panel – Numeric Controls/Indicators The numeric data type can represent numbers of various types, such as integer or real Numeric Control Increment/Decrement Buttons Numeric Indicator

E. Front Panel – Boolean Controls/Indicators The Boolean data type represents data that only has two parts, such as True and False or On and Off Use Boolean controls and indicators to enter and display Boolean (True or False) values Boolean objects simulate switches, push buttons, and LEDs Boolean Control Boolean Indicator

E. Front Panel – Strings The string data type is a sequence of ASCII characters Use string controls to receive text from the user such as a password or user name Use string indicators to display text to the user

E. Front Panel – Shortcut Menus All LabVIEW objects have associated shortcut menus As you create a VI, use the shortcut menu items to change the look or behavior of front panel and block diagram objects To access the shortcut menu, right-click the object

E. Front Panel – Property Dialog Box Right-click a front panel object and select Properties to display The options available on the property dialog box are similar to the options available on the shortcut menu for that object

F. Block Diagram Block diagram objects include the following: Terminals SubVIs Functions Constants Structures Wires

F. Block Diagram – Functions Palette Contains the VIs, functions, and constants you use to create the block diagram

F. Block Diagram – Block Diagram Toolbar Be sure to mention the new Block Diagram Cleanup button.

F. Block Diagram – Terminals Terminals are: Block diagram appearance of front panel objects Entry and exit ports that exchange information between the front panel and block diagram Analogous to parameters and constants in text-based programming languages Change the view type of a terminal by toggling the View as Icon selection from the context menu

F. Block Diagram Terminals

F. Block Diagram – Nodes Nodes Objects on the block diagram that have inputs and/or outputs and perform operations when a VI runs Analogous to statements, operators, functions, and subroutines in text-based programming languages Nodes can be functions, subVIs, or structures Nodes

F. Block Diagram – Function Nodes Fundamental operating elements of LabVIEW Do not have front panels or block diagrams, but do have connector panes Double-clicking a function only selects the function – does not open it like a VI Has a pale yellow background on its icon

F. Block Diagram – SubVI Nodes SubVI: VIs that you build to use inside of another VI Any VI has the potential to be used as a subVI When you double-click a subVI on the block diagram, you can view the front panel and block diagram of the subVI The upper right corner of the front panel and block diagram displays the icon for the current VI This is the icon that appears when you place the VI on a block diagram as a subVI

F. Block Diagram – SubVI Nodes Express VIs are a special type of subVI Require minimal wiring because you configure them with dialog boxes Save the configuration of an Express VI as a subVI Icons for Express VIs appear on the block diagram as icons surrounded by a blue field

F. Block Diagram – Icons/Expandable Nodes

F. Block Diagram – Wires DBL Numeric Integer Numeric String Scalar Transfer data between block diagram objects through wires Wires are different colors, styles, and thicknesses, depending on their data types A broken wire appears as a dashed black line with a red X in the middle DBL Numeric Integer Numeric String Scalar 1D Array 2D Array

F. Block Diagram – Wiring Tips Press <Ctrl>-B to delete all broken wires Right-click and select Clean Up Wire to reroute the wire

Exercise 2-1: Exploring a VI Concept Exercise Identify the parts of an existing VI.

G. Searching for Controls, VIs & Functions Find controls, functions, and VIs using the Search button on the Controls and Functions palette. You can also use <ctrl + spacebar> to launch the search feature.

Exercise 2-2: Navigating Palettes Concept Exercise Learn to use the palettes and search for controls, functions and VIs.

H. Selecting A Tool Create, modify, and debug VIs using the tools provided by LabVIEW A tool is a special operating mode of the mouse cursor The operating mode of the cursor corresponds to the icon of the tool selected When using the Automatic Tool Selection, LabVIEW chooses which tool to select based on the current location of the mouse

Exercise 2-3: Selecting A Tool Concept Exercise Gain experience using the Automatic Tool Selection to select which tool to use.

I. Dataflow LabVIEW follows a dataflow model for running VIs A node executes only when data are available at all of its input terminals A node supplies data to the output terminals only when the node finishes execution

I. Dataflow – Quiz Which node executes first? Add Subtract Random Number Divide Sine

I. Dataflow – Quiz Answers NO CORRECT ANSWER Which node executes first? Add – possibly Subtract – definitely not Random Number – possibly Divide – possibly Sine – definitely not

Exercise 2-4: Dataflow Concept Exercise Understand how dataflow determines the execution order in a VI.

J. Building a Simple VI

J. Building a Simple VI – Acquire Acquire Express VIs: DAQ Assistant Express VI Instrument I/O Assistant Express VI Simulate Signal Express VI Read from Measurement File Express VI

J. Building a Simple VI – Analyze Analyze Express VIs: Amplitude and Level Measurements Express VI Statistics Express VI Spectral Measurements Express VI Tone Measurements Express VI Filter Express VI

J. Building a Simple VI – Present Present tasks are Express VIs that perform a function or indicators that present data on the front panel of the VI Indicators include the Waveform Chart, the Waveform Graph, and the XY Graph Express VIs include the Write to Measurement File Express VI, Build Text Express VI, DAQ Assistant Express VI, and the Instrument I/O Assistant Express VI

J. Building A Simple VI – Running Place Express VI on the block diagram Configure the dialog box that opens Wire Express VIs together Save and run the VI The Run button appears broken when the VI you are creating or editing contains errors

Demonstration DAQ Signal Accessory Demonstrate the different aspects of the DAQ Signal Accessory.

Exercise 2-5: Simple Acquire, Analyze, and Present VI Create a simple VI that acquires data, analyzes data, and presents the results.

Summary—Quiz Which function executes first: Add or Subtract? Unknown Which function executes first: Sine or Divide? Sine Divide

Summary—Quiz Answers Which function executes first: Add or Subtract? Unknown Which function executes first: Sine or Divide? Sine Divide

Summary—Quiz Which of the following functions executes first? Random Number Divide Add Unknown Which of the following functions execute last? Subtract

Summary—Quiz Answers Which of the following functions executes first? Random Number Divide Add Unknown Which of the following functions execute last? Subtract

Summary—Quiz What are the three parts of a VI? Front Panel Block Diagram Project Icon/Connector Pane

Summary—Quiz Answer What are the three parts of a VI? Front Panel Block Diagram Project Icon/Connector Pane