Laboratory 5: Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report / Presentation Closing.

Slides:



Advertisements
Similar presentations
Digital Logic Circuits
Advertisements

LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can.
Lesson 2 Navigating LabVIEW
LabVIEW and G Graphical Programming Language By: Ramtin Raji Kermani.
Software for Engineers EG1003: Introduction to Engineering and Design.
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.
EG1003: Introduction to Engineering and Design Software for Engineers.
Introduction to LabVIEW 8.5
PC Applications Course LabVIEW: Laboratory Virtual Instrument Engineering Workbench Graphical Programming Easy to use Faster Development Time.
CS320n –Visual Programming Introduction to LabVIEW.
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.
EG1003: Introduction to Engineering and Design Sensors.
Laboratory 7 Introduction to LabVIEW General Engineering Department Polytechnic University.
Virtual Instrumentation With LabVIEW
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.
Design of Bio-Medical Virtual Instrumentation Tutorial 1.
MCEN 371 – Mechanical Engineering Lab Chapter 6: LabVIEW Part 1: Introduction.
LabVIEW an Introduction
Introduction to LabVIEW
Implementing LabVIEW in an Intermediate Physics Laboratory Steven Sahyun Physics Department, University of Wisconsin - Whitewater, Whitewater, Wisconsin.
General Engineering Polytechnic University Laboratory 9: Electrical Filters.
Physics 145 Introduction to Experimental Physics I Instructor: Karine Chesnel Office: N319 ESC Tel: Office hours: on appointment.
Biomedical Measurements & Analysis using LabVIEW
Laboratory 7: Sensors Matthew R. Gaglio, Feb 2007.
TA: Chris Reilly Group 5: Benjamin, Ramie, Zachary, Dinal.
Data Acquisition Data acquisition (DAQ) basics Connecting Signals Simple DAQ application Computer DAQ Device Terminal Block Cable Sensors.
Part I MVRT 2011 – 2012 Season Introduction to LabVIEW.
Introduction to LabVIEW 8.5
An Overview of LabVIEW by: The Software User-Interface Group!
Digital Logic Circuits. Overview  Objectives  Background  Materials  Procedure  Report / Presentation  Closing.
Laboratory 10: Electronic Filters. Overview  Objectives  Background  Materials  Procedure  Report / Presentation  Closing.
Laboratory 7: Sensors. Overview Objective Background Materials Procedure Report / Presentation Closing.
Digital Logic Circuits. Overview Objectives Background Materials Procedure Report/Presentation Closing.
EG1003: Introduction to Engineering and Design Laboratory 4: Sensors.
Laboratory 5: Introduction to LabVIEW
Introduction to LabVIEW
EG1003: Introduction to Engineering and Design Laboratory 4: Sensors.
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.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
EET 2259 Programming for Electronics Technology Professor Nick Reeder.
ECT 109 Help Bcome Exceptional
Digital Logic Circuits
Digital Logic Circuits
Introduction to LabVIEW
Laboratory 1: Software for Engineers
SCADA for Remote Industrial Plant
Digital Logic Circuits
Lesson 2: Introduction to Control programming using Labview
Laboratory 7: Sensors Matthew R. Gaglio, Feb 2007.
Laboratory 4: Sensors Matthew R. Gaglio, Feb 2007.
Introduction to LabVIEW
Digital Logic Circuits
Introduction to LabVIEW
Digital Logic Circuits
Digital Logic Circuits
Prototyping with Micro-controllers, Sensors, and Materials
Prototyping with Micro-controllers, Sensors, and Materials
Introduction to LabVIEW
Prototyping with Micro-controllers, Sensors, and Materials
Introduction to LabVIEW
Prototyping with Micro-controllers, Sensors, and Materials
Introduction to LabVIEW
Presentation transcript:

Laboratory 5: Introduction to LabVIEW

Overview Objectives Background Materials Procedure Report / Presentation Closing

Objectives Familiarization with graphical programming Obtain data from outside the computer using simulated instrumentation Use this knowledge to create programs in LabVIEW –Simple calculator –Heating and cooling system –Lighting system

What is LabVIEW? Laboratory Virtual Instrument Engineering Workbench Graphical programming language Used for data acquisition, instrument control, and signal processing Based on G programming language

Text-based

Graphic-based G

LabVIEW Programs (VIs) Called “Virtual Instruments” (VIs) Appearance and operation imitates actual physical instruments WithoutWith

