CS320n –Visual Programming More LabVIEW Foundations.

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.
LabView Academy 5. óra. Témakörök SubVI Modularitás Icon Connector Pane.
Lesson 2 Navigating LabVIEW
Based on LabVIEW 2011 Student Edition
September, 2004Patient Care Inquiry PCI - Customizing Your Patient ID Menu.
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
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.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
CS 2511 Fall  Windows:  Start->Specialized Academic Software- >Programming Languages->NetBeans->NetBeans IDE x.y.z  where x.y.z is a version.
CS320n –Visual Programming Introduction to LabVIEW.
CS320n –Visual Programming LabVIEW Control Structures.
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.
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
Mastering Your Word Processing Skills
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.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
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.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
LabVIEW in 3 Hours. What is Test & Measurement? Keypad Functionality Keypad Functionality LCD Testing LCD Testing Sound Quality Sound Quality Acoustic.
InDesign CS3 Lesson 4 ( Only pages ) Importing and Editing Text.
Part I MVRT 2011 – 2012 Season Introduction to LabVIEW.
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
CS320n –Visual Programming More LabVIEW Control Structures.
1. 2 LabVIEW Intro, Basics, Tips, Tricks Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
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.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Chapter Two Creating a First Project in Visual Basic.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
Lab 1 : Introduction to LabView 1 Southern Methodist University Bryan Rodriguez.
PowerPoint Basics Tutorial 1: Objects These tutorials will introduce you to the most basic and useful functions of Microsoft PowerPoint We’re going.
CS320n –Visual Programming
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
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.
Computer Programming I
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
EET 2259 Unit 3 Editing and Debugging VIs
Introduction to LabVIEW
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.
Electronics II Physics 3620 / 6620
Creating the First Program
Running a Java Program using Blue Jay.
Introduction to LabVIEW
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
EET 2259 Unit 3 Editing and Debugging VIs
Presentation transcript:

CS320n –Visual Programming More LabVIEW Foundations

Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Look at some more features of LabVIEW Work on exercises involving debugging and creating sub VIs

Visual ProgrammingLabVIEW Foundations3 VI Libraries VIs can be saved as individual programs A group of VIs can be saved together as a VI library creating -> an option in the save window opening -> open as regular file, then select which VI to open from library

Visual ProgrammingLabVIEW Foundations4 From Last Time Some functions have a variable number of inputs The string concatenation function When opened notice blue dots on top and bottom function can be expanded for more inputs –note visual cue on order of inputs in result for three input function

Visual ProgrammingLabVIEW Foundations5 Debugging VIs that are broken cannot be run –analogous to syntax error in text based programming languages Most common mistakes –required input missing on function terminals (for example, add) –type mismatch on data (wire double when integer was expected –loose, unconnected wires –sub VI is broken –multiple inputs into a single indicator

Visual ProgrammingLabVIEW Foundations6 Broken Programs Clicking on the broken arrow brings up a list of errors Clicking on an error displays more information about the error

Visual ProgrammingLabVIEW Foundations7 Stepping Through a Program Sometimes you want to observe a program step by step, not all at once Click on the single set button instead of the run button Press the single step button to see the flow of the program

Visual ProgrammingLabVIEW Foundations8 Execution Highlighting Another excellent debugging tool is Execution Highlighting –aside: why no debugging tools in Alice? Select “Highlight Execution” and data values and movement shown as program runs. Very useful Can be used as program runs or combined with stepping through program

Visual ProgrammingLabVIEW Foundations9 Probes To view the value on a wire or result of a function you can either set up an indicator or use a probe With a running program, probe is auto selected when putting the cursor near a wire When the program is not running probes can be added. –choose the “Window” menu –select “Show Tools Palette” –click on the probe tool to add probes –be sure to change Tool back to auto select when finished probe

Visual ProgrammingLabVIEW Foundations10 Breakpoints Suppose you want to stop the program at a single point, deep into the execution using the step by step control is a pain set a breakpoint –right click or use breakpoint tool –program will run normally until it hits that point break point on wire and function

Visual ProgrammingLabVIEW Foundations11 Creating sub VIs If you create a program and want to use that in other program you can create a Sub VIs steps in creating a sub VI –assign VI controls and indicators to wire terminals on its connector pane so that data can be passed into and out of the VI –create an icon for the VI

Visual ProgrammingLabVIEW Foundations12 C to F Create icon –right click on icon in upper right corner and select “Edit Icon”

Visual ProgrammingLabVIEW Foundations13 Assign Connectors Defining parameters –like in Alice Right click icon on the front panel. (Not the block diagram.) Select “Show Connector” –two terminals –input / control on left –output / indicator on right click in left hand terminal / box on icon and select front panel control to set repeat for right hand side terminal