How can I use two PID controllers in Simulink?

조회 수: 32 (최근 30일)
Luca Repetto
Luca Repetto 2021년 4월 26일
편집: Luca Repetto 2021년 4월 27일
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.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2021년 4월 26일
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
Fangjun Jiang
Fangjun Jiang 2021년 4월 27일
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.
Luca Repetto
Luca Repetto 2021년 4월 27일
편집: Luca Repetto 2021년 4월 27일
Ok I think that I have misunderstood the text of my problem and the two PIDs are in parallel to track the state1.
What do you think that I have to do?
Thank you

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by