Is there a way to stop simulation, when an error case is met.

4 Ansichten (letzte 30 Tage)
D D
D D am 22 Dez. 2022
In simulink, if an error occurs (eg: invalid input parameters), is there a way to stop simulation at that point.
I know below options
1) Stop block - This will stop only after the current time step. I want to stop right there.
2) Assertion block - This block will do. But it is not recomended for code generation.
3) If else - This will also do.. But I am searching for any other logic for sudden stopping.
Please support.

Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by