Stateflow: reset simulink-based state on entry

22 次查看(过去 30 天)
I have a Stateflow chart in Simulink, and in this chart I have some Simulink-based states. Some of these states contain stateful blocks such as integrators and delays. I would like to reset some or all of the block states each time I enter the Simulink-based state. How can I achieve this?

回答(1 个)

Mark McBroom
Mark McBroom 2024-9-21,20:47
Did you try putting a reset subsystem in the Simulink subsystem to reset the state?
Thanks.
Mark.

类别

Help CenterFile Exchange 中查找有关 Complex Logic 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by