PID controller without using Simulink

16 次查看(过去 30 天)
Hello everyone!
Is it possible to create a PID controller on Matlab without using Simulink?
I'd like to set up a PID controller in a throttle valve present in a water system, but without using Simulink.
Can anybody help me, please?
Thank you
Ful

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2021-4-26
"doc pid" or look at the examples in "doc connect"
  2 个评论
Ful0
Ful0 2021-4-26
编辑:Ful0 2021-4-26
Thank you for your suggestion, but I didn't find any example referred only to the use on Matlab and NOT on Simulink.
Fangjun Jiang
Fangjun Jiang 2021-4-26
Run this. It's all in MATLAB, no Simulink.
C = pid(2,1);
C.u = 'e';
C.y = 'u';
G = zpk([],[-1,-1],1);
G.u = 'u';
G.y = 'y';
Sum = sumblk('e = r - y');
T = connect(G,C,Sum,'r','y');
step(T);

请先登录,再进行评论。

类别

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