Introduction - If you have any usage issues, please Google them yourself
Programming simulation program with incremental PID control algorithm
The input is a unit step and a sinusoidal signal. The sampling time is 1ms, and the output limit of the controller is [-5,5].
The simulation curve includes the output of the system and the error curve.