Creating Array Constants

Create an array constant on the block diagram by combining an array with a valid constant, which can be a numeric, Boolean, string, path, refnum, or cluster constant. The element cannot be another array.

  1. Select an array constant on the Functions»Array palette and place it on the block diagram. An array shell appears, with an index display on the left, an empty element display on the right, and an optional label.
  2. Place a constant in the array shell. For example, you can select a numeric constant on the Functions»Numeric palette and place it in the array shell. You can copy or drag an existing array on the front panel to the block diagram to create a constant of the same data type. The array shell automatically resizes to accommodate the object you place in the array shell.

    When you place an object in the array shell, you define the data type of the array constant.