How to find kp ki values by having pm and gcf in matlab ?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
transfer function
0 Kommentare
Antworten (1)
Sam Chak
am 6 Mai 2023
Hi @Basava
I guess you are not looking for the analytical formulas for and because you asked in this forum.
So, when the phase margin and the gain crossover frequency are given, you can try numerically designing something like the following example. For more info, look up the documentation of the commands used in this example.
If you find the example helpful, please consider accepting ✔ and voting 👍 on the answer. Thanks a bunch! 🙏
G = tf(1, [1 2 1]) % plant transfer function
wc = 1; % desired gain crossover frequency (rad/s)
opts = pidtuneOptions('PhaseMargin', 45, 'DesignFocus', 'reference-tracking'); % tuning options
C = pidtune(G, 'PI', wc, opts) % tuning algorithm
Gcl = feedback(C*G, 1) % closed-loop TF
margin(C*G) % check if the requirements are met
step(Gcl) % step response
0 Kommentare
Siehe auch
Kategorien
Mehr zu Classical Control Design finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!