0% found this document useful (0 votes)
7 views10 pages

Arrays

An array is a collection of elements of the same data type that can have one or more dimensions and is accessed by indices. Arrays can be created in LabVIEW by adding an array shell from the controls palette and populating it with data objects. Common functions for arrays include initializing, extracting elements and rows, and finding max/min values.

Uploaded by

Mohammed TAOUSSI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views10 pages

Arrays

An array is a collection of elements of the same data type that can have one or more dimensions and is accessed by indices. Arrays can be created in LabVIEW by adding an array shell from the controls palette and populating it with data objects. Common functions for arrays include initializing, extracting elements and rows, and finding max/min values.

Uploaded by

Mohammed TAOUSSI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Arrays

• An array is a collection of controls or


indicators that have the same data type
• An array has elements and Dimensions.
• Elements are the data that make up the array.
• A dimension is the length of an array.
• An array can have one or more dimensions.
• Elements accessed by their index; first
element is index 0
index 1.2 3.2 8.2 8.0 4.8 6.0 1.0 2.5 1.7
10-element array 0 1 2 3 4 5 6 7 8 9
Adding an Array to the Front
Panel
From the Controls >> Modern >>
Array, matrix & Cluster >> array,
select the Array Shell
Array Index

Array Shell
• Place data object into shell (i.e. Numeric
Control)
Creating 1D array of random numbers (0-1)
Creating 2D array of random numbers (0-1)
Common Array Functions

Array Size

Initialize Array
Array Subset

Build Array
The Index Array Function

Extracting an Element

Extracting a Row

Extracting an Element of a Row


Array Max & Min

You might also like