Learn how to do PID tuning and automatically tune PID controller gains with MATLAB and Simulink.
www.mathworks.com