MATLAB: Pid tuning error saying too many input arguments

pidsimulink

I am trying to tune a PID controller to a model that I have but I keep getting this error of too many input arguments I looked at one of the questions asked on the MATLAB answers https://uk.mathworks.com/matlabcentral/answers/65334-simulink-pid-tuning-error but I still don't know what the problem is here to my model

Best Answer

I tried tuning the PID controller in the 'nmp.mdl' model that you attached and I didn't get any errors. I clicked on the 'Tune' button in the PID Controller block parameters. This opened the PID Tuner app and clicking on the 'Update block' option has successfully updated the PID controller parameters without any error. Please note that you would require a valid license for Simulink Control Design if you would like to automatically tune the PID controller using this method.
Related Question