How can I use two PID controllers in Simulink?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have designed a PID controller to track the first state plus some random noise, but I have also to design the same system with two PIDs, with the second state to be tracked. Here is a picture showing what I have done. Can you help me? Thank you in advance.
This is how I've done it with one PID.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/597460/image.png)
0 comentarios
Respuestas (1)
Fangjun Jiang
el 26 de Abr. de 2021
Your output y seems to be 2x1, but if your current model runs, then your control variable u is 1x1. You can't have two PID controllers if you have only one contro variable.
If your control variable is indeed 2x1, then have another desired output, another negative feedback, another PID controller, and then Mux the ouputs of the two PID controller and feed to the State Space block.
3 comentarios
Fangjun Jiang
el 27 de Abr. de 2021
When you have only one control variable, you can't have two PID controllers. Period.
When your Bc and D are 2x2 matrix, then you will natually have two control variables and you can have one PID controller for each.
Ver también
Categorías
Más información sobre PID Controller Tuning en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!