Identification of the delay induced by a FIR interpolator block in simulink

조회 수: 1 (최근 30일)
Guerin Nicolas
Guerin Nicolas 2020년 7월 6일
편집: Elady 2021년 7월 1일
I am currently trying to upsample some signals in Simulink using the FIR interpolation block.
To test such functionnalities, I used the `ex_polyphaseinterp` example provided in the documentation.
According to the same documentation, with the settings used in the example, the interpolated signal should have a 3 sample delay (as the upsample factor is of 3).
However, when checking the scope for the signals, a much higher delay is observed as can be seen below
Can anyone clarify the information in the documentation and / or point errors in my reasoning ?
  댓글 수: 3
Guerin Nicolas
Guerin Nicolas 2020년 7월 15일
편집: Guerin Nicolas 2020년 7월 15일
@JyotsnaTalluri, In the latency section, it is stated that if the Elements as channels (sample based) input option is selected, and for a L interpolation factor the block has a latency of L samples. Hence my last question : Can anyone clarify the information in the documentation and / or point errors in my reasoning ?
Mathieu NOE
Mathieu NOE 2020년 10월 13일
hello
I wonder if the term "latency" in the doc covers everything you see on your graph
beside this " latency " effect (to be clarified) , any FIR filter will show a group delay equals half of the FIR order
do you know your filter order ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Elady
Elady 2021년 7월 1일
편집: Elady 2021년 7월 1일
Hello Guerin,
The delay that you see in the FIR interpolator output is a result of the FIR group delay, like Mathieu mentioned.
That delay should not be confused with the latency discussed in the documentation. That latency has a different meaning, pertaining multirate execution and frame-based processing, which is not the case here (you verify that the FIR Interpolator block runs in "sample based" mode).
In the case of the ex_polyphaseinterp example, the FIR is obtained by h=fir1(35,0.3). It is a symmetric type-II linear phase FIR, which has a group delay of samples. Accounting for the sample time in the simulation, the expected output delay is , exactly as it shows on the scope.
Regards,
Elad

카테고리

Help CenterFile Exchange에서 Signal Operations에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by