How to create this equation in simulink?

2 次查看(过去 30 天)
Hello, this equation is the discrete time PI controller transfer function. How can I create this equation in simulink? Please, any idea.
u(t) = u(t-1) + Kp [e(t) - e(t-1)] + Kp (Ts/Ti) e(t)

回答(2 个)

Aquatris
Aquatris 2024-4-9
编辑:Aquatris 2024-4-9
you can use 'delay' block to make the u(t) = u(t-1) part of the equation.
you can use another 'delay' block to make the e(t) = e(t-1) part of the equation.
Kp, Ts and Ti can be done via constants with 'divide' blocks or they can be 'gain' blocks themselves.
Then you would need some 'sum' blocks.
The rest is just connecting them appropriatly.

Finn
Finn 2024-7-16
Your equation would look like this.

类别

Help CenterFile Exchange 中查找有关 Classical Control Design 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by