PID Command in MATLAB

1 回表示 (過去 30 日間)
Muhammad Adeel Ahsan Awan
Muhammad Adeel Ahsan Awan 2020 年 6 月 3 日
I am having problem in solving Simulink Model in MATLAB.
I tried to solved this using following code
s=tf('s')
Phi=193.4/(s^2)
K_Phi=pid(0.3,0,0.2,100)
Phi_1=feedback(K_Phi*Phi,1,-1)
step(Phi_1)
I also tried on more method
K_Phi=pid(0.3,0,0.2,100)
Phi_1=feedback(Phi,1,-1)
Phi_2=Phi_1*K_Phi
step(Phi_2)
But, both ways aren't working kindly help me in solving this.

採用された回答

Muhammad Adeel Ahsan Awan
Muhammad Adeel Ahsan Awan 2020 年 6 月 5 日
Well , i got the answer.
s=tf('s')
Phi=193.4/(s^2)
K_Phi=pid(0.3,0,0.2)
Phi_1=feedback(K_Phi*Phi,1)
step(Phi_
The Problem was using this PID command.

その他の回答 (1 件)

madhan ravi
madhan ravi 2020 年 6 月 3 日
I think you should use lsim(...) because there’s a step input to the model.
  1 件のコメント
Muhammad Adeel Ahsan Awan
Muhammad Adeel Ahsan Awan 2020 年 6 月 3 日
Like how?
I don't understant what do you mean.

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

カテゴリ

Help Center および File ExchangePID Controller Tuning についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by