My system consist of set of equations. How to implement PID controller for my system ?

2 ビュー (過去 30 日間)
PUJARI MURAGA
PUJARI MURAGA 2016 年 11 月 30 日
回答済み: Arkadiy Turevskiy 2016 年 12 月 6 日
How to make it closed loop ?

回答 (1 件)

Arkadiy Turevskiy
Arkadiy Turevskiy 2016 年 12 月 6 日
In a simple case of a mass spring damper mx''+cx'+kx=F
convert system equations to a transfer function
m=1;c=1;k=1; %replace with your own values
plant=1/(m*s^2+c*s+k);
Now define a controller
C=5; %simple proportinal gain
C=pid(5,1); % PI compensator
Compute closed loop transfer function and plot step response:
CL=feedback(C*plant,1);
step(CL);
HTH.

カテゴリ

Help Center および File ExchangeClassical Control Design についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by