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

2 views (last 30 days)
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
Tommy

Accepted Answer

Arkadiy Turevskiy
Arkadiy Turevskiy on 27 Oct 2014
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.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!