XML
Laplace.T Root-locus Transient response Frecuency response
       
 
 
 

4 Program 5.6 Ogata 4edition (rise time, peak time, maximum overshoot, settling time)



Let us calculate the rise time, peak time, maximum overshoot and settling time by Scilab.

\begin{displaymath}G(s)=\frac{25}{(s^{2}+6 \cdot s+25)}\end{displaymath}



Program in Scilab:
num=poly([25 0 0],'s','coeff');
den=poly([25 6 1],'s','coeff');
t=0:0.005:5;
g=syslin('c',num/den);
gs=csim('step',t,g);
r=1;

while gs(r)<1.0001;
r=r+1;
end;

risetime=(r-1)*0.005;
[gsmax,rp]=max(gs);
peaktime=(rp-1)*0.005;
Maxshoot=gsmax-1;
rmax=5/0.005;
k=rmax+1;

while gs(k)>0.98 & gs(k)<1.02;
k=k-1;
end;

settlingtime=(k-1)*0.005;

Maxshoot
risetime
peaktime
settlingtime
Result
-->Maxshoot
 Maxshoot  =
 
    0.0947800  
 
-->risetime
 risetime  =
 
    0.555  
 
-->peaktime
 peaktime  =
 
    0.785  
 
-->settlingtime
 settlingtime  =
 
    1.185