LabVIEW Introduction Alan Jennings.

Slides:



Advertisements
Similar presentations
LABVIEW BASICS MINI-COURSE
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.
Closed-Loop Transfer Functions
LabVIEW Crash Course Presented by:.
LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can.
Based on LabVIEW 2011 Student Edition
© 2002 QxDesign, Inc. Building a PI controller This unit discusses Installation of Visual ModelQ The Visual ModelQ default model Placing and configuring.
Add and Use a Sensor & Autonomous For FIRST Robotics
LabVIEW 7.1 Tutorial. Measurement Lab. MECH262-MECH261 Imran Haider Malik January 16, 2006.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
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.,
Chapter 8 and 9 Review: Logical Functions and Control Structures Introduction to MATLAB 7 Engineering 161.
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.
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
1 Lesson 5 Clusters TOPICS Introduction to Clusters Cluster Functions Error Clusters.
HossamTalaat - MATLAB Course - KSU - 21/1/24 1 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink By Prof. Hossam Talaat.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
EE 198 B Senior Design Project. Spectrum Analyzer.
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
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
EPSII 59:006 Spring Topics Using TextPad If Statements Relational Operators Nested If Statements Else and Elseif Clauses Logical Functions For Loops.
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.
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.
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.
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
Physics 145 Introduction to Experimental Physics I Instructor: Karine Chesnel Office: N319 ESC Tel: Office hours: on appointment.
Each VI has 2 Windows Front Panel User Interface (UI) –Controls = Inputs –Indicators = Outputs Block Diagram Graphical Code –Data travels on wires from.
Design of Bio-Medical Virtual Instrumentation Tutorial 3.
Data Acquisition Data acquisition (DAQ) basics Connecting Signals Simple DAQ application Computer DAQ Device Terminal Block Cable Sensors.
Simulink ® Interface Course 13 Active-HDL Interfaces.
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
CS320n –Visual Programming More LabVIEW Control Structures.
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.
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.
Introduction to LabVIEW
ENGG*4420 Real Time System Design Labs Introduction
Introduction to Matlab Module #9 Page 1 Introduction to Matlab Module #9 – Simulink Topics 1.Simulink Textbook Reading Assignments Practice Problems.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
SIMULINK-Tutorial 1 Class ECES-304 Presented by : Shubham Bhat.
Lecture 26: Reusable Methods: Enviable Sloth. Creating Function M-files User defined functions are stored as M- files To use them, they must be in the.
Modeling of Power Converters using Matlab and Simulink
Workshop 2 of 4 Welcome!. Survey While You Wait ni.com/duke >> Recent Documents >> LabVIEW Workshop Participation Survey.
Project Planning Defining the project Software specification Development stages Software testing.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
LabVIEW Course Course 2.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
NI LabVIEW TM Laboratory Virtual Instrument Engineering Workbench.
Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select.
EE 200 Design Tools Laboratory 14
Lesson 2: Introduction to Control programming using Labview
הודעות ריענון מהיר והרחבות כתיבה לקובץ Low-Level דגימת אות Low-Level
Presentation transcript:

LabVIEW Introduction Alan Jennings

Programming in general The Data: MATLAB, C, Java Variables, stack LabVIEW, Simulink, FPGA Connections (wires) 1 Output, Many inputs Excel Predefined by cells 3/28/2012 Programming comparison

Programming in general The Instructions: Inputs and outputs MATLAB, C, Java, Excel function, operator, method [m,b]= linearfit(x, 3*x+4) LabVIEW, Simulink, FPGA Blocks with inputs and outputs 3/28/2012 Programming comparison

Programming in general Structure: Order of execution MATLAB, C, Java, Excel Sequential: Line after line Routing commands Loops, conditional, break, goto, LabVIEW, As data is available Loops Simulink, FPGA Blocks with inputs and outputs FPGA physically simultaneous Simulink numerically simultaneous 3/28/2012 Programming comparison

Setting up a LabVIEW Program Front Panel Controls: how the user controls the program Indicators: Displaying results Function Wiring for using your VI’s by other VI’s Block Diagram Data: All controls and indicators, Also constants Doing something: Add functions Control what happens: Add structure 3/28/2012 LabVIEW Components

Front Panel Inputs: Number, Array, Matrix File names, Categories 3/28/2012 LabVIEW Components

Front Panel Inputs: Binary More Numeric 3/28/2012 LabVIEW Components

