You are on page 1of 17

LabVIEW Arrays

• An array is a collection of data elements. The data


elements in an array can be numeric, Boolean, string or
cluster, but all data elements must be of the same type
within an array. Arrays can be one or two-dimensional

• One Dimensional Arrays have elements and indices.


Below is a 7-element, one-dimensional array. Notice that
the first element has index 0, the second element has
index 1, etc.
LabVIEW Arrays
• Creating a One Dimensional Array
LabVIEW Arrays
• Creating a Two Dimensional Array
You create a two-dimensional array by modifying
a one-dimensional array. Pop up on the index
display > Add Dimension. Then re-size the array
display vertically to display the columns.

Click for motion1 (creating)


Array Functions
• Arrays can be controlled by Array Functions.
some array functions

Array Max & Min


Index Array
Split 1D Array
Array size
Build Array
Initialize Array
Sort 1D Array
Array Transpose
Array Functions
• Creating array in the block diagram:

3 6
5

4
Array Functions
Array Functions

Right click on build array and select:


Array Functions

Extracting one element in 1D array

Extracting one row in 2D array

Extracting one element in 2D array


Array Functions
Array Functions
Array Arithmetic Operations
Array Conversion

You might also like