Zero-crossing control is globally disabled in Simulink
Option to issue warning or error if zero-crossing control is globally disabled during simulation
Model Configuration Pane: Simscape
Description
By default, Simulink® tracks simulation events by detecting zero crossings. For more information, see Managing Zero Crossings in Simscape Models.
You can globally disable zero-crossing detection in the Solver pane of the Configuration Parameters dialog box, under Zero-crossing options. If you do, and if you are using a global variable-step solver without a local solver, the system issues a warning or error when you simulate a model with Simscape™ blocks.
Settings
warning (default) | errorSpecify whether the system issues a warning or error upon simulation when zero-crossing control is globally disabled.
warningMakes the system issue a warning upon simulation if zero-crossing control is globally disabled.
errorMakes the system issue an error upon simulation if zero-crossing control is globally disabled.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No Impact |
| Traceability | No Impact |
| Efficiency | No Impact |
| Safety precaution | No Impact |
Programmatic Use
Parameter:
GlobalZcOffDiagnosticOptions |
| Type: character vector | string scalar |
Value:
'warning' | 'error'
|
Default:
'warning' |
Version History
Introduced in R2010b