Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Array Subset Function

LabVIEW 2011 Help

Edition Date: June 2011

Part Number: 371361H-01

»View Product Info

Owning Palette: Array Functions

Requires: Base Package

Returns a portion of array starting at index and containing length elements.

Details  

array can be an n-dimensional array of any type.
index specifies the first element, row, column, or page to include in the portion of array you want to return. If index is less than 0, the function treats it as 0. If index is greater than or equal to the array size, the function returns an empty array.
length specifies how many elements, rows, columns, or pages to include in the portion of array you want to return. If index plus length is larger than the size of the array, the function returns only as much data as is available. The default is the length from index to the end of array.
index specifies the first element, row, column, or page to include in the portion of array you want to return. If index is less than 0, the function treats it as 0. If index is greater than or equal to the array size, the function returns an empty array.
length specifies how many elements, rows, columns, or pages to include in the portion of array you want to return. If index plus length is larger than the size of the array, the function returns only as much data as is available. The default is the length from index to the end of array.
subarray is of the same type as array.

Array Subset Details

When you wire an array to this function, the function resizes automatically to display index inputs for each dimension in the array. If you wire a 1D array to the function, the function displays the index inputs for an element. If you wire a 2D array to the function, the function displays the index inputs for a row and column, respectively. If you wire a 3D through nD array to the function, the function displays the index inputs for a page.

The connector pane displays the default data types for this polymorphic function.

You can use the Index Array function to modify the shape of the subarray. For example, if the input to an Index Array function is a 2D array and you wire only the row input, you extract a complete 1D row of the array.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit