watching PID controller output value at perticular point

2 次查看(过去 30 天)
I am implementing PID controller on the system 1/s......
My question is when I write the command pidtool and get the new window in that there are list of paramenters..... I want to see the output of controller at perticular point i.e. Pout=Kp*e(t)+P0....
other thing is if my system is 1/s then as in step response it becomes 1/s^2 and then Laplace inverse will give output equation.... in case of only P it would be Kp*e(t)*L^-1(1/s).... is it??

回答(1 个)

Sam Chak
Sam Chak 2023-9-14
@rathod ujjval rameshbhai, Since no performance requirements are specified, the pidtune() command can be used to automatically search for the control gains that stabilize the unstable open-loop system.
% Plant (unstable open loop system)
Gp = tf(1, [1 0])
Gp = 1 - s Continuous-time transfer function.
% Compensator
% wc = 1;
% [Gc, info] = pidtune(Gp, 'pid', wc)
[Gc, info] = pidtune(Gp, 'pid')
Gc = 1 Kp + Ki * --- s with Kp = 0.981, Ki = 0.193 Continuous-time PI controller in parallel form.
info = struct with fields:
Stable: 1 CrossoverFrequency: 1 PhaseMargin: 78.8791
% Closed-loop feedback system
Gcl = feedback(series(Gc, Gp), 1)
Gcl = 0.9812 s + 0.1929 ----------------------- s^2 + 0.9812 s + 0.1929 Continuous-time transfer function.
% step response
step(Gcl), grid on

类别

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