Number of consecutive zero crossings
Specify the number of consecutive zero crossings that can occur before Simulink® software displays a warning or an error.
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).
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.
This parameter is enabled only if Zero-crossing control
is set to either
Use local settings or
|Type: character vector|
|Value: any valid value|
|Safety precaution||No impact|