This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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

This parameter is enabled only if Zero-crossing control is set to either Use local settings or Enable all.

Command-Line Information

Parameter: MaxConsecutiveZCs
Type: character vector
Value: any valid value
Default: '1000'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics