issue with model operating points: when restarting the simulation it immediately stops because the stopping criteria already met
1 回表示 (過去 30 日間)
古いコメントを表示
simulation is stopped using the stop block with logic. Using model operating points to store the simulation state, when restarting the simulation, it immediatelty stops. how to avoid that?
2 件のコメント
回答 (1 件)
Daniel
2023 年 4 月 14 日
If you want to pause rather than stopping, you can connect the output of the Relational Operator to a Terminator, and set a breakpoint on the signal. Select the signal, then go to the Debug tab and click "Add Breakpoint". (That's the method for R2023a anyway. I haven't checked on how backwards-compatible that is with earlier versions.)
By the way, you can accomplish your comparison a little more easily with a Relational Operator. Pass "Measured Relative Error" and "Value" into a Relational Operator block, and check the output of that block, rather than using the two or three blocks you're using now.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Discrete-Event Simulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!