If you implement your SMC scheme using the sign block (Fig. 1) in Simulink, the simulation may terminate and you will receive the 1000 consecutive zero crossings error message (Fig. 2). To solve this issue, you may switch to the Adaptive zero-crossing detection algorithm (Fig. 3) in the Configuration Parameters Dialog Box, or disable the zero-crossing detection in the sign block (Fig. 4). Rerun the simulation and check the Phase portrait (Fig. 5), the Measured output (Fig. 6), and the Control input (Fig. 7) to verify if the SMC is properly carried out.
If you implement your SMC scheme using the sign block (Fig. 1) in Simulink, the simulation may terminate and you will receive the 1000 consecutive zero crossings error message (Fig. 2). To solve this issue, you may switch to the Adaptive zero-crossing detection algorithm (Fig. 3) in the Configuration Parameters Dialog Box, or disable the zero-crossing detection in the sign block (Fig. 4). Rerun the simulation and check the Phase portrait (Fig. 5), the Measured output (Fig. 6), and the Control input (Fig. 7) to verify if the SMC is properly carried out.