Applications in EG 1004 Heat Transfer and Thermal Insulation Lab –Therm1.vi Electronic Filters Lab –Oscilloscope Semester Long Project – Supermarket, Train –Lighting system and heater/AC –Security system –Light sensors –Switches rail paths

LabVIEW Interface Front Panel - User Interface (UI), where the program is controlled and executed Back Panel (Block Diagram) - The internal circuit where the program code is written

Controls & Indicators Icon in back panel represents object in front panel

Color Representation

LabVIEW Tools

LabVIEW Functions (View  Functions)

Structures Allow programmer to produce conditional statements or multiple outputs, based on input Example –Case Structure Executes code based on input value

DAC Board Data Acquisition & Control Board –Interface that exchanges data (sends/receives) between the computer and the outside world –DAC Icons Used: One Input Analog Channel Port Config Port Write References: See EG1004 Online Manual, National Instruments documentation, and other LabVIEW oriented websites (i.e. IIT’s LabVIEW for Dummies © )

Termination Board: Pins and Channels Pin (on bottom part numbered 1 to 49) –Channel termination node –a pin receives one bit of information –Bit values and pin states “0” or “1” in binary terms A bit value of “0”  low voltage ≈ 0 VDC A bit value of “1”  high voltage ≈ +5VDC Channel –path for sending information (i.e. cable) –Three 8-bit channels terminating at 8 pins each –Each channel sends a byte following a pattern

Pattern and Pin activation Channel pattern: 8 positions numbered 0 to 7 and right to left Each position can have a binary value of “0” or “1” Corresponding decimal position = 2 (position #) To activate a pin: find decimal value of respective bit position: 2 (position #) Provide the decimal value to Port write at the pattern terminal Activate multiple pins Use compound arithmetic operator Add as many input as needed Link sum to pattern terminal

If pin 41 and 47 are activated, channel 2 will send: “1” at position 1 and at position 4: [ ] (byte) Decimal value = = 9 Pattern table

Materials Computer with: –Internal DAQ board Termination board Digital ribbon cable LED assembly (breadboard with LEDs) –Light Emitting Diode (LED)

Procedure Program 1: Simple Calculator VI –Create program simulating basic calculator –Able to add, subtract, and multiply Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

Procedure Program 1: Simple Calculator VI –Front panel of program must have: 1 slide to control 3 different arithmetic operations (add +; subtract -; multiply *) 3 LED (Boolean) indicators to show which arithmetic operation is selected Two numeric controls for inputting numbers One numeric indicator to display results –Back panel should have: A case statement to control arithmetic operations Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

Procedure Program 2: Thermal Control VI –Home heating/cooling system –Program requirements- Automatic Mode Regulate house air temperature AC is ON when temperature is greater than 80 o F Heater is ON when the temperature is less than 60 o F Heater and AC are OFF when temperature is between 60 o F and 80 o F –Program requirements- Manual Mode Heater and AC power are controlled directly by user (overrides automatic mode) Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

Procedure Program 2: Thermal Control VI –Front panel must have: 3 LEDs –AC on/off indicator –Heater on/off indicator –Manual operation on/off indicator 3 switches for AC, heater and system operation (automatic/manual) A temperature control represented by a thermometer –Back panel should have: A Boolean case statement to control manual and automatic operations Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

Procedure Program 3: Lighting System VI –Simulate typical household lighting system –Use Boolean indicators in conjunction with real LEDs to illustrate operation Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

Procedure Program 3: Lighting System VI –Front panel must have: Main power on/off switch for all lights 4 lights, each representing a different room –Each light should have a separate on/off switch –Back panel should have: A “Port Config” and “Port Write” setup to control LEDs through DAC board A Boolean case for each LED –Real world Functional LED assembly (depict real lights) Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

Assignment: Report Submit a Zip file with all LabVIEW programs (.vi) Individual report Title page Discussion topics in the manual Include lab notes with TA’s initials –TA must note that student programs worked Scan in data and lab notes (ask TA for assistance)

Assignment: Presentation Team presentation Include screen shots of your programs –Photo of functioning LED assembly Explain what each part does –Provide program walk-through Suggest improvements for programs Refer to “Creating PowerPoint Presentations” found on EG website

Closing Have all lab notes signed by TA Each team member should have turn using software Save Heating and Cooling VI – to be used in a future lab Submit all work electronically Return all unused materials to TA