image thumbnail

Automated Ziegler Nicholas PID Tuning

version (19.8 KB) by Waleed El-Badry
GUI for easily finding P,PI and PID gains using Ziegler Nicholas


Updated 15 Sep 2014

View License

The submitted code is aimed to provide an easy tool to find the gain parameters of P,PI and PID using Ziegler Nicholas by providing the numerator and denominator coefficients of the plant mathematical model in Laplace domain. It determines the Critical Gain Kc and Ultimate Period Pu from Nyquist plot and hence calculating gain values for P, PI and PID. Thereafter plotting the closed loop responses of P,PI and PID calculated values. The period of plotting is also adjustable.
This GUI is part of a course conducted at Mechatronics Dept., Misr University for Science and Technology.

Here is a video demonstrating the operation:

Cite As

Waleed El-Badry (2021). Automated Ziegler Nicholas PID Tuning (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!