LabView Academy 5. óra. Témakörök SubVI Modularitás Icon Connector Pane.

Slides:



Advertisements
Similar presentations
Value Control with Variables Joe Long Robofest Student Assistant Lawrence Tech Computer Science Major April 12, 2007.
Advertisements

A. Virtual Instruments (VIs)
Previously… We created a simulated temperature reader which alerts if too hot or too cold… Download the solved practice to keep in sync: Thermostat.vi.
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.
Lesson 2 Navigating LabVIEW
Diego Torres LabVIEW Student Ambassador Fall 2011 ITESM CQ
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922.
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 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.
National Instruments Confidential. 2 LabVIEW Development Tips and Tricks Revealed Carl Ljungholm - LabVIEW Product Support Engineer Travis Hailey - LabVIEW.
1. 2 LabVIEW 2011 Versus 8.6 Doug Norman National Instruments January 6, 2012.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 4 SubVIs  Read Bishop, Chapter 4.  Lab #4 and Homework #4 due next week.
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.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Virtual Instrumentation With LabVIEW. Section I LabVIEW terms Components of a LabVIEW application LabVIEW programming tools Creating an application in.
Tips and Tricks to Speed LabVIEW Development Useful Nuggets to Save You Time ni.com/labviewzone.
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.
Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin TECHNOLOGY PLUG-IN T8 DECISION MAKING USING ACCESS.
LabVIEW in 3 Hours. What is Test & Measurement? Keypad Functionality Keypad Functionality LCD Testing LCD Testing Sound Quality Sound Quality Acoustic.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
Samuel Alberg Thrysøe, PhD, PostDoc, Kontakt info: Tlf:
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:
Lab 7 – Misc. pieces Southern Methodist University Bryan Rodriguez.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
Introduction to LabVIEW 8.5
Chapter 10 Function Block Diagram
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft PowerPoint 2002 Lesson 3 Developing.
To play, start slide show and click on circle Lesson 1 Lesson 1 Lesson 2 Lesson 2 Lesson Lesson 3.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
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.
Workshop 5 of 7 Welcome!. Today's Topics Review from Workshop 4 Modularity & subVIs Documentation File Input/Output Introduction.
Week 3 Labview exercises
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
LabVIEW Core 1 Key messages for the instructor:
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Creating Web Pages and Graphics
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Introduction to LabVIEW
הודעות ריענון מהיר והרחבות Charts & Graphs גרף XY בניית מחולל אותות
Chapter 1 LabVIEW Basics
Chapter 5 SubVIs.
Electronics II Physics 3620 / 6620
Introduction to LabVIEW
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
הודעות ריענון מהיר והרחבות - Shift Register Feedback Node המשך
Presentation transcript:

LabView Academy 5. óra

Témakörök SubVI Modularitás Icon Connector Pane

3 SubVI function average (in1, in2, out) { out = (in1 + in2)/2.0; } Block Diagram main { average (point1, point2, pointavg) } SubVI hívás

4 Icon/Connector An icon represents a VI in other block diagrams A connector passes data to and receives data from a subVI through terminals Icon Connector terminals

5 SubVI Example – Calculating Slope A VI within another VI is called a subVI To use a VI as a subVI, create an icon and a connector pane after building the front panel and block diagram

Understanding Modularity LabVIEW uses subVIs to create modularity. Modularity The degree to which a program is composed of discrete modules such that a change to one module has minimal impact on other modules

Understanding Modularity – SubVIs SubVIs correspond to subroutines in text-based programming languages. The upper-right corner of the front panel and block diagram displays the icon for the VI. This icon identifies the VI when you place the VI on a block diagram. SubVI A VI within another VI

Understanding Modularity – SubVIs Repeated code can become subVIs.

Understanding Modularity – SubVIs

Function CodeCalling Program Code function average (in1, in2, out) { out = (in1 + in2)/2.0; } main { average (point1, point2, pointavg) } SubVI Block DiagramCalling VI Block Diagram

Icon Characteristics of a Good Icon Using the Icon Editor

Icon – An icon is a graphical representation of a VI. – If you use a VI as a subVI, the icon identifies the subVI on the block diagram of the VI.

Characteristics of a Good Icon Good icons convey the functionality of the VI using: Relevant graphics Descriptive text, if necessary

Creating Icons - Icon Editor Open the Icon Editor using one of these methods: Right-click the icon in the upper-right corner of the front panel or block diagram and select Edit Icon. Double-click the icon.

Icon Editor Use the editing tools to modify an icon manually.

Icon Editor Use the Glyphs tab to display glyphs you can include in the icon.

Icon Editor Use the Icon Text tab to specify the text to display in the icon.

Icon Editor Use the Templates tab to display icon templates you can use as a background for the icon.

C. Connector Pane Patterns Standards

Connector Pane – The connector pane is displayed next to the icon in the upper right corner of the front panel. Each rectangle on the connector pane represents a terminal. Use the terminals to assign inputs and outputs. – Select a different pattern by right-clicking the connector pane and selecting Patterns from the shortcut menu.

Connector Pane – Standards – Use this connector pane layout as a standard. – Top terminals are usually reserved for references, such as a file reference. – Bottom terminals are usually reserved for error clusters.

D. Using SubVIs Using on Block Diagram Terminal Settings Handling Errors Creating from a Section of Block Diagram

Using SubVIs Options to place a subVI on the block diagram: – Drag the VI from the Project Explorer to the block diagram. – Click Select a VI on the Functions palette and then navigate to the VI. – Drag the icon from an open VI to the block diagram of another VI.

Terminal Settings – Bold Required terminal – Plain Recommende d terminal – Dimmed Optional terminal

Handling Errors Use a Case structure to handle errors passed into the subVI.

Handling Errors Avoid using LabVIEW error handler VIs inside subVIs.

Convert a Section of a VI to SubVI To convert a section of a VI into a subVI: 1.Use the Positioning tool to select the section of the block diagram you want to reuse. 2.Select Edit»Create SubVI.

Exercise 4-1 Temperature Warnings VI Create the icon and connector pane for a VI so you can use the VI as a subVI. Call the subVI from a test VI.

Exercise 4-1 Temperature Warnings VI Do the terminal names in the calling VI need to match the subVI terminal names? Do the data types in the calling VI need to match the subVI terminal data types?

SummaryQuiz 1.On a subVI, which terminal setting causes a broken VI if the terminal is not wired? a)Required b)Recommended c)Optional

SummaryQuiz Answer 1.On a subVI, which terminal setting causes a broken VI if the terminal is not wired? a)Required b)Recommended c)Optional

SummaryQuiz 2.You must create a custom icon to use a VI as a subVI. a)True b)False

SummaryQuiz Answer 2.You must create a custom icon to use a VI as a subVI. a)True b)False You do not need to create a custom icon to use a VI as a subVI, but it is highly recommended to increase the readability of your code.