PID controller Sample Time

The difference between the two is the error term and drives the controller gain directly.

The gains are usually constant and independent of the errors.