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.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
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.
Welcome! Workshop 2 of 7.
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.
Loops in LabVIEW (while,for and case)
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.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Loops A.About While Loops B.About For Loops C.About Case structures D.Sequence Structures E.Formula Node You Will Learn:
1 Lesson 5 Clusters TOPICS Introduction to Clusters Cluster Functions Error Clusters.
Chapter 6 Arrays & Clusters. LabVIEW Arrays > Collection of Elements > Same Data Type > Variable-Sized > One or More Dimensions.
Lesson 6 A. Using graphs to display data B. About clusters C. Some cluster functions You Will Learn: graphs and clusters.
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.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
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.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Workshop 3 of 7 Welcome!. Today's Topics Review of Workshop 2 Loops While For Auto-indexing Shift registers Case Structure.
V1: HMFR, V2: MFNB, 2007 LabView Seminar University of Puerto Rico Mayagüez Campus.
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.
Virtual Instrumentation With LabVIEW. Section I LabVIEW terms Components of a LabVIEW application LabVIEW programming tools Creating an application in.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Create.
Chapter 1 LabVIEW Basics. Features > Uses Graphic Symbols > Created by National Instruments > Virtual Instruments (VIs) > Extensive Library of VIs.
LabVIEW an Introduction
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.
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
Samuel Alberg Thrysøe, PhD, PostDoc, Kontakt info: Tlf:
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.
1. 2 LabVIEW Intro, Basics, Tips, Tricks Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
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.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
Chapter 8: Collections: Arrays. 2 Objectives One-Dimensional Arrays Array Initialization The Arrays Class: Searching and Sorting Arrays as Arguments The.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
CS320n –Visual Programming
CLUSTERS and ARRAYS. Array Functions  Build an array  Size an array  Form an array from a cluster or a cluster into an array  Index an array  Find.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 18 – Student Grades Application Introducing.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Array Controls and Indicators
LabVIEW Course Course 2.
Chapter 6 Arrays & Clusters. LabVIEW Arrays > Collection of Elements > Same Data Type > Variable-Sized > One or More Dimensions.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select.
Week 3 Labview exercises
EET 2259 Unit 12 Data Acquisition
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
EE 200 Design Tools Laboratory 14
EET 2259 Unit 11 Charts and Graphs
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
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.
Lesson 2: Introduction to Control programming using Labview
Doing some Boolean: On/Off
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
LabVIEW 7.1 寒假短期教學課程 歐陽丞修 2006/02/06.
LabVIEW.
Structures- case, sequence, formula node
EET 2259 Unit 9 Arrays Read Bishop, Sections 6.1 to 6.3.
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 3 Editing and Debugging VIs
Presentation transcript:

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 week

Floyd, Digital Fundamentals, 10 th ed Arrays and Clusters  An array is a variable-sized collection of data elements that are all of the same data type (such as floating point, integer, string, or Boolean).  A cluster is a fixed-sized collection of data elements of mixed data types. (Bishop, p. 289)

Floyd, Digital Fundamentals, 10 th ed Usefulness of Arrays  Arrays are useful when you have a collection of data points that you wish to plot or a collection of similar items that you wish to manipulate as a group. (Bishop, p. 289)

Floyd, Digital Fundamentals, 10 th ed Dimension of an Array  Every array has a dimension.  We’ll deal primarily with one-dimensional arrays, which you can think of as a list of items. Example: a list of student grades on a single assignment in a class: 90, 77, 82, 95, 60, : (Bishop, p. 289)

Floyd, Digital Fundamentals, 10 th ed Creating an Array of Controls or Indicators  To create an array of controls or indicators: 1. Place an array shell on the front panel from the Controls >> Modern >> Array, Matrix & Cluster palette. 2. Place a control or indicator inside that array shell. (Bishop, p. 290)

Floyd, Digital Fundamentals, 10 th ed Displaying Multiple Elements  To display more than one element of an array on the front panel, drag the array’s resizing handles until the desired number of elements are visible.  The box to the left shows the index of the first visible element. (Bishop, p. 290)

