EET 2259 Unit 3 Editing and Debugging VIs

Slides:



Advertisements
Similar presentations
LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can.
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.
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.
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.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
ME 411/511Prof. Sailor Data Acquisition & LabView Lecture goals… –Learn the basics of how to use and modify LabView Virtual Instruments –Become familiar.
Virtual Instrumentation With LabVIEW
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.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Create.
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.
Introduction to LabVIEW
Copyright ©: SAMSUNG & Samsung Hope for Youth. All rights reserved Tutorials Software: Presentations Suitable for: Beginner Improver Advanced.
PowerPoint. Basic Vocabulary Slide - Presentation - Slide layout – ► ► ► ► a single page in PowerPoint all the slides for a speech all the slides for.
PowerPoint Tutorial. Basic Vocabulary ► Slide - Presentation - Slide layout – ► ► ► a single page in PowerPoint all the slides for a speech all the slides.
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
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.
Creating, Editing, & Debugging a VI A.How to Create VIs B.How to Edit VIs C.How to Debug VIs You Will Learn:
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
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.
Lab 1 : Introduction to LabView 1 Southern Methodist University Bryan Rodriguez.
Moving and Copying Text Instructor: Glenda H. Easter ITSW 1401, Intro to Word Processing.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
Microsoft Word Level 1 Michael Carco. Word Level 1 Agenda  Word Basics  Navigating in a Document  Inserting and Modifying Text  Creating and Modifying.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select.
Microsoft Word 2000 Presentation 3 Microsoft Word Topics Wizards –Letters –Envelopes and Labels Quick Navigation of Documents –Keyboard short-cuts Editing.
PowerPoint Tutorial.
Creating a Presentation
EET 2259 Unit 13 Strings and File I/O
Chapter 2: The Visual Studio .NET Development Environment
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
Tutorial 2 – Editing and Formatting a Document
EET 2259 Unit 11 Charts and Graphs
Microsoft Office Word 2003 Lesson 4
PhotoShop Creative Suite 3
Chapter 2 – Introduction to the Visual Studio .NET IDE
International Computer Driving Licence Syllabus version 5.0
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
Word Lesson 2 Basic Editing
Lecturer: Dalia Mirghani
Tutorial 1 – Creating a Document
MANIPULATING TEXT WITHIN AND BETWEEN DOCUMENTS
Microsoft Excel 2007 – Level 1
Chapter 7 Advanced Form Techniques
Doing some Boolean: On/Off
Chapter 1 LabVIEW Basics
Chapter 5 SubVIs.
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
Chapter 4 Editing and Debugging
LabVIEW 7.1 寒假短期教學課程 歐陽丞修 2006/02/06.
Key Applications Module Lesson 12 — Word Essentials
SAMPLE PRESENTATION Company Name presents PowerPoint Basics
Introduction to Word Chapter 3
EET 2259 Unit 9 Arrays Read Bishop, Sections 6.1 to 6.3.
Key Applications Module Lesson 12 — Word Essentials
EET 2259 Unit 13 Strings and File I/O
EET 2259 Unit 7 Case Structures; Sequence Structures
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
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
Add Background Style Click the slide or slides that you want to add background style Click Design Tab Click Down arrow in the Themes group.
Presentation transcript:

EET 2259 Unit 3 Editing and Debugging VIs Read Bishop, Chapter 3. Lab #3 and Homework #3 due next week. Quiz #2 next week. Do Quiz #1.

Editing Techniques Editing techniques include Creating controls & indicators on block diagram Selecting objects Moving objects Deleting objects Duplicating objects Resizing objects Labeling objects Changing text font, style, size, color Working with wires Aligning, distributing, and resizing objects Coloring objects Cleaning up the block diagram (Bishop, pp. 112-140) -A slide follows on each of these. -Have students start a blank VI in LabVIEW and follow along with each step.

