Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 4 SubVIs  Read Bishop, Chapter 4.  Lab #4 and Homework #4 due next week.

Slides:



Advertisements
Similar presentations
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 6 Shift Registers Read Bishop, Section 5.3. Midterm Exam this week. Lab #6 and Homework #6 due next.
Advertisements

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.
Lesson 2 Navigating LabVIEW
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 5 Loops  Read Bishop, Sections 5.1 and 5.2.  Lab #5 and Homework #5 due next week.  Exam #1 next.
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.
Unit A: Getting Started with Windows 7 Microsoft Office Illustrated Fundamentals.
This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation. All.
1 of 6 Parts of Your Notebook Below is a graphic overview of the different parts of a OneNote 2007 notebook. Microsoft ® OneNote ® 2007 notebooks are digital.
ME 411/511Prof. Sailor Data Acquisition & LabView Lecture goals… –Learn the basics of how to use and modify LabView Virtual Instruments –Become familiar.
HOW TO USE BY ALEX ROSS ALEX ROSS. HOW TO CREATE ACCOUNT FOR DUMMIES is a great way to communicate with others. We can interact with.
Using Microsoft Outlook: Basics. Objectives Guided Tour of Outlook –Identification –Views Basics –Contacts –Folders –Web Access Q&A.
Collaborating with Outlook 2002 and Exchange 2000.
Virtual Instrumentation With LabVIEW
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 13 Strings and File I/O  Read Bishop, Chapter 9.  Lab #13 and Homework #13 due next week.
Infinity-project.org Engineering education for today’s classroom The Infinity Project SM LabVIEW for The Infinity Project.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 8 Other Structures; Local Variables  Read Bishop, Sections 5.6 to  Lab #8 and Homework #8 due.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Create.
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
Using Interact!. OPENING THE NECESSARY SOFTWARE To access the Interact service, you need to use software entitled “FirstClass.” Click and hold the Apple.
Biomedical Measurements & Analysis using LabVIEW
| | Tel: | | Computer Training & Personal Development Outlook Express Complete.
CIS—100 Chapter 15—Windows Vista 1. Parts of a Window 2.
Creating a Web Site to Gather Data and Conduct Research.
Physics 434 Welcome Toby Burnett [prof] Durmus Karatay[TA] Jason Alferness [Equipment] David Pengra [consultant]
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
Unit A: Getting Started with Windows 7 Microsoft Office Illustrated Fundamentals.
Samuel Alberg Thrysøe, PhD, PostDoc, Kontakt info: Tlf:
EET 2259 Unit 7 Case Structures; Sequence Structures  Read Bishop, Sections 5.4 and 5.5.  Lab #7 and Homework #7 due next week.  Quiz #3 next week.
1. 2 LabVIEW Intro, Basics, Tips, Tricks Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
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.
Using Skype to Communicate with Family and Friends Presented by: Karla Lechuga.
Chapter Two Creating a First Project in Visual Basic.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
Introduction to LabVIEW 8.5
Lab 1 : Introduction to LabView 1 Southern Methodist University Bryan Rodriguez.
Chapter 13: AutoCAD DesignCenter. After completing this Chapter, you will be able to use the following: Overview of DesignCenter Container, Content Type.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
I. Getting Started with the Interface Microsoft ® Windows ® Movie Maker.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
Physics 434 Welcome Leslie Rosenberg [prof] Scott Davis [TA] Thanks to Toby Burnett [prof] (for much of the course material) Jason Alferness [Equipment]
Computing Fundamentals Module Lesson 7 — The Windows Operating System Computer Literacy BASICS.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 9 Arrays  Read Bishop, Sections 6.1 to 6.3.  Homework #9 and Lab #9 due next week.  Quiz #5 next.
AL A. LAURIO Teacher Microsoft Windows Vista. DESKTOP is the main screen area that you see after you turn on your computer and log on to Windows. it serves.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Word and the Writing Process. To create a document 1.On the Start menu, point to Programs, and then click Microsoft Word. A new document opens in Normal.
Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
EET 2259 Programming for Electronics Technology Professor Nick Reeder.
Workshop 5 of 7 Welcome!. Today's Topics Review from Workshop 4 Modularity & subVIs Documentation File Input/Output Introduction.
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
EET 2259 Unit 11 Charts and Graphs
EET 2259 Unit 3 Editing and Debugging VIs
Chapter 5 SubVIs.
EET 2259 Unit 7 Case Structures; Sequence Structures
EET 2259 Unit 11 Charts and Graphs
EET 2259 Unit 2 Virtual Instruments
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
EET 2259 Unit 8 Other Structures; Local Variables
EET 2259 Unit 3 Editing and Debugging VIs
Presentation transcript:

Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 4 SubVIs  Read Bishop, Chapter 4.  Lab #4 and Homework #4 due next week.

Floyd, Digital Fundamentals, 10 th ed Modular Programming  When writing a complex program, good programmers divide their programs into separate parts that can be written and tested independently, and that can be re-used in other programs.  In text-based programming languages, these parts are called subroutines.  In LabVIEW they’re called subVIs. (Bishop, p. 173)

Floyd, Digital Fundamentals, 10 th ed Hierarchy of VIs  Your main VI can contain one or more subVIs.  Each of those subVIs can contain one or more subVIs.  Each of those subVIs can contain subVIs.  And so on…

