Chapter 1. Array and Cluster: Cluster

Similar documents
LabVIEW Lesson 5 Clusters

EET 310 Programming Tools

Sample. LabVIEW TM Core 1 Course Manual. Course Software Version 2010 August 2010 Edition Part Number B-01

LabVIEW Day 6: Saving Files and Making Sub vis

Hands-On: Introduction to Object-Oriented Programming in LabVIEW

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

Introduction to LabVIEW

Exercise 10: Basic LabVIEW Programming

First Bytes Programming Lab 2

Cell Phone Vibration Experiment

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

Data Acquisition Using NI-DAQmx

Lab 4 - Data Acquisition

Lab 3: Introduction to Data Acquisition Cards

Introduction to LabVIEW for Control Design & Simulation Ricardo Dunia (NI), Eric Dean (NI), and Dr. Thomas Edgar (UT)

PIC 10A. Lecture 7: Graphics II and intro to the if statement

Using SPSS, Chapter 2: Descriptive Statistics

DSP Laboratory: Analog to Digital and Digital to Analog Conversion

Storing Measurement Data

sample median Sample quartiles sample deciles sample quantiles sample percentiles Exercise 1 five number summary # Create and view a sorted

GPIB Instrument Control

LabVIEW Advanced Programming Techniques

Introduction to LabVIEW For Use in Embedded System Development. UC Berkeley EE249

AP Computer Science Java Mr. Clausen Program 9A, 9B

Getting Started Manual

Statgraphics Getting started

Administering and Scanning Your Answer Sheet Assessments

Visual Basic 2010 Essentials

Virtual Instrumentation With LabVIEW

User guide for the Error & Warning LabVIEW toolset

Excel Tutorial. Bio 150B Excel Tutorial 1

Series and Parallel Resistive Circuits

Essay 5 Tutorial for a Three-Dimensional Heat Conduction Problem Using ANSYS Workbench

Introduction to LabVIEW Design Patterns

Getting Started with the LabVIEW Mobile Module Version 2009

Getting Started with the LabVIEW Embedded Module for ARM Microcontrollers 1.0 For the Keil MCB2300

Efficient Data Structures for Decision Diagrams

GETTING STARTED WITH LABVIEW POINT-BY-POINT VIS

SPSS Tutorial, Feb. 7, 2003 Prof. Scott Allard

Gestation Period as a function of Lifespan

WESTMORELAND COUNTY PUBLIC SCHOOLS Integrated Instructional Pacing Guide and Checklist Computer Math

Microsoft Excel 2010 Charts and Graphs

LabVIEW Tutorial Manual

Scientific Graphing in Excel 2010

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

Lab View with crio Tutorial. Control System Design Feb. 14, 2006

Report Generation Toolkit for Microsoft Office User Manual

LabVIEW Report Generation Toolkit for Microsoft Office

4. Do you have a VGA splitter ( Y Cable)? a document camera?

Beginner s Matlab Tutorial

Computational Mathematics with Python

Data Director Create a New Answer Sheet

IBM Business Process Manager Version 8 Release 5. Hiring Tutorial IBM

ASSIGNMENT 4 PREDICTIVE MODELING AND GAINS CHARTS

Commonly Used Excel Functions. Supplement to Excel for Budget Analysts

Modbus and ION Technology

Introduction to Modern Data Acquisition with LabVIEW and MATLAB. By Matt Hollingsworth

Microsoft Excel 2013: Charts June 2014

INDIVIDUAL MASTERY for: St#: Test: CH 9 Acceleration Test on 29/07/2015 Grade: B Score: % (35.00 of 41.00)

INDIVIDUAL MASTERY for: St#: Test: CH 9 Acceleration Test on 09/06/2015 Grade: A Score: % (38.00 of 41.00)

Introduction... 1 Welcome Screen... 2 Map View Generating a map Map View Basic Map Features... 4

Statistics Chapter 2

Tutorial Microsoft Office Excel 2003

fakultät für informatik informatik 12 technische universität dortmund Data flow models Peter Marwedel Informatik 12 TU Dortmund Germany

Oracle Data Miner (Extension of SQL Developer 4.0)

LMS User Manual LMS Grade Book NUST LMS

Introduction to Data Tables. Data Table Exercises

Data Mining. SPSS Clementine Clementine Overview. Spring 2010 Instructor: Dr. Masoud Yaghini. Clementine

Computational Mathematics with Python

RLC Series Resonance

Solutions to Bulb questions

Mathematical goals. Starting points. Materials required. Time needed

STAT10020: Exploratory Data Analysis

This guide shows you how to configure each display option within the item editor.

Exploratory Spatial Data Analysis

Instructions for Using Excel as a Grade Book

by Tim Fahlberg, CoolSchoolTools.com,

MICROSOFT ACCESS STEP BY STEP GUIDE

WebSphere Business Modeler

