Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (2 votes)
12K views

LabVIEW Arrays

Arrays are collections of data elements that must all be of the same type. One dimensional arrays have elements with indices starting from 0. Two dimensional arrays are created by adding another dimension to a one dimensional array. Array functions allow manipulating arrays, such as finding maximum/minimum values, extracting elements/rows, and performing arithmetic operations. Arrays can be built, initialized, sorted, and transposed using array functions in LabVIEW.

Uploaded by

ahmed4665
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
12K views

LabVIEW Arrays

Arrays are collections of data elements that must all be of the same type. One dimensional arrays have elements with indices starting from 0. Two dimensional arrays are created by adding another dimension to a one dimensional array. Array functions allow manipulating arrays, such as finding maximum/minimum values, extracting elements/rows, and performing arithmetic operations. Arrays can be built, initialized, sorted, and transposed using array functions in LabVIEW.

Uploaded by

ahmed4665
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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