Lesson 2: Introduction to Control programming using Labview

Slides:



Advertisements
Similar presentations
LabVIEW Crash Course Presented by:.
Advertisements

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.
Based on LabVIEW 2011 Student Edition
LabVIEW and G Graphical Programming Language By: Ramtin Raji Kermani.
DAQmx下多點(Multi-channels)訊號量測
ET 438b Department of Technology Southern Illinois University Carbondale et438b-1 1.
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
ME 322: Instrumentation Lecture 18 March 2, 2015 Professor Miles Greiner TC signal conditioner, Computer data acquisition introduction, Lab 7, myDAQ, LabVIEW.
De la Rosa-Pohl ECE 1100 Introduction to Engineering Intro to LabVIEW: Programming for Symon University of Houston Diana de la Rosa-Pohl Len Trombetta.
Introduction to LabVIEW
Using an FPGA to Control the Protection of National Security and Sailor Lives at Sea Brenda G. Martinez, Undergraduate Student K.L. Butler-Purry, Ph.D.,
Introduction to LabVIEW 8.5
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Monroe L. Weber-Shirk S chool of Civil and Environmental Engineering Learning LabVIEW ä Learning ä LabVIEW ä Data Acquisition ä Control ä Learning ä LabVIEW.
Laboratory 5: Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report / Presentation Closing.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
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
Lecture 13LabVIEW and GPIB LabVIEW (National Instruments) –Graphical program language –Widely used in academia (lab) and industry (R&D) General Purpose.
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.
V1: HMFR, V2: MFNB, 2007 LabView Seminar University of Puerto Rico Mayagüez Campus.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
MCEN 371 – Mechanical Engineering Lab Chapter 6: LabVIEW Part 1: Introduction.
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
CIS Computer Programming Logic
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
LabVIEW – 2 Windows ► Front Panel- User Interface ► Block Diagram- Programming View.
1. 2 LabVIEW Intro, Basics, Tips, Tricks Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
Introduction to LabVIEW 8.5
An Overview of LabVIEW by: The Software User-Interface Group!
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
Laboratory 5: Introduction to LabVIEW
Introduction to LabVIEW
A Presentation on Mr. SAJID NAEEM M.SC – Electronics (UOP) PG-DEP (C-DAC)
LabVIEW Course Course 2.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report/Presentation Closing.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
Workshop 5 of 7 Welcome!. Today's Topics Review from Workshop 4 Modularity & subVIs Documentation File Input/Output Introduction.
ECT 109 Help Bcome Exceptional
Intro to USB-6009 DAQ.
Introduction to LabVIEW
EE 200 Design Tools Laboratory 14
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.
Chapter 5 Structures.
הודעות ריענון מהיר והרחבות Charts & Graphs גרף XY בניית מחולל אותות
הודעות ריענון מהיר והרחבות כתיבה לקובץ Low-Level דגימת אות Low-Level
Introduction to LabVIEW
LabVIEW.
Introduction to LabVIEW
Structures- case, sequence, formula node
Introduction to LabVIEW
EET 2259 Unit 9 Arrays Read Bishop, Sections 6.1 to 6.3.
Introduction to LabVIEW
Introduction to LabVIEW
EET 2259 Unit 2 Virtual Instruments
Introduction to LabVIEW
Presentation transcript:

Lesson 2: Introduction to Control programming using Labview Lesson 2_et438b.pptx ET 438b Sequential Control and Data Acquisition Department of Technology Lesson 2: Introduction to Control programming using Labview

Learning Objectives After this presentation you will be able to Lesson 2_et438b.pptx Learning Objectives After this presentation you will be able to Identify the sections of the LabVIEW development environment. Identify the variable types in LabVIEW Identify and utilize control structures in LabVIEW. Construct a user interface using LabVIEW. Link programs to data acquisition hardware using MAX driver software List the types of I/O available on data acquisition hardware

Control Programming And Data Aquisition Using LabVIEW Lesson 2_et438b.pptx Control Programming And Data Aquisition Using LabVIEW LabVIEW is a graphical programming language that allows rapid development of programs that: Read analog input signal data Read switch input (digital) signal data Process and store data Display data and system status Write analog output signals Write digital output signals for on/off control

