Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 6 Shift Registers Read Bishop, Section 5.3. Midterm Exam this week. Lab #6 and Homework #6 due next.

Slides:



Advertisements
Similar presentations
Unit 4 - I Said Stop!. Introduction New Topics Timing Parallelism Sequence of Operations New Features NXT terminals New Functions Wait For.
Advertisements

LabVIEW for Physicists 24 th October 2002 Ben Jeffery.
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.
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
TE Sessions Supported by: Basic Concepts of Programming November 3, 2012.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 10 Clusters and Matrices  Read Bishop, Sections 6.4 to  Lab #10 and Homework #10 due next week.
LabView Physics 3 - IT skills
Loops in LabVIEW (while,for and case)
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
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 5 Loops  Read Bishop, Sections 5.1 and 5.2.  Lab #5 and Homework #5 due next week.  Exam #1 next.
CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
Loops A.About While Loops B.About For Loops C.About Case structures D.Sequence Structures E.Formula Node You Will Learn:
CS320n –Visual Programming LabVIEW Control Structures.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
Superposition, Thevenin / Norton Equivalents, Maximum Power Transfer Circuits 1 Fall 2005 Harding University Jonathan White.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 11 Charts and Graphs  Read Bishop, Chapter 7.  Lab #11 and Homework #11 due next week.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 4 SubVIs  Read Bishop, Chapter 4.  Lab #4 and Homework #4 due next week.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 13 Strings and File I/O  Read Bishop, Chapter 9.  Lab #13 and Homework #13 due next week.
Lecture 13LabVIEW and GPIB LabVIEW (National Instruments) –Graphical program language –Widely used in academia (lab) and industry (R&D) General Purpose.
Workshop 3 of 7 Welcome!. Today's Topics Review of Workshop 2 Loops While For Auto-indexing Shift registers Case Structure.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 8 Other Structures; Local Variables  Read Bishop, Sections 5.6 to  Lab #8 and Homework #8 due.
LabVIEW an Introduction
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
When we add or subtract integers we can use a number line to help us see what is happening with the numbers.
EET 2259 Unit 7 Case Structures; Sequence Structures  Read Bishop, Sections 5.4 and 5.5.  Lab #7 and Homework #7 due next week.  Quiz #3 next week.
Creating, Editing, & Debugging a VI A.How to Create VIs B.How to Edit VIs C.How to Debug VIs You Will Learn:
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.
Summary of what we learned yesterday Basics of C++ Format of a program Syntax of literals, keywords, symbols, variables Simple data types and arithmetic.
CIRCUIT ANALYSIS METHOD. TOPIC Node-Voltage Method Mesh-current Method Source of embodiment principle Thevenin’s Circuit Norton’s Circuit Maximum Power.
Lab 1 : Introduction to LabView 1 Southern Methodist University Bryan Rodriguez.
CS320n –Visual Programming
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 9 Arrays  Read Bishop, Sections 6.1 to 6.3.  Homework #9 and Lab #9 due next week.  Quiz #5 next.
For…Next Loops, Checked List Boxes, and Combo Boxes Chapter 5.
CS320n – Elements of Visual Programming Assignment Help Session.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Add & Subtract. Addition Add bit by bit from right to left Ex 5+6 or (5)0111 (7) (6)OR (3) 1011 (11)1010 (10)
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Algebra 2 1-8a Exploring Transformations Translations.
OPERATORS IN C CHAPTER 3. Expressions can be built up from literals, variables and operators. The operators define how the variables and literals in the.
EET 2259 Unit 12 Data Acquisition
EET 2259 Unit 13 Strings and File I/O
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
Multiplication
EET 2259 Unit 11 Charts and Graphs
Chapter 5: MACHINATIONS
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
Multiplication
EET 2259 Unit 3 Editing and Debugging VIs
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Introduction to LabVIEW
Lab 2 : Structures Muhammad Zaigham Abbas Shah DIGITAL INSTRUMENTATION SYSTEMS.
Chapter 5 Structures.
Arrays & Functions Lesson xx
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
EET 2259 Unit 6 Shift Registers
LabVIEW.
Structures- case, sequence, formula node
CST-115 Introduction to Computer Programming
EET 2259 Unit 9 Arrays Read Bishop, Sections 6.1 to 6.3.
EET 2259 Unit 13 Strings and File I/O
EET 2259 Unit 7 Case Structures; Sequence Structures
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
EET 2259 Unit 11 Charts and Graphs
EET 2259 Unit 2 Virtual Instruments
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
EET 2259 Unit 6 Shift Registers
EET 2259 Unit 8 Other Structures; Local Variables
EET 2259 Unit 3 Editing and Debugging VIs
Presentation transcript:

Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 6 Shift Registers Read Bishop, Section 5.3. Midterm Exam this week. Lab #6 and Homework #6 due next week.

Floyd, Digital Fundamentals, 10 th ed Shift Registers and Feedback Nodes When programming with loops, you may need to access data from previous iterations of the loop. LabVIEW provides two ways to do this: 1. Shift registers 2. Feedback nodes (Bishop, p. 227) I recommend not using feedback nodes; use shift registers instead.

Floyd, Digital Fundamentals, 10 th ed Shift Registers Shift registers transfer values from one iteration of a For Loop or While Loop to the next iteration. To create a shift register, right-click on the left or right border of a loop and select Add Shift Register. (Bishop, p. 227)

Floyd, Digital Fundamentals, 10 th ed Shift Registers (Continued) A shift register appears as a set of arrows on the borders of the loop: an up arrow on the right border, and one or more down arrows on the left border. These arrows are terminals that can be wired to other items inside or outside the loop. (Bishop, p. 228)

Floyd, Digital Fundamentals, 10 th ed Using a Shift Register The terminal on the right border receives and stores a data value as each iteration of the loop finishes. This value then becomes available from the terminal on the left-hand border during the next iteration. (Bishop, p. 228)

Floyd, Digital Fundamentals, 10 th ed Using a Shift Register (Continued) The shift registers initial value is set by wiring the left terminal to a constant or a control or another element outside of the loop. For consistent results, always initialize your shift registers. The shift registers final value can be used by wiring the right terminal to an element outside of the loop. (Bishop, pp )

Floyd, Digital Fundamentals, 10 th ed Example Program Write a program that finds the sum of all integers from 0 to 9. (Can easily extend this to find the sum of all integers from 0 to any positive integer). They key is to use a shift register to keep track of the running total as we add each new integer.

Floyd, Digital Fundamentals, 10 th ed Feedback Nodes Feedback Nodes offer another way to transfer values from one iteration of a loop to the next iteration. Shift registers are more powerful because they can remember as many of the previous values as you want, while feedback nodes can only remember one previous value. (Bishop, p. 233)

Floyd, Digital Fundamentals, 10 th ed Feedback Nodes (Continued) A Feedback Node appears as an arrow inside a rectangle, along with an associated Initializer Terminal on the loops left border. (Bishop, p. 234)

Floyd, Digital Fundamentals, 10 th ed Converting Between Shift Registers & Feedback Nodes A Feedback Node can be converted to a shift register (or vice versa) by right- clicking and selecting Replace with Shift Register (or Replace with Feedback Node). (Bishop, p. 234)

Floyd, Digital Fundamentals, 10 th ed Creating Feedback Node by Wiring Output to Input A Feedback Node will appear automatically if you wire the output of an element or group or elements to the input of that same element or group.