Index Array function: Difference between revisions
Created page with "{{Stub}} thumb|Index Array function Returns an element or subarray at a specific index from an n-dimensional array. {{LabVIEW Palette Ob..." |
(No difference)
|
Revision as of 15:46, 2 September 2019
| |
This article is a stub. You can help LabVIEW Wiki by expanding it. Please improve this article if you can. |

Returns an element or subarray at a specific index from an n-dimensional array.
| Object information | |
|---|---|
| Owning palette(s) | Array palette |
| Type | Function |
| Requires | Basic Development Environment |
Usage
If no index is specified, the function returns the first element or subarray as if the index was set to zero.
The index automatically increments if not specified. This also works with jumps, by defining the index of an element further below.
For n-dimensional arrays, the number of terminals for each element or subarray matches the number of dimensions of the source array.
The index terminals for n-dimensional arrays are sorted in descending order, with the top terminal for the highest dimension. The first four dimensions are given names. From the fifth dimension onwards, terminal names keep incrementing with the pattern "dim<n>", where "<n>" is the dimension number.
| Dimensions | terminals |
|---|---|
| 1 | index |
| 2 | row, col |
| 3 | page, row, col |
| 4 | vol, page, row, col |
| 5 | dim5, vol, page, row, col |