Floyd, Digital Fundamentals, 10 th ed A Little Poem “Great fleas have little fleas upon their backs to bite 'em, And little fleas have lesser fleas, and so ad infinitum. And the great fleas themselves, in turn, have greater fleas to go on, While these again have greater still, and greater still, and so on.” Augustus DeMorgan ( )

Floyd, Digital Fundamentals, 10 th ed Example: Notification.vi  In LabVIEW’s Example Finder, browse according to Task. Open Networking folder, then open Internet & Web folder. Then open Notification.vi.  In its block diagram, double-click on SMTP Send Message.vi.  In its block diagram, double-click on SMTP Send Message Charset.vi.  And so on…

Floyd, Digital Fundamentals, 10 th ed Hierarchy Window  LabVIEW’s VI Hierarchy Window shows how all of these VIs are related to each other.  Open the window by using View > VI Hierarchy in pull-down menus. (Bishop, p. 196)

Floyd, Digital Fundamentals, 10 th ed Example: Notification.vi

Floyd, Digital Fundamentals, 10 th ed A Simpler Example  Suppose you’re writing a program that lets the user enter values for x, y, and z, and then calculates x 3 + y 3 + z 3. Rather than placing all of the multiply functions to compute x 3, y 3, and z 3 individually, consider building a subVI that will cube any number.

Floyd, Digital Fundamentals, 10 th ed Steps in Creating a SubVI 1. Create the VI. 2. Create the icon. 3. Create the connector with the correct number of input and output terminals. 4. Assign the connector’s terminals to the VI’s controls and indicators. 5. Add a description. 6. Save the VI.

Floyd, Digital Fundamentals, 10 th ed Icon  A subVI is represented by an icon on the block diagram of a VI that uses the subVI.  When a VI’s front panel or block diagram is open, the VI’s icon appears in the upper right corner.  The default icon is the LabVIEW logo along with a number. (Bishop, p. 177)

Floyd, Digital Fundamentals, 10 th ed Icon Editor  If you plan to use a VI as a subVI, you should replace the default icon with a more informative icon.  Use the icon editor to do this. Right-click on the icon in the front panel and select Edit Icon…. (Bishop, p. 177)

Floyd, Digital Fundamentals, 10 th ed Connector  To use a VI as a subVI, you must assign it a connector so that you’ll be able to attach wires to it on the block diagram of a VI that uses it as a subVI.  The connector contains one terminal for each of the subVI’s inputs and outputs. (Bishop, p. 180) Connector Input terminalsOutput terminal

Floyd, Digital Fundamentals, 10 th ed Creating the Connector  To create the connector, right-click the icon in the front panel and select Show Connector.  You can choose a different connector pattern by right-clicking the connector and selecting Patterns. (Bishop, p. 181)

Floyd, Digital Fundamentals, 10 th ed Assigning Terminals to Controls and Indicators  Next, assign terminals on the connector to your front-panel controls and indicators.  To do this, click on a terminal with the Wiring tool and then click on the control or indicator that you want to assign to that terminal.  Always assign terminals on the left to inputs (controls), and terminals on the right to outputs (indicators). (Bishop, p. 183)

Floyd, Digital Fundamentals, 10 th ed Required, Recommended, Optional Terminals  You can identify each terminal as being required, recommended, or optional.  If required terminals are left unwired, then the VI will not run as a subVI. But it will run when recommended or optional terminals are left unwired.  By default, all terminals are recommended.  To change a terminal’s status, right-click the terminal and select This Connection Is. (Bishop, p. 185)

Floyd, Digital Fundamentals, 10 th ed Context Help Window  Information about a subVI appears automatically in the Context Help window when you roll the mouse over the subVI’s icon on a block diagram.  This information includes the subVI’s name and icon the name of each terminal (in bold text if it’s required, in plain text if it’s recommended, in gray text if it’s optional) The subVI’s description, if you added one (Bishop, p. 184)

Floyd, Digital Fundamentals, 10 th ed Adding a Description  You should document your VI by adding a description of what it does.  To do this, choose File > VI Properties… in the pull-down menus, then select Documentation from the drop-down box, and then type your description. (Bishop, p. 187)

Floyd, Digital Fundamentals, 10 th ed Adding More Detailed Info  In addition to a description for the entire VI, you can also add a description for each control and indicator on the VI’s front panel.  To do this, right-click on the control or indicator and choose Description and Tip…. Then type a description and a brief tip.  Now when you roll over the object, its description will appear in the Context Help window and its tip will appear next to the object. (Bishop, p. 188)

Floyd, Digital Fundamentals, 10 th ed Summary: Creating a SubVI 1. Create the VI. 2. Create the icon. 3. Create the connector with the correct number of input and output terminals. 4. Assign the connector’s terminals to the VI’s controls and indicators. 5. Add a description. 6. Save the VI.

Floyd, Digital Fundamentals, 10 th ed Using a VI as a SubVI  After you’ve created and saved a VI, how do you call it as a subVI inside another program?  Choose All Functions on the Functions palette, then choose Select a VI… and then locate your VI. (Bishop, p. 188)

Floyd, Digital Fundamentals, 10 th ed SubVI Is a Separate File  CAUTION: When you save a program that calls a subVI, the subVI is not saved as part of that “caller” VI. The two files are totally distinct.  So if you send someone the caller VI, you must also send the separate subVI file, or the person won’t be able to run your program.