Resetting digital filter states

5 ビュー (過去 30 日間)
Eric Reischer
Eric Reischer 2016 年 5 月 5 日
Is there a way to externally reset the internal states of the Simulink "Digital Filter" block? My model has a frame-based signal coming in that processes data at each step of a triggered subsystem. However, there are times when I want to re-initialize the internal states of this filter to its initial conditions without resetting the entire model. An ideal solution would be a checkbox in the function block parameters that exposes an additional inport which can be used to reset the state vector (though this doesn't appear to exist for this block). I could code up my own new masked subsystem implementation of this block, but I doubt the resulting RTW code would be as efficient as the embedded block.
  2 件のコメント
Eric Reischer
Eric Reischer 2016 年 5 月 5 日
I was thinking a possible workaround would be to set the coefficient source as an input port and then switch these to all zeros and iterate through an extra model step (or put it in a for{} subsystem to be called twice), but that seems to be a lot of extra code to do a pretty simple operation.
Navan Ruthramoorthy
Navan Ruthramoorthy 2016 年 5 月 6 日
Which version of MATLAB are you using and what kind of filter is it? If you use "Discrete FIR Filter" from Simulink it has an option to have an external reset input.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by