This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

library function dsp_fir_gen

I'd like to filter some function (sin), which includes 20000 components, using "dsp_fir_gen". and i need 157-order filter.The question is - what means these two parameters - "nh" и "nr"? I suppose "nh" - filter-order? There are some information in description - that "nh" - number of coefficients and "nr" - number of samples to calculate. Could you specify what means these parameters?

  • Artem,

    Are you asking what the terms "coefficient" and "sample" mean?

    Each tap of your 157-order filter uses 1 coefficient. Your term "component" is unfamiliar to me in this context, but it must be the 20000 samples of the sine waveform. A filter is applied to a waveform, not to a function, but for your application your terms may be more meaningful to you.

    The descriptions for most of the functions like dsp_fir_gen include C code examples. These examples show how the parameters are used. You can determine if these parameters are used in a way that fits your requirements by studying that C code.

    Regards,
    RandyP