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)