Part 1. Summary of For Loops and While Loops
|
|
- Gerard Beasley
- 5 years ago
- Views:
Transcription
1 NAME EET 2259 Lab 5 Loops OBJECTIVES -Understand when to use a For Loop and when to use a While Loop. -Write LabVIEW programs using each kind of loop. -Write LabVIEW programs with one loop inside another. -Use LabVIEW s representations and numeric-conversion functions to eliminate coercion dots in a program. Part 1. Summary of For Loops and While Loops For Loop While Loop When to Use Terminals Terminal Wiring When you have an operation that you want to repeat a specified number of times. Count terminal that lets you set how many times to repeat the operation. Iteration terminal that keeps track of how many times the operation has been repeated. Count terminal s left-hand side is a numeric input that lets you set the number of times the loop will repeat. Count terminal s righthand side is a numeric output that you probably won t use very often. Iteration terminal s right-hand side is a numeric output that you can use to monitor the number of times the loop has repeated. When you have an operation that you want to repeat until some condition becomes true or false. The condition could be a button being pressed by the user, a numeric variable growing beyond a certain value, etc. Iteration terminal that keeps track of how many times the operation has been repeated. Conditional terminal that checks the condition at the end of each iteration to see whether to repeat the operation again. Iteration terminal s right-hand side is a numeric output that you can use to monitor the number of times the loop has repeated. Conditional terminal s left-hand side is a Boolean input that you will wire to the condition you want to check after each repetition to decide whether to repeat it again. EET 2259 Lab 5 Page 1 Revised 12/18/2017
2 Part 2. A Simple Loop Program 1. Create a VI that blinks an LED on and off repeatedly. The front panel should just have an LED labeled Blinky and a STOP button that lets the user stop the program. The LED should light up for a half second and then go dark for a half second, and then repeat. (Hint: In Lab 3 you wrote a program to figure out whether an integer is even or odd. By using a loop and asking whether the loop s iteration terminal is even or odd, you can decide whether the LED should be lit or dark each time through the loop.) 2. Using a mydaq and a trainer, modify the block diagram so that the program also blinks a real LED on the trainer in synch with the blinking LED on the VI s front panel. 3. Make sure that your program contains no coercion dots. (To get rid of coercion dots, either change the representation of an object or use LabVIEW s numeric conversion functions.) Save this VI as Lab5Blinky.vi, and show me your working program. Part 3. A Random-Number SubVI In Lab #3 you wrote Lab3Randoms.vi, which produced integer or floating-point random numbers in the range specified by the user. Let s make this into a subvi that you will use in other programs. 1. Open Lab3Randoms.vi and save a copy of it under the name Lab5RandomSubVI.vi. Make it into a subvi by giving it an icon, a connector with inputs and output for all of the controls and indicators on the front panel, and a description that will show up in the Help window. 2. Make sure that your program contains no coercion dots. Then save this VI as Lab5RandomSubVI.vi, and show me your working program. Part 4. More Practice with Loops How about a guessing game for the computer to play when it s bored? 1. Create a new VI whose front panel has a numeric control labeled Correct Number that lets the user enter the number that the computer has to try to guess. (Let s restrict the game to integers between 1 and 10.) The front panel should also have a numeric indicator labeled Computer s Guess to display the computer s most recent guess, and a string indicator that is initially blank. The computer should randomly guess integers between 1 and 10 at the rate of one guess per second. (Use your Lab5RandomSubVI from above to generate these random integers.) As long as the computer doesn t guess the right number, it has to keep guessing, and the string indicator remains blank. But when the computer guesses the right number, the string indicator says The computer got it right!!!! and the program stops. EET 2259 Lab 5 Page 2 Revised 12/18/2017
3 2. Modify this VI by adding a STOP button so that the program will stop when the computer guesses the right number or the user presses the STOP button. If the user stops the game before the computer guesses the right number, then the string indicator should say You quit before the computer got it. Hint: Use Select functions to choose the proper message to display in the string indicator. 3. Make sure that your program contains no coercion dots. Then save this VI as Lab5GuessingGame.vi, and show me your working program. Let s make a stopwatch that keeps track of time in either seconds or tenths of seconds. 1. Create a new VI that counts up 0, 1, 2, to 15 at the rate of 1 per second. The only thing you ll need on the front panel is a numeric indicator to show the current value. Hint #1: Use a loop. Hint #2: Use the loop s iteration terminal. 2. Modify this VI so that the value in the numeric indicator goes up in tenths instead of going up in integers. In other words, the displayed value should increase from 0 to 0.1 to 0.2 to 0.3 and so on up to Also, increase the speed of the loop so that the value increases every tenth of a second instead of every second. Your completed VI should behave like a stop-watch that keeps time in tenths of a second. Hint: Mathematically, how do you move a number s decimal point one place to the left? 3. Modify this VI so that instead of stopping when it gets to 15.0, the value in the numeric indicator keeps increasing until the user presses a STOP button. You ll probably want to change from a For Loop to a While Loop. 4. Modify this VI by adding a toggle switch the front panel that lets the user decide whether the stopwatch will keep time in seconds or in tenths of a second. (To make this easier, let s say that the user has to set the toggle switch before running the program, and isn t allowed to flip the switch once the program has started running. If you re looking for an extra challenge, try to make your program work correctly even if the user flips the switch while the program is running.) Make sure that your program contains no coercion dots. Then save this VI as Lab5Stopwatch.vi, and show me your working program. Loops make it easy to do some basic animation. In the next program you ll make an LED fly across the screen. This program also uses property nodes, a powerful feature of LabVIEW that lets your program change the properties of objects on the front panel while the program is running. 1. Create a new VI that contains an LED with no label. Right-click the LED and select Create > Property Node > Position > Left. This will create a property node that you should place on the block diagram. As you can probably guess, this property node controls the LED s position on the front panel. In particular, it holds a number that gives the position (in pixels) of the LED s left-hand edge. 2. By default, property nodes let you read the values of properties. But we want to be able to write the value of our property. So right-click the property node and select Change EET 2259 Lab 5 Page 3 Revised 12/18/2017
4 All to Write. Now the property node should have an arrow pointing into its left side instead of pointing out of its right side. Create a numeric constant equal to 100 and wire it to this arrow. Now run your program, and you should find that no matter where the LED was located before you ran the program, the LED jumps to a new position on the screen. In this new position, the LED has a horizontal coordinate of 100 pixels. 3. Place a While Loop on your block diagram, and place the property node inside this loop. Also place a 0.01 second Time Delay. Instead of having a constant value of 100 wired to the property node, use the value from the loop s iteration counter. When you run the program, the LED should move across the screen. 4. Modify the program so that the LED lights up after it gets about halfway across the front panel (let s say, at a position of 300 pixels), and stays lit as it continues moving. 5. Modify the program so that when the LED gets to the halfway point (300 pixels), it lights up, stops moving, and sits at rest until the user stops the program by pressing the STOP button. (Hint: You ll want to use a Select function as part of this step.) 6. Modify the program so that when the LED gets to the halfway point (300 pixels), it lights up and moves straight down the front panel until the user hits the STOP button. (Hint: You ll need to add a Position: Top property node to control the LED s vertical position.) 7. Make sure that your program contains no coercion dots. Then save this VI as Lab5FlyingLED.vi, and show me your working program. Part 5. Loops and Charts Loops can generate a lot of data, since a loop can execute thousands of times per second. When you ve got a lot of data, one way to display that data is by plotting it on a graph or chart. 1. Create a new VI. Place a numeric indicator on its front panel, and also place a Waveform Chart from the Modern > Graph palette. On your block diagram, use a For Loop to generate fifty random integers between 0 and 100, at a rate of five integers per second. (Use your Lab5RandomSubVI from above to generate these random integers.) Display each integer in the indicator as it is generated, and use the chart to plot your fifty random integers. Make sure that your program contains no coercion dots. Then save this VI as Lab5Chart.vi, and show me your working program. EET 2259 Lab 5 Page 4 Revised 12/18/2017
5 Part 6. Loops Inside of Loops You can put one loop inside another loop, in any combination: a For Loop or a While Loop inside a For Loop a For Loop or a While Loop inside a While Loop And the possibilities don t end there. You could go one level further and put a loop inside a loop inside another loop. This gets complicated, so we won t go beyond one loop inside another loop. 1. Create a new VI that counts up from 1 to 10 at the rate of 1 per second. The only thing you ll need on the front panel is a numeric indicator to show the current value, which you should call Y. (Hint: You ll just need a single loop to do this.) 2. Place another numeric indicator, labeled X, on the front panel. Wire the block diagram so that: Initially, X and Y are both set to 1. Y counts up from 1 to 10, just as it did before. Then, after Y reaches 10, X increases to 2, and Y goes back to 1 and starts counting up again. After Y reaches 10 again, X increases to 3, and Y goes back to 1 and starts counting up again. And so, until X and Y are both equal to 10, at which point the program stops. 3. Now add a numeric indicator labeled X Y to the front panel. X and Y should behave as they did above, and the new indicator should display the product, X times Y. The resulting program is like a child doing his multiplication tables: 1 1, then 1 2, then 1 3, and so on all the way up to Place two dials, labeled Maximum X and Maximum Y, on the front panel. Set these dials so that they can only take on integer values between 1 and 10. The program should behave as it did above, except that now instead of having X and Y count up to 10, they should count up from 1 to whatever values the user enters on the two dials. 5. Make sure that your program doesn t contain any coercion dots. Then save this VI as Lab5MultiplicationTable.vi, and show me your working program. *** This lab had 7 named programs for me to check. If you didn t finish all of these during class, finish them after class. Then upload all 7 programs, along with any related subvis, to the website by the due date. Also turn in your lab sheets at the beginning of class.**** EET 2259 Lab 5 Page 5 Revised 12/18/2017
Part 1. Creating an Array of Controls or Indicators
NAME EET 2259 Lab 9 Arrays OBJECTIVES -Write LabVIEW programs using arrays. Part 1. Creating an Array of Controls or Indicators Here are the steps you follow to create an array of indicators or controls
More informationNAME EET 2259 Lab 3 The Boolean Data Type
NAME EET 2259 Lab 3 The Boolean Data Type OBJECTIVES - Understand the differences between numeric data and Boolean data. -Write programs using LabVIEW s Boolean controls and indicators, Boolean constants,
More informationUniversity of Pennsylvania. Department of Electrical and Systems Engineering. ESE Undergraduate Laboratory. Introduction to LabView
University of Pennsylvania Department of Electrical and Systems Engineering ESE Undergraduate Laboratory Introduction to LabView PURPOSE The purpose of this lab is to get you familiarized with LabView.
More informationComputer Interfacing Using LabView
Computer Interfacing Using LabView Physics 258 Last revised September 25, 2005 by Ed Eyler Purpose: Note: To write a simple LabView program that digitizes data using an ADC on a data acquisition card,
More informationFRC LabVIEW Sub vi Example
FRC LabVIEW Sub vi Example Realizing you have a clever piece of code that would be useful in lots of places, or wanting to un clutter your program to make it more understandable, you decide to put some
More informationA. Front Panel Design Lesson 4 Implementing a VI
A. Front Panel Design Lesson 4 Implementing a VI Inputs and outputs lead to front panel design Retrieve the inputs by the following methods: TOPICS A. B. C. D. E. F. Front Panel Design LabVIEW Data Types
More informationSpectroscopic Analysis: Peak Detector
Electronics and Instrumentation Laboratory Sacramento State Physics Department Spectroscopic Analysis: Peak Detector Purpose: The purpose of this experiment is a common sort of experiment in spectroscopy.
More informationLesson 4 Implementing a VI
Lesson 4 Implementing a VI A. Front Panel Design B. LabVIEW Data Types C. Documenting Code D. While Loops E. For Loops F. Timing a VI G. Iterative Data Transfer H. Plotting Data I. Case Structures A. Front
More informationLabVIEW. Table of Contents. Lesson 1. Pre-reqs/Technical Skills Basic computer use
LabVIEW Lesson 1 Pre-reqs/Technical Skills Basic computer use Expectations Read lesson material Implement steps in software while reading through lesson material Complete quiz on Blackboard Submit completed
More informationAnimations involving numbers
136 Chapter 8 Animations involving numbers 8.1 Model and view The examples of Chapter 6 all compute the next picture in the animation from the previous picture. This turns out to be a rather restrictive
More informationGET130 Intro to Engineering Technology
References: 1. http://www.ni.com/labview/ 2. http://en.wikipedia.org/wiki/labview Introduction: This lab continues from the previous lab by showing additional basic features of LabVIEW including For loops,
More informationCLAD Sample Exam 03. C. A control that output a cluster of the controls / indicators on the tabs.
Name: Date: CLAD Sample Exam 03 1. Where can a VI be documented so that the description appears in the Show Context Help popup window? A. In the VI Properties Documentation window B. Typing in the Show
More informationCLAD Sample Exam 04. B. When you create an Array constant on the Block Diagram, it is not visible on the Front Panel.
Name: Date: CLAD Sample Exam 04 1. What VI is typically used to terminate an Error Cluster wire and to display any error message? A. Merge Errors B. One Button Dialog / Two Button Dialog C. Generate Front
More informationLab 1: Getting familiar with LabVIEW: Part I
Lab 1: Getting familiar with LabVIEW: Part I The objective of this first lab is to provide an initial hands-on experience in building a VI. For detailed explanations of the LabVIEW features mentioned here,
More informationCSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch
CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch Purpose: We will take a look at programming this week using a language called Scratch. Scratch is a programming language that was developed
More informationIntroduction to LabVIEW Exercise-1
Introduction to LabVIEW Exercise-1 Objective In this Laboratory, you will write simple VIs to incorporate basic programming structures in LabVIEW. This section will teach you fundamentals of LabVIEW front
More informationDept. of Electrical, Computer and Biomedical Engineering. Data Acquisition Systems and the NI LabVIEW environment
Dept. of Electrical, Computer and Biomedical Engineering Data Acquisition Systems and the NI LabVIEW environment Data Acquisition (DAQ) Use of some data acquisition technique can be convenient, when not
More informationENGR 40M Project 3c: Switch debouncing
ENGR 40M Project 3c: Switch debouncing For due dates, see the overview handout 1 Introduction This week, you will build on the previous two labs and program the Arduino to respond to an input from the
More informationc01.qxd p /18/01 11:03 AM Page 1 Fundamentals
c01.qxd p001-017 10/18/01 11:03 AM Page 1 Fundamentals c01.qxd p001-017 10/18/01 11:03 AM Page 2 OVERVIEW Welcome to the world of LabVIEW! This chapter gives you a basic explanation of LabVIEW and its
More informationINTRODUCTION TO LABVIEW
INTRODUCTION TO LABVIEW 2nd Year Microprocessors Laboratory 2012-2013 INTRODUCTION For the first afternoon in the lab you will learn to program using LabVIEW. This handout is designed to give you an introduction
More informationBE/EE189 Design and Construction of Biodevices Lecture 2. BE/EE189 Design and Construction of Biodevices - Caltech
BE/EE189 Design and Construction of Biodevices Lecture 2 LabVIEW Programming More Basics, Structures, Data Types, VI Case structure Debugging techniques Useful shortcuts Data types in labview Concept of
More informationME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW
ME 365 EXPERIMENT 3 INTRODUCTION TO LABVIEW Objectives: The goal of this exercise is to introduce the Laboratory Virtual Instrument Engineering Workbench, or LabVIEW software. LabVIEW is the primary software
More informationPHY Microprocessor Interfacing Techniques LabVIEW Tutorial - Part X File Output and Input
PHY 406 - Microprocessor Interfacing Techniques LabVIEW Tutorial - Part X File Output and Input Introduction File I/O tends to be complex - simply because there are a myriad of things that you might want
More informationVirtual Instrumentation With LabVIEW
Virtual Instrumentation With LabVIEW Section I LabVIEW terms Components of a LabVIEW application LabVIEW programming tools Creating an application in LabVIEW LabVIEW Programs Are Called Virtual Instruments
More informationIntroduction to National Instruments LabVIEW and Data Acquisition (DAQ)
Introduction to National Instruments LabVIEW and Data Acquisition (DAQ) Danial J. Neebel, Joseph R. Blandino, and David J. Lawrence, College of Integrated Science and Technology James Madison University
More informationECE 463 Lab 1: Introduction to LabVIEW
ECE 463 Lab 1: Introduction to LabVIEW 1. Introduction The purpose of the lab session of ECE463 is to apply/practice the digital communication theory on software-defined radios (USRPs). USRP is coupled
More informationIntroduction to LabVIEW
Introduction to LabVIEW How to Succeed in EE 20 Lab Work as a group of 2 Read the lab guide thoroughly Use help function and help pages in LabVIEW Do the Pre-Lab before you come to the lab Don t do the
More informationIntro. Scheme Basics. scm> 5 5. scm>
Intro Let s take some time to talk about LISP. It stands for LISt Processing a way of coding using only lists! It sounds pretty radical, and it is. There are lots of cool things to know about LISP; if
More informationCertified LabVIEW Associate Developer Examination
Certified LabVIEW Associate Developer Examination Examinee Date: Administrator Date: Note: The use of the computer or any reference materials is NOT allowed during the exam. Instructions: If you did not
More informationChapter 4: Programming with MATLAB
Chapter 4: Programming with MATLAB Topics Covered: Programming Overview Relational Operators and Logical Variables Logical Operators and Functions Conditional Statements For Loops While Loops Debugging
More informationExercise 5: Basic LabVIEW Programming
Exercise 5: Basic LabVIEW Programming In this exercise we will learn the basic principles in LabVIEW. LabVIEW will be used in later exercises and in the project part, as well in other courses later, so
More informationCertified LabVIEW Associate Developer Examination
Certified LabVIEW Associate Developer Examination Examinee Date: Administrator Date: Note: The use of the computer or any reference materials is NOT allowed during the exam. Instructions: If you did not
More informationCertified LabVIEW Associate Developer Exam. Test Booklet
Certified LabVIEW Associate Developer Exam Test Booklet Instructions: If you did not receive this exam in a sealed envelope stamped "NI Certification," DO NOT ACCEPT this exam. Return it to the proctor
More informationLab 2: Introduction to LabVIEW 8.5
Lab 2: Introduction to LabVIEW 8.5 INTRODUCTION: This lab is designed as an introduction to using LabVIEW. In this lab you will run through some tutorials to get a basic understanding of some of the LabVIEW
More informationLabview. Masood Ejaz
Labview A Tutorial By Masood Ejaz Note: This tutorial is a work in progress and written specially for CET 3464 Software Applications in Engineering Technology, a course offered as part of BSECET program
More informationCertified LabVIEW Associate Developer Exam. Test Booklet
Certified LabVIEW Associate Developer Exam Test Booklet Note: The use of the computer or any reference materials is NOT allowed during the exam. Instructions: If you did not receive this exam in a sealed
More informationThe Beauty and Joy of Computing 1 Lab Exercise 4: Starting a simple math tutor program and more interaction
The Beauty and Joy of Computing 1 Lab Exercise 4: Starting a simple math tutor program and more interaction Objectives By completing this lab exercise, you should learn to Create your own reporter and
More informationNote. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.
Robotics and Electronics Unit 2. Arduino Objectives. Students will understand the basic characteristics of an Arduino Uno microcontroller. understand the basic structure of an Arduino program. know how
More informationOriginally released in 1986, LabVIEW (short for Laboratory Virtual Instrumentation
Introduction to LabVIEW 2011 by Michael Lekon & Janusz Zalewski Originally released in 1986, LabVIEW (short for Laboratory Virtual Instrumentation Engineering Workbench) is a visual programming environment
More informationRead Temperature Data
Read Temperature Data Exercise 5 Completed front panel and block diagram In this exercise, you will create a program using SensorDAQ s Analog Express VI to collect temperature data and display it on a
More informationCreating a Double IK Chain in Lightwave
Creating a Double IK Chain in Lightwave By: Jake Stewart, Stewart864@live.missouristate.edu Introduction: This tutorial is provide some helpful (hopefully) instructions on creating a double IK chain in
More informationLecture Transcript While and Do While Statements in C++
Lecture Transcript While and Do While Statements in C++ Hello and welcome back. In this lecture we are going to look at the while and do...while iteration statements in C++. Here is a quick recap of some
More informationVirtual Instrumentation With LabVIEW
Virtual Instrumentation With LabVIEW Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build a simple data acquisition application Create a subroutine
More informationName EET 1131 Lab #14 Random Access Memory
Name EET 1131 Lab #14 Random Access Memory 7489 RAM Chip The 7489 is a TTL random access memory chip. It is organized as a 16 x 4 RAM. To be sure you understand what this means, answer the following questions:
More informationSmall rectangles (and sometimes squares like this
Lab exercise 1: Introduction to LabView LabView is software for the real time acquisition, processing and visualization of measured data. A LabView program is called a Virtual Instrument (VI) because it,
More informationLABVIEW LAB SKILLS ACTIVITY 1 PROGRAMING ENVIRONMENT
LABVIEW LAB SKILLS ACTIVITY 1 PROGRAMING ENVIRONMENT WHAT IS LABVIEW? LabVIEW is a graphical programing language designed for scientists and engineers for experimental control and data acquisition. Most
More informationME 224: EXPERIMENTAL ENGINEERING. Lecture 2
ME 224: EXPERIMENTAL ENGINEERING Class: M 1:00-1:50 TECH: L170 Labs: T and Th 2:00-4:50 PM Ford Building : B100 Lecture 2 1 Introduction to Labview Labview (Laboratory Virtual Instruments Engineering Workbench)
More informationSPRITES Moving Two At the Same Using Game State
If you recall our collision detection lesson, you ll likely remember that you couldn t move both sprites at the same time unless you hit a movement key for each at exactly the same time. Why was that?
More informationIntro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming
Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals
More informationDivisibility Rules and Their Explanations
Divisibility Rules and Their Explanations Increase Your Number Sense These divisibility rules apply to determining the divisibility of a positive integer (1, 2, 3, ) by another positive integer or 0 (although
More informationMr G s Java Jive. #11: Formatting Numbers
Mr G s Java Jive #11: Formatting Numbers Now that we ve started using double values, we re bound to run into the question of just how many decimal places we want to show. This where we get to deal with
More informationOutlook is easier to use than you might think; it also does a lot more than. Fundamental Features: How Did You Ever Do without Outlook?
04 537598 Ch01.qxd 9/2/03 9:46 AM Page 11 Chapter 1 Fundamental Features: How Did You Ever Do without Outlook? In This Chapter Reading e-mail Answering e-mail Creating new e-mail Entering an appointment
More informationB. Including the Event Structure within a loop. C. Configuring a Timeout case within the Event Structure
Name: Date: CLAD Sample Exam 05 1. You must include the option to cancel when a user attempts to interactively close the front panel by selecting File>>Close. Which Event case allows this functionality?
More informationEngineering Innovation Center LabVIEW Basics
Engineering Innovation Center LabVIEW Basics LabVIEW LabVIEW (Laboratory Virtual Instrument Engineering Workbench) is a graphical programming language that uses icons instead of lines of text to create
More informationPHYC 500: Introduction to LabView. Exercise 8 (v 1.3) M.P. Hasselbeck, University of New Mexico. Arrays, XY Graphs, Disk I/O
PHYC 500: Introduction to LabView M.P. Hasselbeck, University of New Mexico Exercise 8 (v 1.3) Arrays, XY Graphs, Disk I/O Place two numeric controls (label them Number of points and Offset ) on the Front
More informationIn math, the rate of change is called the slope and is often described by the ratio rise
Chapter 3 Equations of Lines Sec. Slope The idea of slope is used quite often in our lives, however outside of school, it goes by different names. People involved in home construction might talk about
More informationThe first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.
Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you
More informationPHY 351/651 LABORATORY 1 Introduction to LabVIEW
PHY 351/651 LABORATORY 1 Introduction to LabVIEW Introduction Generally speaking, modern data acquisition systems include four basic stages 1 : o o A sensor (or transducer) circuit that transforms a physical
More information2. The LabView Environment Two panes will open, one is the Front panel, and one is the Block Diagram
E80 Spring 2015 Lecture 3 LabView 1. Creating a VI (Virtual Instrument) From the File drop-down menu, select New VI 2. The LabView Environment Two panes will open, one is the Front panel, and one is the
More information2 Lab 2: LabVIEW and Control System Building Blocks
2 Lab 2: LabVIEW and Control System Building Blocks 2.1 Introduction Controllers are built from mechanical or electrical building blocks. Most controllers are implemented in a program using sensors to
More informationLabVIEW programming I
FYS3240 PC-based instrumentation and microcontrollers LabVIEW programming I LabVIEW basics Spring 2011 Lecture #2 Bekkeng 13.1.2011 Virtual Instruments LabVIEW programs are called virtual instruments,
More informationTable 1. Inputs and Outputs
Goal Description Use a While Loop and an iteration terminal and pass data through a tunnel. Create a VI that continuously generates random numbers between 0 and 1000 until it generates a number that matches
More informationSection 05: Solutions
Section 05: Solutions 1. Asymptotic Analysis (a) Applying definitions For each of the following, choose a c and n 0 which show f(n) O(g(n)). Explain why your values of c and n 0 work. (i) f(n) = 5000n
More informationSyllabus: Mechatronics and Engineering 3
Syllabus: Mechatronics and Engineering 3 Somerset County Vocational and Technical School Dan Dalfonzo 2018/2019 Topic 1: What is LabVIEW? (4 weeks) 1 LabVIEW and Vis Guided Task 1 2 Controls, Indicators,
More informationRobotics and Electronics Unit 5
Robotics and Electronics Unit 5 Objectives. Students will work with mechanical push buttons understand the shortcomings of the delay function and how to use the millis function. In this unit we will use
More informationThe Practice of Computing Using PYTHON. Chapter 2. Control. Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
The Practice of Computing Using PYTHON William Punch Richard Enbody Chapter 2 Control 1 Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Control: A Quick Overview 2 Selection
More information[ the academy_of_code] Senior Beginners
[ the academy_of_code] Senior Beginners 1 Drawing Circles First step open Processing Open Processing by clicking on the Processing icon (that s the white P on the blue background your teacher will tell
More informationEEN118 LAB FOUR. h = v t ½ g t 2
EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical
More informationVME Data Acquisition System, ADC Read
VME Data Acquisition System, ADC Read Abstract: UTA-HEP/LC 0023 Shashwat Udit University of Texas at Arlington August 25, 2008 This document presents the design concept and the functionality of the newly
More informationLabVIEW Basics. Based on LabVIEW 2011 Student Edition
LabVIEW Basics Based on LabVIEW 2011 Student Edition Virtual instruments LabVIEW works on a data flow model in which information within a LabVIEW program, called a virtual instrument (VI), flows from data
More informationDSP First Lab 02: Introduction to Complex Exponentials
DSP First Lab 02: Introduction to Complex Exponentials Lab Report: It is only necessary to turn in a report on Section 5 with graphs and explanations. You are ased to label the axes of your plots and include
More informationMagic Tutorial #9: Format Conversion for CIF and Calma
Magic Tutorial #9: Format Conversion for CIF and Calma John Ousterhout Computer Science Division Electrical Engineering and Computer Sciences University of California Berkeley, CA 94720 (Updated by others,
More informationUV Mapping to avoid texture flaws and enable proper shading
UV Mapping to avoid texture flaws and enable proper shading Foreword: Throughout this tutorial I am going to be using Maya s built in UV Mapping utility, which I am going to base my projections on individual
More informationWorking with the Dope Sheet Editor to speed up animation and reverse time.
Bouncing a Ball Page 1 of 2 Tutorial Bouncing a Ball A bouncing ball is a common first project for new animators. This classic example is an excellent tool for explaining basic animation processes in 3ds
More informationEngineering Project-I. Module 1: Familiarization of LabVIEW and the Vernier Toolkit
Engineering Project-I Module 1: Familiarization of LabVIEW and the Vernier Toolkit PREPARED BY Academic Services Unit January 2012 Applied Technology High Schools, 2012 Module 1: Familiarization of LabVIEW
More informationPython lab session 1
Python lab session 1 Dr Ben Dudson, Department of Physics, University of York 28th January 2011 Python labs Before we can start using Python, first make sure: ˆ You can log into a computer using your username
More informationLOOPS. Repetition using the while statement
1 LOOPS Loops are an extremely useful feature in any programming language. They allow you to direct the computer to execute certain statements more than once. In Python, there are two kinds of loops: while
More informationLastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.
Welcome to Basic Excel, presented by STEM Gateway as part of the Essential Academic Skills Enhancement, or EASE, workshop series. Before we begin, I want to make sure we are clear that this is by no means
More informationLinear Control Systems LABORATORY
Islamic University Of Gaza Faculty of Engineering Electrical Engineering Department Linear Control Systems LABORATORY Prepared By: Eng. Adham Maher Abu Shamla Under Supervision: Dr. Basil Hamed Experiments
More informationNI LabView READ THIS DOCUMENT CAREFULLY AND FOLLOW THE INSTRIUCTIONS IN THE EXERCISES
NI LabView READ THIS DOCUMENT CAREFULLY AND FOLLOW THE Introduction INSTRIUCTIONS IN THE EXERCISES According to National Instruments description: LabVIEW is a graphical programming platform that helps
More informationUsing Microsoft Excel
Using Microsoft Excel Introduction This handout briefly outlines most of the basic uses and functions of Excel that we will be using in this course. Although Excel may be used for performing statistical
More informationMaxime Defauw. Learning Swift
Maxime Defauw Learning Swift SAMPLE CHAPTERS 1 Introduction Begin at the beginning, the King said, very gravely, and go on till you come to the end: then stop. Lewis Carroll, Alice in Wonderland Hi and
More informationLoops. In Example 1, we have a Person class, that counts the number of Person objects constructed.
Loops Introduction In this article from my free Java 8 course, I will discuss the use of loops in Java. Loops allow the program to execute repetitive tasks or iterate over vast amounts of data quickly.
More informationRemaining Enhanced Labs
Here are some announcements regarding the end of the semester, and the specifications for the last Enhanced Labs. Don t forget that you need to take the Common Final Examination on Saturday, May 5, from
More informationPHY Microprocessor Interfacing Techniques LabVIEW Tutorial - Part I Beginning at the Beginning
PHY 406 - Microprocessor Interfacing Techniques LabVIEW Tutorial - Part I Beginning at the Beginning Introduction One of the main objectives of this course is to teach you how to gather data using computers
More informationPaul's Online Math Notes. Online Notes / Algebra (Notes) / Systems of Equations / Augmented Matricies
1 of 8 5/17/2011 5:58 PM Paul's Online Math Notes Home Class Notes Extras/Reviews Cheat Sheets & Tables Downloads Algebra Home Preliminaries Chapters Solving Equations and Inequalities Graphing and Functions
More informationEEN118 LAB FOUR. h = v t - ½ g t 2
EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical
More informationCONVERSION TRACKING PIXEL GUIDE
Conversion Tracking Pixel Guide A Step By Step Guide to Installing a conversion tracking pixel for your next Facebook ad. Go beyond clicks, and know who s converting. PRESENTED BY JULIE LOWE OF SOCIALLY
More informationCLAD_80.questions.
CLAD_80.questions Number: CLAD Passing Score: 800 Time Limit: 120 min File Version: 25.06 These are the most accurate study questions. Just focus on these and sit in your exam. I am very happy with my
More informationTopic: It s A Tab, Tab, Tab, Tab World
Saving Time in InDesign. In this tutorial we ll be going over how spending a little extra time can save a WHOLE lot of time in the long run. So we ll start by grabbing some text to use. In this case I
More informationEEN118 LAB FOUR. h = v t ½ g t 2
EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical
More informationTableau Tutorial Using Canadian Arms Sales Data
Tableau Tutorial Using Canadian Arms Sales Data 1) Your data comes from Industry Canada s Trade site. 2) If you don t want to download the data yourself, use this file. You can also download it from the
More informationXXXX BASIC SHAPES. Information. Sheet No. INTRODUCTION TO GRAPHICS
INTRODUCTION TO GRAPHICS BASIC SHAPES Information Sheet No. XXXX There are a few different methods through which you can make shapes. Create a new blank layer by clicking on the new layer icon as shown
More informationGraphing Interface Overview
Graphing Interface Overview Note: This document is a reference for using JFree Charts. JFree Charts is m-power s legacy graphing solution, and has been deprecated. JFree Charts have been replace with Fusion
More informationXXXX - AUTOMATING THE MARQUEE 1 N/08/08
INTRODUCTION TO GRAPHICS Automating the Marquee Information Sheet No. XXXX Note: the following project is extracted from David Nagel s excellent web tutorials. His demonstrations are invaluable to any
More informationChapter 1 Operations With Numbers
Chapter 1 Operations With Numbers Part I Negative Numbers You may already know what negative numbers are, but even if you don t, then you have probably seen them several times over the past few days. If
More informationWord Tips and Tricks - by Rick Black
Most of these tips and tricks will work with all versions of Microsoft Word from 2003 to 2010 on both Windows and Macintosh computers. Show and Hide Special Characters Word had a special switch that will
More information5.1. Examples: Going beyond Sequence
Chapter 5. Selection In Chapter 1 we saw that algorithms deploy sequence, selection and repetition statements in combination to specify computations. Since that time, however, the computations that we
More informationLabVIEW Case and Loop Structures ABE 4423/6423 Dr. Filip To Ag and Bio Engineering, Mississippi State University
LabVIEW Case and Loop Structures ABE 4423/6423 Dr. Filip To Ag and Bio Engineering, Mississippi State University Recap Previous Homework Following Instruction Create a Pressure Conversion VI that takes
More informationUsing Flash Animation Basics
Using Flash Contents Using Flash... 1 Animation Basics... 1 Exercise 1. Creating a Symbol... 2 Exercise 2. Working with Layers... 4 Exercise 3. Using the Timeline... 6 Exercise 4. Previewing an animation...
More information