FIR Filter Delay and Compensation in Simulink

3 views (last 30 days)
How can you compensate for filter delay in Simulink and match a reference signal/expected signal with a delayed filtered signal? The filter was designed using the 'Digital Filter Design' block in Simulink.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Jul 2022
The delay is a result of the group delay of the filter.
The group delay of the filter can be found in the “Digital Filter Design” window by clicking on the “Group Delay Response” icon in the toolbar along the top.  This delay is given in units of samples.  More information on delay and filter design can be found by referencing the link below:
One way to get the expected output of the filter to align with the output of the filter is to delay the expected output signal. This can be done using two different blocks: ‘Transport Delay’ or ‘Delay’.
The ‘Transport Delay’ block is useful for delaying continuous time signals by a given time. More information on the ‘Transport Delay’ block can be found by referencing the link below:
The ‘Delay’ block is used with discrete systems and is useful for delaying by a set number of samples. More information on the ‘Delay’ block can be found by referencing the link below:
These tools will allow for delay compensation without using MATLAB function blocks.

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!