MATLAB Answers


Is there a way to automatic update the P and I gains of PI controller block in simulink

Asked by Tommy
on 22 Oct 2014
Latest activity Commented on by Tommy
on 28 Oct 2014
Hi everyone
I have a question regarding to PI controller block in Simulink.
My question is that whether there is a way to update the 'P' Gain and the 'I' Gain automatically of the PI controller block in simulink. I do not there is a way to automatically tune the P and I gains by clicking the 'Tune' button in the PI controller dialog. However, I want to update the PI controller parameters during the simulation.
Is there a way that I can create two input signal path for the parameters (other than the controller input signal) on the PI controller block so that I can run an algorithm which updates or tunes the PI parameters without stopping the simulation.
Please advice me with any possible solution.
Thank you very much


Sign in to comment.

1 Answer

Answer by Arkadiy Turevskiy on 27 Oct 2014
 Accepted Answer

Not currently. You can choose all the options in the block that you want and then look under block masj to see how it is implemented. Copy that to create your own implementation of PID Controller block and make P and I gains as i externally supplied signals, not constants.

  1 Comment

Hi Arkadiy
Thank you for your help and your answer.
I will try it out

Sign in to comment.