Home > Support > NI Product Manuals > LabVIEW Communications System Design Suite 1.0 Manual

Fixed-Size Array Requirement in FPGA IP VIs

Arrays in FPGA IP VIs must be of a fixed size to ensure proper memory allocation on the FPGA at compile time.

Array Inputs

The type of input you wire to an array determines whether you need to take additional steps to designate a fixed size for the array:

  • Array constants—No additional steps needed. LabVIEW automatically sets the size of the array equal to the number of elements in the array constant.
  • Array controls—You must manually designate a fixed size for an array control.
    1. Enable the Fixed Size checkbox in Dimension and Size on the Configure tab.
    2. Specify the size of the array.

Array Outputs

When you wire an indicator to an array, LabVIEW automatically sets a fixed size for the output that scales to the size of the array. This behavior is the default setting and is indicated by the Adapt to Wired gear on the indicator data type, as shown in the following image.

In some situations, LabVIEW may not be able to determine the size of the array, in which case you can manually set the indicator to be a fixed size. Use the manual setting on an indicator only when LabVIEW cannot determine the size of the array because the setting can cause coercion dots to appear later in development.

Note  

When you manually set an indicator to fixed size, the Adapt to Wired property is disabled. If you then switch the indicator back to a variable size, the Adapt to Wired property is not automatically reenabled, meaning LabVIEW no longer automatically sets the size of the indicator to the size of the array, as per the default behavior. Therefore, when you switch an indicator from fixed size back to variable size, you have to manually enable the Adapt to Wired property to allow LabVIEW to automatically determine the size of the array output.