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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by