Floyd, Digital Fundamentals, 10 th ed Index of an Element  Each element in an array can be referred to by its index, which is an integer showing the element’s position in the array.  In LabVIEW, indexes are zero-based. So the first element in a one-dimensional array has an index of 0, the second element has an index of 1, and so on.  If a one-dimensional array contains n elements, the last element has an index of n  1. (Bishop, p. 289)

Floyd, Digital Fundamentals, 10 th ed Array Terminal on Block Diagram  When an array shell is first created, its terminal on the block diagram is outlined in black and shows no data type.  After the array’s data type has been defined by placing an item in the shell, the terminal changes color to show the data type. (Bishop, p. 292)

Floyd, Digital Fundamentals, 10 th ed Array Wires on Block Diagram  On the block diagram, a wire carrying an array of data values appears thicker than a wire carrying a single data value. (Bishop, p. 292)

Floyd, Digital Fundamentals, 10 th ed Arrays & the DAQ Assistant  When you use the DAQ Assistant to perform a digital input task, the DAQ Assistant produces an array of Boolean values.  And when you use the DAQ Assistant to perform a digital output task, you must provide the DAQ Assistant with an array of Boolean values.

Floyd, Digital Fundamentals, 10 th ed Creating Arrays with Loops  A feature called auto-indexing on For Loops and While Loops lets you tell LabVIEW to create arrays automatically when the loops run.  To enable or disable auto-indexing, right- click a tunnel on a loop’s border and select Enable Indexing or Disable Indexing. (Bishop, p. 293)

Floyd, Digital Fundamentals, 10 th ed Removing Elements from an Array  To manually remove an element on the front panel, right-click the element and select Data Operations > Delete Element.  To manually remove all elements, right-click the array’s index display and select Data Operations > Empty Array.

Floyd, Digital Fundamentals, 10 th ed Array Functions  The Functions >> Programming >> Array palette provides many functions for working with arrays, including: Array Size Index Array Array Subset Build Array Initialize Array Delete From Array

Floyd, Digital Fundamentals, 10 th ed Array Size  The Array Size function takes an array as its input. For its output, it returns the number of elements in that array.  The input array can be of any data type (numeric, Boolean, string). The output returned by the function is an integer. (Bishop, p. 297)

Floyd, Digital Fundamentals, 10 th ed Index Array  The Index Array function takes an array and a number (called index) as its inputs. For its output, it returns the element at the index position in that array.  The input array can be of any data type (numeric, Boolean, string). The output returned by the function is of the same type. (Bishop, p. 302)

Floyd, Digital Fundamentals, 10 th ed Array Subset  The Array Subset function takes an array and two numbers (one called index and one called length) as its inputs. For its output, it returns a new array containing the portion of the original array starting at index and containing length elements.  The input array can be of any data type (numeric, Boolean, string). The output returned by the function is an array of the same type. (Bishop, p. 301)

Floyd, Digital Fundamentals, 10 th ed Build Array  The Build Array function takes arrays and/or individual data values as its inputs. For its output, it returns an array containing all elements from the input arrays and values.  The input arrays and data values must be of the same type as each other (numeric, Boolean, string). The output returned by the function is an array of that same type. (Bishop, p. 300)

Floyd, Digital Fundamentals, 10 th ed Initialize Array  The Initialize Array function takes an integer n and a data value as its inputs. For its output, it returns a newly created array containing n elements, each of which is equal to the specified data value.  The input data value can be of any data type (numeric, Boolean, string). The output returned by the function is an array of that same type. (Bishop, p. 298)

Floyd, Digital Fundamentals, 10 th ed Delete From Array  The Delete From Array function takes an array and two numbers (one called index and one called length) as its inputs. For its output, it returns a new array equal to the original array but without the length elements starting at index.  The input array value can be of any data type (numeric, Boolean, string). The output returned by the function is an array of that same type.

Floyd, Digital Fundamentals, 10 th ed Two-Dimensional Array  Think of a two-dimensional array as a set of items arranged in a table. Example: a table of student grades on all of the assignments in a class: 90, 86, 93, … 77, 92, 68, … 82, 84, 82, … 95, 89, 94, … 60, 80, 75, … : : :

Floyd, Digital Fundamentals, 10 th ed Higher-Dimensional Arrays  Three-dimensional and higher-dimensional arrays are also possible, but we’ll concentrate on one-dimensional and two- dimensional arrays.