LABVIEW DSP TEST TOOLKIT FOR TI DSP

EXPERT CHOICE TUTORIAL

RA MODEL VISUALIZATION WITH MICROSOFT EXCEL 2013 AND GEPHI

This exam contains 13 pages (including this cover page) and 18 questions. Check to see if any pages are missing.

User Guide to LabVIEW & APT

Homework 11. Part 1. Name: Score: / null

Creating an Excel XY (Scatter) Plot

Student s User Guide. Need help? Contact us at techsupport@bfwpub.com or

and Certification What Does It Take To Get Certified? Steven Hoenig NJ Business Unit Manager

SPSS INSTRUCTION CHAPTER 1

Computer-based instruments for a remotely-operated laboratory

TESTING CENTER SARAS USER MANUAL

ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology)

In this article, learn how to create and manipulate masks through both the worksheet and graph window.

Directions for using SPSS

1. Installing The Monitoring Software

Mean, Median, and Mode

Lecture 2 Mathcad Basics

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

An Introduction to Using Simulink

By: Peter K. Mulwa MSc (UoN), PGDE (KU), BSc (KU)

Transcription:

Chapter 1. Array and Cluster: Cluster A cluster is a data structure that groups data, like arrays. However, there some important difference for cluster: Cluster can group different types of data (such as numerical, and string data). Cluster has fixed size.

1.1 Creating Cluster Controls and Indicators Cluster controls or indicators can be created by (Moden>Array, Matrix & Cluster): Place a cluster shell on the front panel. Define the data type: Drag and place any data types. You can select change to control or change to indicator (right click).

A Cluster can be created on the Front Panel.

1.2 Cluster Order The elements of a cluster are ordered according to when they are placed in the cluster. The first element is label with 0, and so on. The cluster order determines the order in which the elements appear as terminal on the Bundle and Unbundle functions. You can view and change the order of the element by right click the border and choose Reorder Controls In the Cluster

1.3 Cluster Functions Bundle and Unbundle Functions: Functions>>Programming>>Cluster & Variant. 1.3.1 The Bundle Function The bundle function is used to assemble individual elements into a single new cluster or replace elements in an existing cluster. The following VI shows how to use the Bundle function to create a cluster.

Assignment 1 Build a cluster and then change its element Using two Bundle functions to build and change its element: The first Bundle function is used to build a cluster, while the second Bundle function is used to change one element (the numerical number 3 changed as 1). Show the results. The final Front Panel should be the same as the following figure. The left Boolean switch is used to control whether or not to change the numerical number.

Assignment 2 Using For Loop to Build a Cluster Using a For Loop to build a cluster as shown in the following figure. The cluster has 3 inputs: a floating-point real number, an integer, and an array of number generated by the For Loop. The output is wired to a wavefront graph to display the random numbers.

1.3.2 Unbundle Function The Unbundle function extract individual elements of a cluster. The output components are in the order from top to bottom in the same order as in the cluster. Unbundle function appear with two output terminals. It can automatically just the number of the output terminals once wired. Assignment 3 Unbundle a Cluster The following example shows the Unbundle function being used to unpack the elements. The clusters has four elements, and each element is split from the cluster and wired to individual indicator for viewing on the front panel. Write the labview Code.

Assignment 3: The Using of Unbundle function.

1.3.3 Creating Cluster Constant on the Block Diagram Cluster constants can be created on the Front Panel by using cluster controls. Cluster constants can also be created on the Block Diagram by using Cluster Constant function. The following example shows how to use Cluster Constant function to build cluster which contains constants.

Assignment 4 XY Graph Plot Build a VI that generates and plot 500 random numbers on a XY Graph indicator. Computer the average of the random numbers and display the result on the Front Panel. Using the Statistic Express VI found in the Mathematics >>Probability and Statistics palette to computer the average of the random numbers

Assignment 5 XY Graph Create a VI that plots a circle using an XY Graph. (using 20 data to sample the circle).

Assignment 6 Course Grade (Assume 10 students) Design a VI that produces an array of clusters containing the course average, letter grade, and class rank for each students in a class, given three arrays with the examination courses as input. There is one array of scores for each examination. The course average is determined as following: 30% from the first exam, 30% from the second exam, and 40% from the final exam. The letter grade is determined from the course average by the criteria list in Table 1. Rank the students so that the student with the highest grade has a rank of 1 and the student with the lowest grade in the class has a rank equal to the number of the students in the class. You may use Sort 1D Array and Search 1D Array functions within a loop to find the student s rank. Bundle all of the information (course average, letter grade, and class rank) into an array of cluster where each cluster contains all the data for one individual student. Display this array of cluster on the front panel.

Table 1. For Assignment 6 Course Average Letter Grade 0% ~ 59% F 60% ~ 69% D 70% ~ 70% C 80% ~ 89% B 90% ~ 100% A