Creating Controls & Indicators From the Block Diagram After placing a function or subVI on block diagram, right-click on one of its terminals and select Create > Control or Create > Indicator. This adds a control or indicator to the front panel and automatically wires it on the block diagram. (Bishop, p. 112) -Tile windows side by side. -Demo by placing multiply function on block diagram, then Create Control on first input, then Create Constant (=5) on second input, and Create Indicator on output. Note control and indicator on front panel. -Then right-click and Replace control with a knob. Make its digital display visible, and change its representation to I8 instead of floating point.

Automatic Selection Tool Tools Palette Lets you operate and modify objects on front panel or block diagram. Automatic Selection Tool Scrolling Tool Breakpoint Tool Probe Tool Color Copy Tool Coloring Tool Operating Tool Positioning/Resizing Tool Labeling Tool Wiring Tool Shortcut Menu Tool Generally best to use automatic tool selection, in which case you’ll rarely need to bring up this palette. (Bishop, p. 23)

Selecting Objects To move, delete, or copy an object on the front panel or block diagram, you must first select the object. The easiest way to select an object or objects is to drag a box around them. You can also select an object by clicking it with the positioning tool, and you can select multiple objects by shift-clicking. (Bishop, p. 114) -Using knob on front panel, show how selecting the knob also selects label and display, or you can select those items individually.

Moving Objects After selecting an object or objects, move by dragging with the mouse or using the arrow keys. (Bishop, p. 116) -Using knob on front panel, show how moving the knob also moves label and display, or you can move those items individually. -Demo on both front panel and block diagram.

Deleting Objects After selecting an object or objects, delete by pressing Delete or Backspace key, or by Edit > Clear on pull-down menus. (Bishop, p. 117) If you make a mistake, you can undo your last step by using Edit > Undo or pressing Ctrl+Z. -Demo.

Duplicating Objects After selecting an object or objects, duplicate by Edit > Copy and Edit > Paste on pull-down menus (or use Ctrl+C and Ctrl+V shortcut keys). (Bishop, p. 117) Demo on front panel and block diagram.

Resizing Objects To resize an object on the front panel, drag the blue resize handles that appear when you move the positioning tool over the object. Most block-diagram objects cannot be resized. (Bishop, p. 117) -Demo on front panel.

Labels There are two kinds of labels: free labels and owned labels. Create a free label by using the labeling tool on the tools palette or by double-clicking on blank area of front panel or block diagram. Show or hide an object’s owned label by using short-cut menu’s Visible Items > Label. Edit any label by double-clicking. (Bishop, p. 119) -Demo by showing that you can put free labels on either the front panel or the block diagram. -Also you can show or hide a front panel item’s label independently of showing or hiding the label of the corresponding terminal on block diagram.

Changing Text Font, Style, Size, Color Use the Text Settings drop-down box on the toolbar to change text appearance. (Similar to word processors.) You can change text appearance on the front panel or on the block diagram. (Bishop, p. 120) Demo.

Working with Wires (Bishop, pp. 122-127) Wiring “Hot Spot” Click To Select Wires Clean Up Wiring (Bishop, pp. 122-127)

Broken Wires Remove a single broken wire by selecting the wire and pressing the Delete key, or by right-clicking the wire and selecting Delete Wire Branch. Remove all broken wires by using Edit > Remove Broken Wires pull-down menu (or Ctrl+B shortcut key). (Bishop, p. 125) -Demo by deleting multiply function from block diagram.

Aligning, Distributing, and Resizing Objects After selecting two or more front-panel objects, use buttons on the toolbar to align them with each other, space them evenly apart, or make them all the same size. (Bishop, p. 128) The block diagram’s toolbar has Align and Distribute buttons, but not a Resize button. Align Distribute Resize -Demo on front panel with two knobs and a gauge.

