P-Glied
Inhalt
P-Glied¶
Proportional-Glied (P-Glied)¶
Für das Proportional–Glied lautet die (Diffferenzial)gleichung
\[y(t)=V_p u(t)\]
und die dazugehörige Übertragungsfunktion ergibt sich zu
\[G(s) = V_p .\]
Diagramme in Control¶
import control
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
s = control.TransferFunction.s
Vp = 10
Gs = control.minreal(Vp*s/s)
# G = control.TransferFunction([Vp],[1])
Gs
1 states have been removed from the model
\[\frac{10}{1}\]
def check_proper_tf(Gs):
"""check if transferfunction is proper"""
return len(Gs.num[0][0]) <= len(Gs.den[0][0])
check_proper_tf(Gs)
True
(tout, yout) = control.step_response(Gs)
plt.plot(tout,yout)
plt.title("Sprung Antwort")
plt.ylabel("y")
plt.xlabel("t (s)")
Text(0.5, 0, 't (s)')
fig2 = plt.figure()
(mag, phase_rad, w) = control.bode_plot(Gs)
# does not work
# res_nyquist = control.nyquist_plot(Gs)
poles, zeros = control.pzmap(Gs, plot=True)