How to transmit parameters to PID controller in simulink

조회 수: 2 (최근 30일)
Renata Pan
Renata Pan 2015년 9월 22일
편집: Renata Pan 2015년 9월 24일
My PID parameter value Kp, Ki, Kd has to be calculated through other port in my simulink graph, but I don't know how to achieve this.
I saw this picture in Mathworks:
And I think it may work, but I don't know how to set the PID controller in libraries becomes like this. Thank you for taking time to read my question.

채택된 답변

Sebastian Castro
Sebastian Castro 2015년 9월 22일
Configuring the PID Controller block in this way is new to R2015a, so if you have an earlier version you won't be able to do this. If you are on R2015a or R2015b, there should be a "Source" menu in the block dialog which you can change to external.
If you're on an earlier version, you can still implement this yourself. Right-click the PID Controller block and select "Mask > Look Under Mask". This will show you how the block is implemented, so you can replicate that diagram and replace all the Gain blocks with Product blocks, one of the inputs being a port to an external output.
- Sebastian
  댓글 수: 1
Renata Pan
Renata Pan 2015년 9월 24일
편집: Renata Pan 2015년 9월 24일
Thanks, Sebastian. Very clear and helpful.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by