LabVIEW Example Compact Florescent Light Testing Controller Lesson 2_et438b.pptx LabVIEW Example Compact Florescent Light Testing Controller Analog inputs read lamp currents Digital outputs control lamp operation Analog samples processed to give RMS V and I values Plot monitors lamp voltage over time

LabVIEW Programming Environment Lesson 2_et438b.pptx LabVIEW Programming Environment LabVIEW is a graphical programming environment Create program here Create user interface here Front Panel Block Diagram (back panel Controls and Indicators Palette Palette changes to programming functions when you click on block diagram

LabVIEW Programming Environment Lesson 2_et438b.pptx LabVIEW Programming Environment Program Control Run/Stop Pause Tool Palette Operate Value Pointer Text Wiring Debug Tools

LabVIEW Programming Environment Lesson 2_et438b.pptx LabVIEW Programming Environment In LabVIEW Input variables = controls Output variables = indicators Numeric Indicators Numeric Controls Boolean Indicators Boolean Controls

LabVIEW Programming Environment Lesson 2_et438b.pptx LabVIEW Programming Environment Other data types in LabVIEW Integers (Signed and Unsigned) I32 I16 I8 U32 U16 U8 Strings Arrays of characters Data Structures in LabVIEW Programming Arrays Collect data of the same type. 1-D and multi-D Indexing begins at 0 Clusters Collect data of dissimilar data same types. Only include indicators or controls

Labview Programming Environment Lesson 2_et438b.pptx Labview Programming Environment Data Types and Structures in LabVIEW Programming Array of Float Point String Icon String Control Integer Icons Array Icon Array of Integers Integer Array Icon Integer I32 and U32 Cluster Cluster

Labview programming Structures Lesson 2_et438b.pptx Labview programming Structures Graphical Programming Structures Stop Condition FOR Loop – Repeats enclosed instructions for a predetermined amount of iterations (N) WHILE Loop – Repeats enclosed instructions until stop condition is met Index, i, in both structures holds current iteration number

Labview programming structures Lesson 2_et438b.pptx Labview programming structures Graphical Programming Structures Logical test connects here TRUE condition executes these items FALSE condition executes these items IF-THEN/CASE Executes enclosed based on logical test (TRUE/FALSE) or Index (CASE) This is how the structure looks on the block diagram

Labview programming Structures Lesson 2_et438b.pptx Labview programming Structures Computed nodes, when written code is simpler Error in Error Out Formula Node Write code in syntax similar to C . Define I/O variable like MathScript MathScript Node Write code in syntax similar to Matlab. Define I/O variable. Allows error checking from other blocks.

Programming in LaBView Lesson 2_et438b.pptx Programming in LaBView Control and Data Acquisition Programming Define Input/Output Variables and Design User Interface Define and/or Select Data Collection and Control Channels and Tasks Program Functionality

Programming StepS Define the I/O and design the interface Lesson 2_et438b.pptx Programming StepS Define the I/O and design the interface Place the programming blocks on back panel Wire the programming blocks on back panel to make a functional program See more programming examples on the course website and in D2L

Developing Data Acquisition and Control Programs in LaBVIEW Lesson 2_et438b.pptx Developing Data Acquisition and Control Programs in LaBVIEW Overview of Data Acquisition and Control Program Structure LabVIEW Program Hardware NI-6024 NI 6221 Measurement and Automation Explorer Define I/O Tasks and channels

Data Acquisition in LabVIEW Lesson 2_et438b.pptx Data Acquisition in LabVIEW Connecting to the outside world with Measurement and Automation Explorer (MAX) Define Types of Signals to Measure Analog input signals Transducer inputs (V, I) Digital inputs signals Binary inputs Switches Create Measurement Channels and Tasks Using (MAX) Analog input signals Differential, Ground Referenced Digital inputs signals Ports (8-bits) Digital lines (1-bit) Access Channels and Tasks Using DAQmax in LabVIEW Analog/Digital Read/Write Single/Multi-sample

Data Acquisition in LabVIEW Lesson 2_et438b.pptx Data Acquisition in LabVIEW Reading Analog Inputs Reading Digital Inputs Access the DAQ functions from the Measurement I/O choice on the programming palette Polymorphic Virtual Instrument (VI). Click to change nature.

End Lesson 2: Introduction to Control programming using Labview Lesson 2_et438b.pptx ET 438b Sequential Control and Data Acquisition Department of Technology End Lesson 2: Introduction to Control programming using Labview