Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Returning Fixed-Size Arrays from Array Functions (FPGA Module)

LabVIEW FPGA Module 8.2 Help
August 2006

NI Part Number:
371599B-01

»View Product Info

You cannot use an array function that returns a variable-size array in an FPGA VI. However, if you use appropriate constants with many array functions, the resulting array is fixed-size.

The following Array functions can return fixed-size arrays:

Note  Build Array, Cluster To Array, and Initialize Array functions require that the Autopreallocate arrays and strings checkbox have a checkmark. To ensure this option is enabled, right-click the FPGA VI under the FPGA target that you are using. Select Properties in the shortcut menu. The VI Properties dialog box appears. Select Execution from the Category pull-down menu. Confirm the Autopreallocate arrays and strings checkbox is enabled and click the OK button.
  • Array Subset—The index and length inputs must be constant. You also can make all inputs constant.

  • Build Array—You can use constant or non-constant inputs.

  • Cluster To Array—You can use constant or non-constant inputs.

  • Decimate 1D Array—You can use constant or non-constant inputs.

  • Delete From Array—The length and index inputs must be constant. You also can make all inputs constant.

  • Initialize Array—The element input can be non-constant. The dimension size input must be constant. You also can make all inputs constant.

  • Insert Into Array—The index input must be constant. You also can make all inputs constant.

  • Interleave 1D Arrays—You can use constant or non-constant inputs.

  • Replace Array Subset—You can use constant or non-constant inputs.

  • Reshape Array—The dimension size input must be constant.

  • Reverse 1D Array—You can use constant or non-constant inputs.

  • Rotate 1D Array—You can use constant or non-constant inputs.

  • Split 1D Array—The index input must be constant. You also can make all inputs constant.

Note  Use constant inputs when you can because they are more efficient in FPGA VIs.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit