![background image](http://html1.mh-extra.com/html/national-instruments/bridgeview/bridgeview_user-manual_3445534295.webp)
Chapter 14
Arrays, Clusters, and Graphs
©
National Instruments Corporation
14-13
Index Array
The Index Array function accesses an element of an array.
The following illustration shows an example of an Index Array function
accessing the third element of an array. Notice that the index of the third
element is 2 because the first element has index 0.
You also can use this function to slice off one or more dimensions of a
multi-dimensional array to create a subarray of the original. To do this,
stretch the Index Array function to include two index inputs, and select
the Disable Indexing command on the pop-up menu of the second index
terminal as shown in the following illustration. Now you have disabled the
access to a specific array column. By giving it a row index, the result is an
array whose elements are the elements of the specified row of the 2D array.
You also can disable indexing on the row terminal.
3
2
5
7
1
4
2
2
1D Array
Index
5
Element
Array
Disabled Input
(Empty Box)