Front panel, Activity 14-3. use the build array function – National Instruments BridgeVIEW User Manual

Page 297

Advertising
background image

Chapter 14

Arrays, Clusters, and Graphs

© National Instruments Corporation

14-15

BridgeVIEW User Manual

Thus, you can interpret the lower left preceding example as a command to
generate a 1D array of all elements at column 0 and row 3. You can interpret
the upper right example as a command to generate a 2D array of page 1.
The new, 0

th

element is the one closest to the original, as shown in the

preceding illustration.

Activity 14-3. Use the Build Array Function

Your objective is to use the Build Array function to combine elements and
arrays into one bigger array.

Front Panel

1.

Create a new front panel, as shown in the following illustration.

2.

Place a digital control from the Controls»Numeric palette and label it

scalar 1

. Change its representation to

I32

.

3.

Copy and paste it to create two other digital controls and label them

scalar 2

and

scalar 3

.

4.

Create an array of digital controls and label it

array 1

. Copy and

paste it and label it

array 2

.

5.

Expand the arrays and enter the values 1 through 9 in

array 1

,

scalar 1

,

scalar 2

,

array 2

, and

scalar 3

, as shown in the

illustration above.

6.

Copy the array and paste it and change it to an indicator. Label it

1D array

. Expand it to show nine values.

Advertising