Number of consecutive zero crossings
Description
Specify the number of consecutive zero crossings that can occur before Simulink® software displays a warning or an error.
Category: Solver
Settings
Default:
1000
Simulink software counts the number of consecutive zero crossings that it detects. If the count exceeds the specified value, Simulink software displays either a warning or an error as specified by the Consecutive zero-crossings violation diagnostic (see Consecutive zero-crossings violation).
Simulink software defines zero crossings as consecutive if the time between events is less than a particular interval (see Time tolerance).
Tips
If your model experiences excessive zero crossings, you can increase this parameter to increase the threshold at which Simulink software triggers the Consecutive zero-crossings violation diagnostic. This may afford your model's behavior more time to recover.
Simulink software resets the counter each time it detects nonconsecutive zero crossings; therefore, decreasing the relative tolerance value may also afford your model's behavior more time to recover.
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
.
Programmatic Use
Parameter:
MaxConsecutiveZCs |
Type: character vector |
Value: any valid value |
Default:
'1000' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |