LabVIEW an Introduction

Slides:



Advertisements
Similar presentations
A. Virtual Instruments (VIs)
Advertisements

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
Based on LabVIEW 2011 Student Edition
LabVIEW and G Graphical Programming Language By: Ramtin Raji Kermani.
Diego Torres LabVIEW Student Ambassador Fall 2011 ITESM CQ
TE Sessions Supported by: Basic Concepts of Programming November 3, 2012.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
Loops in LabVIEW (while,for and case)
Introduction to 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.
Loops A.About While Loops B.About For Loops C.About Case structures D.Sequence Structures E.Formula Node You Will Learn:
Dan O. Popa, Intro to EE – Practicum, Spring 2015 EE 1106 : Introduction to EE Freshman Practicum Lecture 2: Signals, Systems and Circuits with Introduction.
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.
Workshop 3 of 7 Welcome!. Today's Topics Review of Workshop 2 Loops While For Auto-indexing Shift registers Case Structure.
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.
Introduction to LabVIEW
Biomedical Measurements & Analysis using LabVIEW
Each VI has 2 Windows Front Panel User Interface (UI) –Controls = Inputs –Indicators = Outputs Block Diagram Graphical Code –Data travels on wires from.
LabVIEW in 3 Hours. What is Test & Measurement? Keypad Functionality Keypad Functionality LCD Testing LCD Testing Sound Quality Sound Quality Acoustic.
Part I MVRT 2011 – 2012 Season Introduction to LabVIEW.
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:
FITTING PROCEDURE LABVIEW FITTING INSTRUMENTS class of “Experimental Methods of Physics” Mikhail Yurov Kyungpook National University March 28 th, 2005.
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.
Design of Bio-Medical Virtual Instrumentation Tutorial 2.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
Workshop 2 of 4 Welcome!. Survey While You Wait ni.com/duke >> Recent Documents >> LabVIEW Workshop Participation Survey.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Introduction to LabVIEW
A Presentation on Mr. SAJID NAEEM M.SC – Electronics (UOP) PG-DEP (C-DAC)
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report/Presentation Closing.
Introduction to LabVIEW
Welcome! Workshop 3 of 7.
Getting Started with LabVIEW Virtual Instruments
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Introduction to LabVIEW
הודעות-שיעור1 שי שרעבי חדר 201
Lab 2 : Structures Muhammad Zaigham Abbas Shah DIGITAL INSTRUMENTATION SYSTEMS.
Lesson 2: Introduction to Control programming using Labview
Chapter 1 LabVIEW Basics
Introduction to LabVIEW
Introduction to LabVIEW
Structures- case, sequence, formula node
Introduction to LabVIEW
Introduction to LabVIEW
EET 2259 Unit 2 Virtual Instruments
Presentation transcript:

LabVIEW an Introduction Alan Holloway

What is LabVIEW LabVIEW is a graphical programming language that uses icons instead of lines of text to create applications. In contrast to text-based programming languages, where instructions determine program execution, LabVIEW uses dataflow programming, where data determine execution. Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Using LabVIEW In LabVIEW, you build a user interface by using a set of tools and objects. The user interface is known as the front panel. You then add code using graphical representations of functions to control the front panel objects. The block diagram contains this code. If organized properly, the block diagram resembles a flowchart. Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Virtual Instruments (VI) LabVIEW programs are called virtual instruments, or VIs, because their appearance and operation imitate physical instruments, such as oscilloscopes and multimeters.

Front Panel The front panel is the user interface of the VI. You build the front panel with controls and indicators, which are the interactive input and output terminals of the VI, respectively. Controls are knobs, push buttons, dials, and other input devices. Indicators are graphs, LEDs, and other displays. Controls simulate instrument input devices and supply data to the block diagram of the VI. Indicators simulate instrument output devices and display data the block diagram acquires or generates Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

LabVIEW front panel Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Block diagram After you build the front panel, you add code using graphical representations of functions to control the front panel objects. The block diagram contains this graphical source code. Front panel objects appear as terminals on the block diagram. You cannot delete a terminal from the block diagram. The terminal disappears only after you delete its corresponding object on the front panel.

Block diagram Every control or indicator on the front panel has a corresponding terminal on the block diagram. Additionally, the block diagram contains functions and structures from built-in LabVIEW VI libraries. Wires connect each of the nodes on the block diagram, including control and indicator terminals, functions and structures. Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Front panel & corresponding block diagram Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Tools palette The Tools palette is available on the front panel and the block diagram. A tool is a special operating mode of the mouse cursor. When you select a tool, the cursor icon changes to the tool icon. Use the tools to operate and modify front panel and block diagram objects. Select View»Tools Palette from the taskbar to display the Tools palette. Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Controls palette The Controls palette is only available on the front panel. The Controls palette contains the front panel controls and indicators you use to create the user interface. Select View» Controls Palette or right-click the front panel workspace to display the Controls palette. Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Functions palette The Functions palette is available only on the block diagram. The Functions palette contains the objects you use to program your VI, such as arithmetic, instrument I/O, file I/O, and data acquisition operations. Select View» Functions Palette from the taskbar or right-click the block diagram workspace to display the Functions palette. Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Status Toolbar Click the Run button to run the VI. While the VI runs, the Run button appears with a black arrow if the VI is a top-level VI, meaning it has no callers and therefore is not a subVI. While the VI runs, the Abort Execution button appears. Click this button to stop the VI immediately. Note: Avoid using the Abort Execution button to stop a VI. Either let the VI complete its data flow or design a method to stop the VI programmatically Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Elements of typical programs A - Loops While loop For loop B - Decision making & file I/O Case structure (if statement) Event structure C - Functions & sub VIs Built in LabVIEW functions Creating sub VI's Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Loops Nearly all programs involve some sort of loop where all or sections of the program must be repeated. Both the While and For Loops are located on the Functions»Structures palette. The For Loop differs from the While Loop in that the For Loop executes a set number of times. A While Loop stops executing the subdiagram only if the value at the conditional terminal exists. Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Drawing loops 1 Select the structure required 2 Enclose the code to be repeated (looped) 3 Wire the appropriate loop conditions Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Loops While loops Runs until the stop condition is met Always runs at least once Counts number of iterations

Loops For loop Runs according to input N number of iterations Counts the number of iterations

LabVIEW Functions What types of function are available Analysis Signal processing Statistics Advanced math & formulae Storage File I/O Zip ARM specific Simulation Read digital I/O +Many more!

Decision making The case structure has one or more subdiagrams, or cases, one of which executes when the structure executes. The value wired to the selector terminal determines which case to execute and can be Boolean, string, integer or enumerated type. Right-click the structure border to add or delete cases. Use the Labeling tool to enter value(s) in the case selector label and configure the value(s) handled by each case. Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Case statement Boolean - True/False Numeric 0,1,2,3 …..n String "Alan", "Mark", "Graham" etc Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

While loop executes every 250ms Timing It may be necessary to add some sort of timing to your program. You can add a timing delay using the Wait Until Next ms Multiple Function Waits until the value of the millisecond timer becomes a multiple of the specified millisecond multiple. While loop executes every 250ms Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com

Summary Controls are inputs and indicators are outputs. LabVIEW programs are called virtual instruments (VIs). Controls are inputs and indicators are outputs. Each VI contains three main parts: Front panel – How the user interacts with the VI Block diagram – The code that controls the program Icon/connector – The means of connecting a VI to other VIs Getting started with LabVIEW http://www.ni.com Introduction to LabVIEW in 3 Hours http://www.ni.com