labview arrays
TRANSCRIPT
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 & MinIndex ArraySplit 1D ArrayArray sizeBuild ArrayInitialize ArraySort 1D ArrayArray Transpose
Array Functions• Creating array in the block diagram:
1
2
3
4
5 6
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