Consecutive zero-crossings violation
Diagnostic action to take when zero-crossing violation occurs
Model Configuration Pane: Diagnostics
Description
The Consecutive zero-crossings violation parameter specifies the diagnostic action to take when a zero-crossing violation occurs. A zero-crossing violation occurs when the number of consecutive zero crossings detected in simulation exceeds the value specified for the Number of consecutive zero crossings parameter.
The diagnostic message includes this information:
- Current simulation time 
- Number of consecutive zero crossings counted 
- Type and name of the block where the software detected the zero crossings 
This diagnostic applies only to simulations of models that have zero-crossing detection enabled and use a variable-step solver.
Settings
error (default) | warning | none- error
- The software issues an error and terminates the simulation. 
- warning
- The software issues a warning. 
- none
- The software does not issue a diagnostic. 
Programmatic Use
| Parameter: MaxConsecutiveZCsMsg | 
| Type: string | character vector | 
| Value: "error"|"none"|"warning" | 
| Default: "error" | 
Version History
Introduced before R2006a