Number of consecutive zero crossings
Threshold for issuing diagnostic due to consecutive zero crossings
Model Configuration Pane: Solver
Description
The Number of consecutive zero crossings parameter specifies the threshold for issuing a diagnostic as a result of too many consecutive zero crossings. You can specify whether the diagnostic is a warning or an error using the Consecutive zero-crossings violation parameter. The counter resets when the simulation progresses without detecting another zero crossing long enough for the next zero crossing to be considered nonconsecutive. To specify how close zero crossings must occur to be considered consecutive, use the Time tolerance parameter.
Dependencies
To enable this parameter, set the solver Type to Variable-step
and set Zero-crossing control to either Use local settings
or Enable all
.
Settings
1000
(default) | positive scalar integerIf your model experiences excessive zero crossings, you can increase this parameter value to increase the threshold at which the software issues the Consecutive zero-crossings violation diagnostic. Allowing more consecutive zero crossings can give the model behavior more time to recover.
Programmatic Use
Parameter: MaxConsecutiveZCs |
Type: string | character vector |
Value: positive scalar integer |
Default:
"1000" |
Version History
Introduced before R2006a