PI Controller based on Code by razman.ayop | Sep 18, 2019 | Research Guidance The PI controller with anti windup (clamping) is implemented using code. Link: https://www.mathworks.com/matlabcentral/fileexchange/67523-pi-controller-based-on-code?s_tid=prof_contriblnk When the PI controller is implemented into hardware, the conventional PI controller or the Integrator block in Simulink cannot be used. This code represent these block in the form of code so that it can be transfer to the hardware.