how to apply PID controller on dynamic system in state space form? example please

dynamic equation MX'' + CX' + KX=F; In state space form x'(t) = Ax(t) + Bu(t); y(t) = Cx(t) + Du(t); PID gain u=Kp.e(t) + Ki. integration of e(t) + Kd. differentiation of e(t); where e(t)=output -input;

回答 (2 件)

Sebastian Castro
Sebastian Castro 2015 年 5 月 19 日
編集済み: Sebastian Castro 2015 年 5 月 19 日
You can create a PID controller using the pid function:
Then, you can use feedback function to connect to your system:
C = pid(Kp,Ki);
G = ss(A,B,C,D);
closedLoop = feedback(G*C,1);
- Sebastian

2 件のコメント

MOHAMMAD AMIR
MOHAMMAD AMIR 2015 年 5 月 19 日
Thank you sir.
MOHAMMAD AMIR
MOHAMMAD AMIR 2015 年 8 月 9 日
sir how this program will change if x'(t) = Ax(t) + B*u(t)+Bphi*Uphi(t); y(t) = Cx(t) + Du(t); PID controller. In short how to use two inputs in PID controller u(t) and Uphi(t), to get x response of the system. Please help

サインインしてコメントする。

Ali ÇEtin
Ali ÇEtin 2019 年 5 月 16 日

0 投票

Error using DynamicSystem/ss (line 82)
Invalid syntax for the "ss" command. Type "help ss" for more information.
Error in Passivestatespace (line 15)
SYS = ss(A,B,C,D,Ts);
Give me this error.Could you help me ?

1 件のコメント

Vehzan Rustomji
Vehzan Rustomji 2019 年 12 月 4 日
Could you elaborate on this? Show how you implemented the code that resulted in this error.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGet Started with Control System Toolbox についてさらに検索

質問済み:

2015 年 5 月 19 日

コメント済み:

2019 年 12 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by