PID Controller in Simulink question

10 vues (au cours des 30 derniers jours)
Manikanta Aditya
Manikanta Aditya le 22 Juil 2023
Commenté : Manikanta Aditya le 23 Juil 2023
Can i apply a series of values as Kp Ki and Kd values instead of just one single value. Like lets say it starts from 1,2,3.. and after the last value it stays at that value till end of simulation.

Réponse acceptée

Paul le 22 Juil 2023
Set the 'Source' parameter to 'external' as in doc for PID block. The you can calculate the gains external to the block as functions of time however is needed and feed the gain values into the block as inputs.
  8 commentaires
Manikanta Aditya
Manikanta Aditya le 23 Juil 2023
Thanks @Sam Chak!, It was helpful

Connectez-vous pour commenter.

Plus de réponses (1)

Sam Chak
Sam Chak le 23 Juil 2023
If you set the PID controller block to have external inputs for the control gains as advised by @Paul, then the configuration should look like the following block diagram. However, I'm unsure how you intend to set up the filtered derivative, since yours has only Kd.
  1 commentaire
Manikanta Aditya
Manikanta Aditya le 23 Juil 2023
Got it, thanks @Sam Chak

Connectez-vous pour commenter.




Community Treasure Hunt

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

Start Hunting!

Translated by