Problem A9.10 OGATA 4ed (PID compensator)
jueves, 02 de julio de 2009 13:53
Let’s do the programming by Scilab of compensator that the system verifies the following values: static velocity constant error Kv=4, phase margin 50 and gain margin > 10dB.

Let us calculate a lag-lead compensator that satisfies the following requirements static velocity constant error Kv=10, phase margin 50 and gain margin > 10dB
Let us calculate a compensator that satisfies the following requirements of static velocity error constant Kv=20, phase margin 50 and gain margin >10dB
Let’s draw the Nyquist plot of G(jw),G1(jw) and Gc(jw) *G1(jw) by Scilab (horner)
Let’s insert a compensator for the open-loop system is tangent to circle M=3dB in w=3rad/seg.
We want the phase margin equal to 60. Let’s calculate K.
Let’s calculate the lag compensator. Checks and calculations by Scilab (bode, nyquist, g_margin, p_margin, tf2ss, logspace, dbphi).
Let’s draw the Bode plot, polar plot and output by Scilab (bode, nyquist, m_circle).
Let’s draw the Bode plot and the G(jw) locus on Nichols chart by Scilab (bode, chart, black).
Let’s draw Nyquist plot for the values of K=1,7.5,20 by Scilab (nyquist)
Let’s draw the polar plot of positive and negative feedback transfer functions by Scilab (Nyquist)
Let’s draw on polar plot the points of frequency w=0.2,0.3,0.5,1,2,6,10,20 and calculate the phase and gain of these points by Scilab.(repfreq, nyquist real, imag, string, dbphi)
Let’s plot Nyquist plot by Scilab (nyquist, syslin).
Let’s show that the polar plot is a semicircle.
Let’s plot Bode plot of the feedback close-loop system for the gain values K=1,10,20 by Scilab (bode)
Let’s calculate Bode plot, resonant peak magnitude, resonant peak frequency, bandwidth by Scilab (tf2ss, repfreq, dbphi, max)
Let’s calculate the phase and gain margins. Checks and Bode plot by Scilab
(g_margin, p_margin, bode, show_margins)
Let’s calculate the phase and gain margins when K=10 and K=100. Calculations and checks by Scilab (g_margin, p_margin)
Let’s plot Nyquist plot by Scilab (nyquist, syslin).
Let’s plot Nyquist plot by Scilab (nyquist, syslin).
Let’s plot Bode plot by Scilab (Bode, logspace).
Let’s plot Bode plot by Scilab (Bode, syslin).
Advertisement
Me gusta:
Sé el primero en decir que te gusta esta post.
~ por cpbasur en julio 5, 2009.
Escrito en scilab, regulacion, control, electronica
Etiquetas: bandwidth, black, bode, Bode plot, chart, dbphi, frequency response, gain margin, g_margin, horne, lag compensator, lag-lead, lead compensator, logspace, m_circle, Nichols chart, nyquist, Nyquist plot, phase margin, p_margin, repfreq, resonant peak frequency, resonant peak magnitude, scilab, show_margins, static velocity constant error, syslin, tf2ss
Gostaria dos códigos de cada gráfico,
pois é uma boa demostração de que o scilab pode ser usado no lugar do matlab.
se vas a os links que hai na paxina podes velos