chapter 6 arrays & clusters. labview arrays > collection of elements > same data type >...

39
Chapter 6 Arrays & Clusters

Upload: elfreda-dennis

Post on 22-Dec-2015

229 views

Category:

Documents


2 download

TRANSCRIPT

Chapter 6Arrays & Clusters

Chapter 6Arrays & Clusters

LabVIEW Arrays > Collection of Elements > Same Data Type > Variable-Sized > One or More Dimensions

LabVIEW Arrays > Collection of Elements > Same Data Type > Variable-Sized > One or More Dimensions

Creating Arrays1. Place Array Shell on FP2. Place Data Object Inside Shell

Creating Arrays1. Place Array Shell on FP2. Place Data Object Inside Shell

Create Arrays with For Loops > Auto-indexingCreate Arrays with For Loops > Auto-indexing

Array Functions > Array Size > Initialize Array > Build Array > Array Subset > Index Array

Array Functions > Array Size > Initialize Array > Build Array > Array Subset > Index Array

Array Size Function Returns the number of elements in the input array. Each output element describing a dimension size.

Array Size Function Returns the number of elements in the input array. Each output element describing a dimension size.

Initialize ArrayCreates an n-dimensional array with elements containing a specified value. All elements are the same value.

Initialize ArrayCreates an n-dimensional array with elements containing a specified value. All elements are the same value.

Build Array Assembles multiple arrays or adds scalar elements to an array.

Build Array Assembles multiple arrays or adds scalar elements to an array.

Array Subset > Returns a portion of an array > Starts at Index > Contains “length” elements.

Array Subset > Returns a portion of an array > Starts at Index > Contains “length” elements.

Index Array Gives access to an element or sub-array in an array.

Index Array Gives access to an element or sub-array in an array.

Polymorphism > Arithmetic functions accept inputs of different dimensions > Outputs will be size of smaller array

Polymorphism > Arithmetic functions accept inputs of different dimensions > Outputs will be size of smaller array

LabVIEW Clusters > Collection Elements > Different Data Types > Fixed Size

LabVIEW Clusters > Collection Elements > Different Data Types > Fixed Size

Creating Clusters1. Place Cluster Shell on FP2. Place Mixed-Type Data Objects Inside Shell

Creating Clusters1. Place Cluster Shell on FP2. Place Mixed-Type Data Objects Inside Shell

Cluster Functions > Bundle Function > Unbundle Function

Cluster Functions > Bundle Function > Unbundle Function