Using Fixed-Size Arrays in FPGA VIs (FPGA Module)

LabVIEW 2017 FPGA Module Help

Edition Date: March 2017

Part Number: 371599N-01

»View Product Info
Download Help (Windows Only)

The FPGA Module supports one-dimensional arrays that resolve to a single size at compile time. If LabVIEW cannot infer a single size of an array, consider using a fixed-size array in your FPGA VI.

Creating Fixed-Size Array Controls

Complete the following steps to create a fixed-size array control:

  1. Add an array to the front panel window. An array includes an index display on the left, an element display on the right, and an optional label.

  2. If the Controls palette is not already visible, right-click the element display or the front panel window to display the Controls palette.
  3. Drag a control or indicator into the array. For example, drag a numeric control into the array.
  4. Right-click the index of the array control and select Set Size from the shortcut menu.
  5. In the Size page of the Properties dialog box, select Fixed.
  6. Enter the number of elements in the array.
  7. Click the OK button.

Creating Fixed-Size Array Constants

Complete the following steps to create a fixed-size array constant:

  1. Add an array constant to the block diagram. An array constant appears with an index display on the left, an empty element display on the right, and an optional label.

  2. Add a constant to the array.
  3. Right-click the index of the array constant and select Set Size from the shortcut menu.
  4. In the Size page of the Properties dialog box, select Fixed.
  5. Enter the number of elements in the array.
  6. Click the OK button.

Related Information

Returning Compile Time Resolvable Arrays from Array Functions (FPGA Module)

Implementing Variable-Sized Arrays in FPGA VIs (FPGA Module)

WAS THIS ARTICLE HELPFUL?

Not Helpful