Changing stop button behaviour
1 次查看(过去 30 天)
显示 更早的评论
I want to achieve the following:
When the stop button of a running model is pressed, Simulink should not immediately stop the simulation. Instead the value of a constant block should be changed to 1, which in turn will trigger some behavior in the model (incl. triggering a stop block in the end).
- Is there a way to redefine the callback of the stop button in a Simulink window?
- Is there a way to use the StopFcn callback for this, i.e. setting the constant block and forcing the simulation to continue?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!