Simulink Control Design™ - MathWorks

(Tuis.) #1

Stop simulation when assertion fails


Stop the simulation when a bound specified in the Bounds tab is violated during
simulation, i.e., assertion fails.


If you run the simulation from the Simulink Editor, the Simulation Diagnostics window
opens to display an error message. Also, the block where the bound violation occurs is
highlighted in the model.


Settings


Default: Off


On
Stop simulation if a bound specified in the Bounds tab is violated.

Off
Continue simulation if a bound is violated with a warning message at the MATLAB
prompt.

Tips



  • Because selecting this option stops the simulation as soon as the assertion fails,
    assertion failures that might occur later during the simulation are not reported. If you
    want all assertion failures to be reported, do not select this option.


Dependencies


Enable assertion on page 16-32 enables this parameter.


Command-Line Information
Parameter: stopWhenAssertionFail
Type: character vector
Value: 'on' | 'off'
Default: 'off'


See Also


Plot Linear Characteristics of Simulink Models During Simulation on page 2-82


“Verify Model at Default Simulation Snapshot Time” on page 14-6


Bode Plot
Free download pdf