Coloring Objects Use the coloring tool on the Tools Palette to change colors of objects. For many front-panel objects, you can also change the color by choosing Properties on the object’s shortcut menu. (Bishop, p. 130) -Demo with knobs and gauge. It seems to me that foreground and background color swatches are reversed for some objects—may take some experimenting to get what you want. Show how with gauge you can independently color the face , the text labels, and the needle. -Also demo changing background color of entire front panel or block diagram.

Cleaning Up the Block Diagram This feature will automatically rearrange your block diagram and reroute the wires to make everything look clean and well-ordered. On the block diagram pull-down menu, click Edit > Clean Up Diagram; or you can just press CTRL+U; or you can just click the Clean Up button: (Bishop, p. 137) Experienced LabVIEW uses tend not to use this a lot, since it may completely rearrange a block diagram that they have carefully organized—demo using Lab02ParallelCircuit. -Also mess up part of the diagram and then show how you can use it just to clean up the selected code.

Debugging Techniques Debugging techniques include Using Broken Run button to find errors Execution highlighting Single-stepping Breakpoints Probes (Bishop, pp. 141-152) -A slide follows on each topic. -Use Bouncing Cube.vi to demo.

Broken Run Button When the block diagram contains an error that prevents the VI from running, the Broken Run button appears in place of the normal Run button. (Bishop, p. 142) -Demo by removing a wire going into one of the Multiply functions. Demo use of Show Error button. Click the Broken Run button to open window listing errors.

Execution Highlighting To monitor the execution of the block diagram, click Highlight Execution button on block diagram’s toolbar and then run the VI. (Bishop, p. 144) -Demo. Show how values appear at terminals as it executes. Click the Highlight Execution button; data flow is animated using bubbles. Values are displayed on wires.

Single-Stepping To execute block diagram one node at a time, use one of the single-stepping buttons on block diagram’s toolbar. (Bishop, p. 146) Step Into button executes current node. If current node is a subVI, its first step is executed. -Demo by pausing while it’s running (with Ex Highlighting on) and then single step a few steps. Step Over button executes current node. If current node is a subVI, entire subVI is executed. Step Out button executes until current subVI (or entire program) finishes.

Execution Highlighting and Single-Stepping Usually when you single-step, you’ll also want to have execution highlighting turned on so that you can see the effect of each step. (Bishop, p. 146) Demo

Breakpoints Set a breakpoint in block diagram by using Breakpoint tool on tools palette or by right-clicking on an object. When you run VI, execution will stop when it reaches the breakpoint. (Bishop, p. 147) This is useful if you’ve got a long program and you want to let it run quickly up to a certain point and then you want to start single-stepping from that point forward. -Demo by inserting breakpoint.

Probes Place a probe in block diagram by using Probe tool on tools palette or by right-clicking on wire. When you run VI, window displays value at the point where the probe is placed. (Bishop, p. 148) This is useful if you don’t want to slow the entire program down with execution highlighting, but you want to see the value at a particular point. -Demo by inserting probe.

Property Nodes Property nodes are block-diagram objects that let you read or set the properties of front-panel objects. To create a property node, right-click a front-panel objects and then select Create > Property Node. (Bishop, p. 153) Property nodes are powerful, advanced features that will become more valuable to you as you gain more LabVIEW experience. -Demo by placing an LED and creating a Label Font Size property node. Then add two more elements to the property node and set them to Position Left and Visible. -First read the values, then change them all to write and connect them to constants. -Then replace the constants with controls that let the user change the properties. -We’ll use property nodes from time to time.

Some Shortcut Keys Ctrl+B removes broken wires. Ctrl+E switches between front panel & block diagram. Ctrl+T tiles front panel & block diagram side by side. Ctrl+H turns help window on or off. Ctrl+U cleans up the block diagram. Plus standard Windows shortcuts: Ctrl+O to open file. Ctrl+S to save file. Ctrl+C to copy. Ctrl+V to paste. Ctrl+Z to undo. (Bishop, p. 155)