File Exchange

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 (2020). Automated Ziegler Nicholas PID Tuning (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (14)

Dot indexing is not supported for variables of
this type.

Error in PIDExperiment>gettf_Callback (line

Error in gui_mainfcn (line 95)

Error in PIDExperiment (line 16)
gui_mainfcn(gui_State, varargin{:});

Error in>@(hObject,eventdata)PIDExperiment('gettf_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

Hasan Sener

good job

rue obeid

There's an error

i am getting an error in the code whenever i try to run it is it just me or anyone had it also

Prem Pun


- Added video demonstration link on Youtube

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