Consecutive zero-crossings violation
Description
Select the diagnostic action to take when Simulink®software detects that the number of consecutive zero crossings exceeds the specified maximum.
Category:Diagnostics
Settings
Default:error
-
none
-
Simulink software takes no action.
-
warning
-
Simulink software displays a warning.
-
error
-
Simulink software terminates the simulation and displays an error message.
Tips
If you select
warning
orerror
, Simulink software reports the current simulation time, the number of consecutive zero crossings counted, and the type and name of the block in which Simulink software detected the zero crossings.For more information, seePreventing Excessive Zero Crossings.
Dependency
This diagnostic applies only when you are using a variable-step solver and the zero-crossing control is set to eitherEnable all
orUse local settings
.
Command-Line Information
Parameter:MaxConsecutiveZCsMsg |
Value:'none' |'warning' |
Default:'error' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | warning orerror |