EET 2259 Programming for Electronics Technology Professor Nick Reeder.

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.
Lesson 2 Navigating LabVIEW
LabVIEW and G Graphical Programming Language By: Ramtin Raji Kermani.
EET 252 Digital Systems II Professor Nick Reeder.
LabVIEW 7.1 Tutorial. Measurement Lab. MECH262-MECH261 Imran Haider Malik January 16, 2006.
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.
Laboratory 5: Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report / Presentation Closing.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 12 Data Acquisition  Read Bishop, Chapter 8.  Lab #12 and Homework #12 due next week.
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
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.
Get Real About Teaching with LabVIEW and myDAQ National Instruments Confidential2 STEM Education  Science, Technology, Engineering and Math Education.
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.
LabVIEW an Introduction
Introduction to LabVIEW
Biomedical Measurements & Analysis using LabVIEW
DIFFERENCE BETWEEN ORCAD AND LABVIEW
Physics 434 Welcome Toby Burnett [prof] Durmus Karatay[TA] Jason Alferness [Equipment] David Pengra [consultant]
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.
1. 2 LabVIEW Intro, Basics, Tips, Tricks Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
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 6 Software for Electronics. Introduction This chapter covers the following topics: Software for electricity and electronics Multisim Circuit Wizard.
Introduction to LabVIEW 8.5
An Overview of LabVIEW by: The Software User-Interface Group!
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
Physics 434 Welcome Leslie Rosenberg [prof] Scott Davis [TA] Thanks to Toby Burnett [prof] (for much of the course material) Jason Alferness [Equipment]
Programming in LabVIEW
Laboratory 5: Introduction to LabVIEW
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.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
EET 2259 Unit 12 Data Acquisition
Introduction to LabVIEW
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
Getting Started with LabVIEW Virtual Instruments
EET 2259 Unit 3 Editing and Debugging VIs
Lesson 2: Introduction to Control programming using Labview
EET 2259 Unit 12 Data Acquisition
Programming for Electronics Technology Professor Nick Reeder
Chapter 1 LabVIEW Basics
LabVIEW 7.1 寒假短期教學課程 歐陽丞修 2006/02/06.
Introduction to LabVIEW
Introduction to LabVIEW
Introduction to LabVIEW
Introduction to LabVIEW
EET 2259 Unit 2 Virtual Instruments
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
EET 2259 Unit 8 Other Structures; Local Variables
Introduction to LabVIEW
EET 2259 Unit 3 Editing and Debugging VIs
Presentation transcript:

EET 2259 Programming for Electronics Technology Professor Nick Reeder

Reminders  Please turn off cell phones.  No food or soft drinks in the classroom.  Stow water bottles at floor level.

EET 2259 Unit 1 LabVIEW Basics  Read Bishop, Chapter 1.  Lab #1 and Homework #1 due next week.

LabVIEW  Stands for Laboratory Virtual Instrument Engineering Workbench.  It’s a software package created by National Instruments ( This company bought Multisim a few years ago. (Bishop, p. 3)

National Instruments  Company founded about 30 years ago in Austin, TX.  In addition to Multisim, LabVIEW, and other software packages, they sell data acquisition boards and other hardware for using computers in engineering, science, and industry. (Bishop, pp. 3-4)

Some of LabVIEW’s Uses  General-purpose programming  Instrument control  Data acquisition  Data analysis  Data presentation  Automated testing

General-purpose Programming  Writing programs to perform calculations, process information, play games, etc.  Examples: Checkbook balancer Calorie counter Baseball statistics calculator  This is not really what LabVIEW is meant for, but you can use it to do these things.

Instrument Control  Using computer to control multimeters, oscilloscopes, function generators, etc.

Data Acquisition (DAQ)  Connecting the computer directly to circuits or sensors to measure voltage, current, temperature, pressure, light intensity, chemical composition, etc.  Need to have either: a special data-acquisition board installed in your computer, or an external data-acquisition device such as an NI myDAQ.NI myDAQ

Data Analysis  Performing statistical analysis, curve fitting, signal processing, or other kinds of mathematical calculations on the data that you’ve gathered from a DAQ board or from measuring instruments.  Similar to what you can do with Microsoft Excel or other spreadsheet programs.

Data Presentation  Using tables, charts, and graphs to present the results of your data analysis.  Again, similar to what you can do with Microsoft Excel or other spreadsheet programs.

Automated Testing  Using computers to automatically test circuit boards or other manufactured parts as they leave an assembly line.

G  LabVIEW is built around a programming language called G.  Most of this course will be devoted to learning how to write programs in G. (Bishop, p. 4)

Graphical vs. Text-Based Language  Most other programming languages (Assembly, VisualBasic, C, C++, Java, etc.) are text-based languages. You write programs by typing text.  G is a graphical language. You write programs by placing icons and connecting them with wires. (Bishop, p. 4)

Example Program in C #include int main() { float value1, value2, product; printf("Enter first number => "); scanf("%f", &value1); printf("Enter second number => "); scanf("%f", &value2); product = value1 * value2; printf("The product is %f", product); }

Same Program in LabVIEW

“Virtual Instruments”  LabVIEW programs are called virtual instruments, or VIs for short.  When you save a program file in LabVIEW, its extension is “.vi” (Bishop, p. 4)

Front Panel & Block Diagram  Every LabVIEW program has two parts, which appear in two different windows on your computer screen: the front panel and the block diagram.  You don’t have to save these two parts separately; whenever you save, they’re both saved in the same file.

Front Panel  The front panel is the user interface for a program. It contains controls (inputs) and indicators (outputs).  Controls let the user feed data into the program.  Indicators let the program give data back to the user.

Sample Front Panel

Block Diagram  The block diagram shows the program’s underlying logic. It shows how the user’s data (entered through controls) is manipulated to give the results that are fed back to the user (through indicators).  The block diagram contains components “wired” together.

Sample Block Diagram

Run Button Continuous Run Button Abort Execution Pause/Continue Button Text Settings Align Objects Distribute Objects Reorder Resize front panel objects Execution Highlighting Button Step Into Button Step Over Button Step Out Button Additional Buttons on the Diagram Toolbar Toolbar (Bishop, pp )

Controls Palette & Functions Palette Controls Palette (Used to place controls & indicators on Front Panel) Functions Palette (Used to place functions on Block Diagram) (Bishop, pp )

Menus  LabVIEW has pull-down menus and short-cut menus (pop-up menus) that give you many options.  Sections 1.6 and 1.7 in textbook discuss the menus. (Bishop, pp )

Help  LabVIEW’s context help window is very useful. It automatically shows help for functions and other objects when you roll your mouse over those objects.  More detailed help is also available through Help menu. (Bishop, pp )

Context Help Window  Ctrl + H  Detailed help  Lock help  Simple/Complex Diagram help

Saving Your Control Values  When you save a VI, values that you have set on the front panel are not saved.  But you can make them be saved by selecting Edit > Make Current Values Default before you save.  Or you can do this with a single control by right-clicking it and selecting Data Operations > Make Current Value Default.

Example Programs  LabVIEW comes with many example VIs, which you can access by clicking Help > Find Examples… in LabVIEW’s menus.  More examples are in the textbook’s Learning Directory files, which you’ll download from the Web as part of Homework #1. (Bishop, p. 5)