Why Do I Receive an Error When I Use Stacked Shift Registers in My DSP VI? Primary Software: LabVIEW Modules>>DSP ModulePrimary Software Version: 1.0 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I receive an error when I build, or compile, my DSP VI if my DSP VI uses stacked shift registers. How can I access data from previous loop iterations? Solution: LabVIEW DSP Module targets do not support dynamic memory allocation so you cannot use expandable objects, such as stacked shift registers, in a DSP VI. However, you can use multiple shift registers on the loop to achieve the same effect. The following figure shows how to initialize the right-hand terminal of the first shift register with a constant so you can wire the left-hand terminal of the first shift register to the right-hand terminal of the second shift register. You can get data from previous iterations of the loop using this framework.
Using Shift Registers with Arrays If you want to use shift registers with arrays, you must initialize each shift register with the same-sized array. You cannot dynamically allocate arrays in DSP VIs. Refer to the How Can I Be Successful with Arrays in the LabVIEW DSP Module article (linked below) for more information about using arrays in DSP VIs. Related Links: Knowledgebase 3LQCIVXL: How Can I Be Successful with Arrays in the LabVIEW DSP Module? Attachments:
Report Date: 05/27/2005 Last Updated: 11/08/2005 Document ID: 3LQDC8XL |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

