beautypg.com

National Instruments BridgeVIEW User Manual

Page 296

background image

Chapter 14

Arrays, Clusters, and Graphs

BridgeVIEW User Manual

14-14

© National Instruments Corporation

Notice that the index terminal symbol changes from a solid to an empty
box when you disable indexing. To restore a disabled index, use the
Enable Indexing command from the same menu.

You can extract subarrays along any combination of dimensions.
The following illustration shows how to extract a 1D row or column arrays
from a 2D array.

From a 3D array, you can extract a 2D array by disabling two index
terminals, or a 1D array by disabling a single index terminal. The following
figure shows several ways to slice a 3D array.

The following rules govern the use of the Index Array function to slice
arrays:

The dimension of the output object must equal the number of disabled
index terminals. For example:

Zero disabled = scalar element

One disabled = 1D component

Two disabled = 2D component

The values wired to enabled terminals must identify the output
elements.

Extract Column

Extract Row