The PID Controller block in the Simulink Library (Simulink Extras -> Additional Linear) has the integral and derivative gain blocks located before the integrator and derivative blocks respectively. This has two disadvantages when I am tuning the parameters while a simulation is running.
If I change the integral gain at any time instant, the integrator integrates from its state at the time instant the change is made. This produces unexpected behavior if I set the Integral gain to zero; the integrator continues to output the last value it had, which is then summed into the PID block’s output.
If I change the derivative gain, the derivative sees its input change discontinuously, which can cause the derivative block to generate a diagnostic message.
Best Answer