Problem with pidtune function
For the following code I keep getting just an integral element to my controller even though I am specifying PID. I need PID to get the response I’m looking for but unsure of what I’m doing wrong. tfp4 comes from a state space which I am sure is correct and isn’t causing any errors that should effect my response.
[C,info] = pidtune(tfp4, ‘PID’)
tuned = feedback(C*tfp4, 1);
t = linspace(0, 100, 1000);
u = 3*pi/180*heaviside(t);
[y42, t42] = lsim(tuned, u, t);
y42 = y42*180/pi;
figure()
plot(t42, y42)For the following code I keep getting just an integral element to my controller even though I am specifying PID. I need PID to get the response I’m looking for but unsure of what I’m doing wrong. tfp4 comes from a state space which I am sure is correct and isn’t causing any errors that should effect my response.
[C,info] = pidtune(tfp4, ‘PID’)
tuned = feedback(C*tfp4, 1);
t = linspace(0, 100, 1000);
u = 3*pi/180*heaviside(t);
[y42, t42] = lsim(tuned, u, t);
y42 = y42*180/pi;
figure()
plot(t42, y42) For the following code I keep getting just an integral element to my controller even though I am specifying PID. I need PID to get the response I’m looking for but unsure of what I’m doing wrong. tfp4 comes from a state space which I am sure is correct and isn’t causing any errors that should effect my response.
[C,info] = pidtune(tfp4, ‘PID’)
tuned = feedback(C*tfp4, 1);
t = linspace(0, 100, 1000);
u = 3*pi/180*heaviside(t);
[y42, t42] = lsim(tuned, u, t);
y42 = y42*180/pi;
figure()
plot(t42, y42) control, pid controller MATLAB Answers — New Questions