State Writer: How can I reset state for delay block with frame-based processing?
2 次查看(过去 30 天)
显示 更早的评论
In a Reset Function block I would like to use a State Writer to reset the state of a Delay block. However, this Delay block uses frame based input processing, i.e. the Input processing is selected to be "Columns as channels (frame based)". The State Writer block refuses to reset the delay's state with a diagnostic error:
Block 'MySystem/Delay' has attributes or configurations that are not supported by State Writer block 'MySystem/Reset Function/State Writer1'.
Caused by:
Block 'MySystem/Delay' has frame-based signal at input port 1.
Block 'MySystem/Delay' has frame-based signal at output port 1.
So is there a better State Writer block somewhere that can actually reset the state of my Delay block? After all, state data is just data - why can't the State Writer reset it?
My desire is to create an entrypoint in generated code (i.e. a reset function) that will clear the delay block's internal state to 0.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!