Function Blocks Icons Blocks Default values Using Context help Icons: little to no description Function Blocks Icons Blocks Default values Using Context help Hover over icons, blocks or wires to see what it is and the different signals Blocks expand to show all possible signals 3/28/2012 LabVIEW Components

Loops For Loop While Loop Sequence loops Case loops Indexing over arrays While Loop Wait for an event to stop (such as user or trigger) Feedback block Sequence loops Specify execution order Important for local variables Case loops Conditional Execution 3/28/2012 LabVIEW Components

Data Types Waveforms Arrays (column) 2d Arrays Values, to, Sample frequency Arrays (column) 2d Arrays Clusters (similar to structures) Objects (typical for controlling DAQ’s, etc) Easiest thing to do is use the port and create constant to see 3/28/2012 LabVIEW Components

Ex: Finding Largest Value Generate Data Compare each value to current best 3/28/2012 Programming Examples

Ex: Finding Largest Value Generate Data Use Gaussian generation block Set standard deviation and number of samples Convert data type Compare each value to current best Initialize the current largest value Use `for’ loop to index over signal Change selection based on logic test 3/28/2012 Programming Examples

Ex: Finding Largest Value Generate Data Set standard deviation and number of samples Use Gaussian generation block Convert data type Compare each value to current best Initialize the current largest value Use `for’ loop to index over signal Change selection based on logic test Ex: Finding Largest Value 1 5 2 3 4 6 4 3 3/28/2012 Programming Examples

Ex: Finding Largest Value Generate Data Set standard deviation and number of samples Use Gaussian generation block Convert data type Compare each value to current best Initialize the current largest value Use `for’ loop to index over signal Change selection based on logic test Ex: Finding Largest Value These are controlled by the front panel 3/28/2012 Programming Examples

Ex: Finding Largest Value Generate Data Set standard deviation and number of samples Use Gaussian generation block Convert data type Compare each value to current best Initialize the current largest value Use `for’ loop to index over signal Change selection based on logic test Ex: Finding Largest Value 3/28/2012 Programming Examples

Ex: Finding Largest Value Generate Data Set standard deviation and number of samples Use Gaussian generation block Convert data type Compare each value to current best Initialize the current largest value Use `for’ loop to index over signal Change selection based on logic test Ex: Finding Largest Value To pull of individual values, convert to an array Other blocks may require other formats 3/28/2012 Programming Examples

Ex: Finding Largest Value Generate Data Set standard deviation and number of samples Use Gaussian generation block Convert data type Compare each value to current best Initialize the current largest value Use `for’ loop to index over signal Change selection based on logic test Ex: Finding Largest Value Pull the 0 index as the initial condition Use it to initialize feedback block 3/28/2012 Programming Examples

Ex: Finding Largest Value Generate Data Set standard deviation and number of samples Use Gaussian generation block Convert data type Compare each value to current best Initialize the current largest value Use `for’ loop to index over signal Change selection based on logic test Ex: Finding Largest Value Indexed (pulls each value) Non-Indexed (returns last) Non-Indexed 3/28/2012 Programming Examples

Ex: Finding Largest Value Generate Data Set standard deviation and number of samples Use Gaussian generation block Convert data type Compare each value to current best Initialize the current largest value Use `for’ loop to index over signal Change selection based on logic test Ex: Finding Largest Value Flow if current largest is largest Flow if current value is largest 3/28/2012 Programming Examples

Ex: Approximating Human Control Dynamic System Generate disturbance, Or possibly tracking path Find the command as function of error and its derivative Do linear fit to find average gain values Find how well the gains describe behavior 3/28/2012 Programming Examples

Ex: Approximating Human Control TankControl.vi Simple Tank Control (loss proportion to height) 3/28/2012 Programming Examples

Ex: Approximating Human Control TankControl_2.vi Include maximum time Do linear estimation of control policy Use local variables 3/28/2012 Programming Examples

Ex: Approximating Human Control Doesn’t Work! Zeros for linear fit first time Troubleshooting planar fit error 3/28/2012 Programming Examples

Ex: Approximating Human Control TankControl_3.vi Add 2D and 3D graphs Add control for set point Add start button 3/28/2012 Programming Examples

I didn’t say the graphs looked good.

Sequence loop separates activation

Data Type conversions to use graphics Need to separate the array and bundle x & y as pairs

Other Program Challenges Programming Problems: Finding prime numbers Binary to dec converter tausiq.wordpress.com/2009/07/27/push-ups-with-blaze/ Rock, paper, scissor tournament Currency Converter Verifying 8 Queens 3/28/2012 Programming comparison