Use automatic PID tuning to tune single-loop control systems containing PID Controller or PID Controller 2DOF blocks.
www.mathworks.com