User`s guide
5 Exporting F ilter Coefficients from FDATool
to
real64_T NUM[256] = {...}
allocates enough m emory for NUM tostoreupto256numeratorfilter
coefficients rather than 47.
Exporting the header fi le to CC S IDE does not a dd the filter to your project.
To incorporate the filter coefficients from the header file, add a
#include
statement:
#include headerfilename.h
Refer to “Exporting Filter Coefficients to Your Code Compo ser Studio P roject”
on page 5-9 for information about generating a header file to export filter
coefficients.
When you e xport filter coefficients directly to processor memory , the export
processwritescoefficients 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 filter coefficients, plan
memory allocation carefully.
Replacing Existing Coefficients in Memory with
Updated Coefficients
When you redesign a filter and export n ew coeffi cients to replace existing
coefficients in memory, verify the following conditions for your new design:
• Your redesign did not increase the memory required to store the coefficients
beyond the allocated memory.
Changes that increase the memory required to store the filte r coeffi cients
include the follow ing redesigns:
- Increasing the filter order
- Changing the number of sections in the filter
- Changing the numerical precision (changing the export data type)
• Your changes did not change the export data type.
5-16