User`s guide

5 Exporting F ilter Coefficients from FDATool
to
real64_T NUM[256] = {...}
allocates enough m emory for NUM tostoreupto256numeratorlter
coefcients rather than 47.
Exporting the header le to CC S IDE does not a dd the lter to your project.
To incorporate the lter coefcients from the header le, add a
#include
statement:
#include headerfilename.h
Refer to “Exporting Filter Coefcients to Your Code Compo ser Studio P roject”
on page 5-9 for information about generating a header le to export lter
coefcients.
When you e xport lter coefcients directly to processor memory , the export
processwritescoefcients to as m any memory locations as they need. The
write process does not perform bounds checking. To ensure you write to the
correct locations, and have enough memory for your lter coefcients, plan
memory allocation carefully.
Replacing Existing Coefficients in Memory with
Updated Coefficients
When you redesign a lter and export n ew coefcients to replace existing
coefcients in memory, verify the following conditions for your new design:
Your redesign did not increase the memory required to store the coefcients
beyond the allocated memory.
Changes that increase the memory required to store the lte r coefcients
include the follow ing redesigns:
- Increasing the lter order
- Changing the number of sections in the lter
- Changing the numerical precision (changing the export data type)
Your changes did not change the export data type.
5-16