How can I get "simple PID closed-loop controller" code for Matlab function for applying in simulink ?

20 ビュー (過去 30 日間)
I want to build a modified PID closed loop controller, so I need a simple PID closed-loop code with only one feedback and one reference to applying in matlab function in simulink, I will aprriate your helps, Thanks ...

回答 (1 件)

Sam Chak
Sam Chak 2023 年 9 月 9 日
@Rawaz Aziz, From the description of the problem, it seemed that you want a modified closed-loop controller like this:
% pid controller
Gc = pid(1, 1, 1, 1)
Gc = 1 s Kp + Ki * --- + Kd * -------- s Tf*s+1 with Kp = 1, Ki = 1, Kd = 1, Tf = 1 Continuous-time PIDF controller in parallel form.
% modified pid closed-loop controller with 1 feedback
Gcl = feedback(Gc, 1)
Gcl = 2 s^2 + 2 s + 1 --------------- 3 s^2 + 3 s + 1 Continuous-time transfer function.
% response
step(Gcl, 20), grid on

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by