Resetting memories inside IF block when it is inside a Resettable Subsystem

4 views (last 30 days)
Inside a Resettable Subsystem, there is IF block (see picture attached). When the subsystem is reset, state memories (such as Unit Delay) inside Subsystem A and B are not reset. Because A and B have their own action port (with held and reset option) related to IF block.
In the official documentation "A resettable subsystem enables you to reset the states of all blocks inside it", but in my example, A and B are not reset.
How I can reset blocks that are inside A and B in this case?

Accepted Answer

Hamza Bourbouh
Hamza Bourbouh on 15 Apr 2018
The solution given by MathWorks support is not working in the case of Action Subsystems that are not activated on time of the reset.
Attached is my solution to that problem.

More Answers (1)

Hamza Bourbouh
Hamza Bourbouh on 14 Apr 2018
Attached is a workaround solution from MathWorks team.

Products

Community Treasure Hunt

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

Start Hunting!