Hi, I am running the following code for a unit step response in a closed loop transfer function on Python using the control library in python:
import control as c
kc = 0.9*3/23
d = c.pade(0.3)
Gp = c.tf([1],[1,1])*c.tf(d[0],d[1])
ti = 1
Gc = kc*c.tf([ti, 1], [ti, 0])
sys1 = Gc*Gp/(1+Gc*Gp)
data1 = c.step_info(sys1)
print(data1)
And the output I get:
{'RiseTime': nan, 'SettlingTime': nan, 'SettlingMin': nan, 'SettlingMax': nan, 'Overshoot': nan, 'Undershoot': nan, 'Peak': inf, 'PeakTime': inf, 'SteadyStateValue': nan}
Which isn't correct, as from plotting the step response the output profile is stable, and it parameters such as RiseTime and SettlingTime should be defined. I tried doing it in Matlab and I got specific answers for it. So why is this nan in Python?
Thanks for your time!
import control as c
kc = 0.9*3/23
d = c.pade(0.3)
Gp = c.tf([1],[1,1])*c.tf(d[0],d[1])
ti = 1
Gc = kc*c.tf([ti, 1], [ti, 0])
sys1 = Gc*Gp/(1+Gc*Gp)
data1 = c.step_info(sys1)
print(data1)
And the output I get:
{'RiseTime': nan, 'SettlingTime': nan, 'SettlingMin': nan, 'SettlingMax': nan, 'Overshoot': nan, 'Undershoot': nan, 'Peak': inf, 'PeakTime': inf, 'SteadyStateValue': nan}
Which isn't correct, as from plotting the step response the output profile is stable, and it parameters such as RiseTime and SettlingTime should be defined. I tried doing it in Matlab and I got specific answers for it. So why is this nan in Python?
Thanks for your time!