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

Allocating Static Arrays (DSP Module)

LabVIEW DSP Module 2.5 Help
August 2007

NI Part Number:
371300C-01

»View Product Info

Digital signal processors (DSPs) and general-purpose processors, such as the processors in desktop computers, differ from each other.

To make DSP VIs more deterministic, the DSP Module preallocates memory while building the DSP VI for the DSP target. The DSP compiler analyzes the VI and determines the sizes from the constructs you use. The following three places primarily determine the array size:

  • Front panel controls and constants
  • Outputs from VIs such as the EMB Sine Waveform VI
  • Outputs from For Loops with output indexing

The array size cannot be empty and must be a constant size that the DSP compiler can determine when you build the DSP VI for the DSP target. The DSP Module does not detect a mismatch in the static array allocation until you build the DSP VI for the DSP target.

Multiple Array Inputs

All array inputs in VIs and functions must be the same size. The Run button does not break in edit mode if the sizes differ. However, the array in a calling VI can cause errors in the subVI when you build the VI into a DSP application.


Resources


 

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