How to create this equation in simulink?

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)

1 Kommentar

Sam Chak
Sam Chak am 9 Apr. 2024
Have you tried using the Discrete PID Controller block to accomplish part of the equation in ?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Aquatris
Aquatris am 9 Apr. 2024
Bearbeitet: Aquatris am 9 Apr. 2024

0 Stimmen

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 am 16 Jul. 2024

0 Stimmen

Your equation would look like this.

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023a

Gefragt:

am 9 Apr. 2024

Beantwortet:

am 16 Jul. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by