<<

System identification based on Step and considering first and second order transfer function models

These notes discuss system identification based on the step and impulse response. In the following we consider linear, time-invariant systems of first and second order, as they provide reasonable approximation for the description of the dominant behavior of most linear time-invariant systems.

I. First order system

A first order system is described in frequency domain by the transfer function k Gs()= τ s +1 where the parameters k and τ are the system gain (k ) and the of the system (τ ).

The step response of this system, considering initial conditions equal with 0, is obtained as follows: a. the of the system input is 1 Us()= s b. using the relation Y(s)= H(s)Us() one obtains the Laplace transform of the output signal k 1 Ys()= τ ss+1 c. we use partial fractions expansion and then inverse Laplace transform to obtain the system response in time domain AB Ys()=+ τ ss+1 k k A=Y(s)(ττsk+1) 1 ==− and B=Y()ssk== s =− 1 s=0 τ s s =− τ s +1s=0 τ τ kkkk Ys()=−+=−+ ττs++1sss1/ Inverse Laplace transform results in 1 −t τ y(t)=−+kekut−1() 0,0t < where ut−1() denotes the step function ut−1()=  . 1,0t≥ 2 Figure 1 shows the step response of a system with the transfer function Gs()= . 31s +

1 Step Response 2

1.8

1.6 System: sys1 Time (sec): 6 Amplitude: 1.73 1.4

System: sys1 1.2 Time (sec): 2 Amplitude: 0.971 1 A mp l i t u de 0.8

0.6

0.4

0.2

0 0 2 4 6 8 10 12 14 16 18 Time (sec)

2 Figure 1. Step response of the system Gs()= 31s +

The identification procedure, i.e. finding the values of the two parameters k,τ describing the system dynamics, amounts to solving a system of two equations defined by two points on the system’s step response (t11,yt()) , (t22,yt()) .  1 −t1 y(t)=−+keτ kut() 1−11  1  −t2 τ y(t2)=−+kekut−12() Dividing the two equations, and considering that u−1(tt)=>1,0, one gets 1 y()tk− −−()tt12 1 =e τ y()tk2 − which means

11y()tk1 − ln = t2−−t12y()tkτ or y()tk− 1 . τ =−(tt21)1/ln  y()tk2−

2 This equation gives the value of the time constant of the system if y(t2),y(t1),t12,,tk are known.

In order to determine the value of k one notes that the steady state value of the step response is limy()tk= which can be easily measured from the step response graph. t→∞

Question 1: Use the graph in Fig. 1 and the relations given above to verify that the step response 2 presented in the figure is indeed the step response of a system described by Gs()= . 31s +

Notes: a. Remember also the final value theorem limy(t)=limYs(), which means that the ts→∞→0 gain of the system at zero frequency, i.e. the DC gain, is k . a b. If the step input is not of amplitude 1, say Us()= where a denotes the s amplitude of the step input, then the step response of the system is 1 −t τ y(t)=a(−+kekut−1()) . Then the steady state value of the system’s step response is limy()t= ak . In this case, in order to determine the value of the t→∞ system’s DC gain one needs to divide the measured steady state value by the amplitude of the step input. c. Let t =τ then y(τ)=k(1−ek−1)=∗0.6321 thus the system’s time constant is the time moment when the system step response reaches approximately 63% of the steady state value. d. Let t = 5τ then y(τ)=k(1−ek−5)=∗0.993 thus at t = 5τ the system step response reaches more than 99% of the steady state value. k kq/τ e. Gs()= can also be written as Gs()== where − p is the pole τ s +1 s++1/τ sp of the system.

The impulse response of this system, considering initial conditions equal with 0, is 1 k −t y(t)= eτ ut() τ −1 Measuring the value of the impulse response at positive time moments, say t1 and t2 , one can determine the time constant of the system using 1 yt() ()tt21− 1 = e τ , yt()2

3 yt()1 thus τ =−(tt21)/ln . yt()2 The time constant being known the system gain can be determined from 1 −t 3τ k=τ y(te3)/ for any t3 ≥ 0 . k Looking at the system’s impulse response one sees that at t = 0 y(0) = . τ Figure 2 shows the impulse response of the system described by the transfer function 2 Gs()= . 31s +

Impulse Response 0.7

System: sys1 0.6 Time (sec): 0 Amplitude: 0.667

0.5

System: sys1 0.4 Time (sec): 2 Amplitude: 0.343

A mp l i t u de 0.3 System: sys1 Time (sec): 4 Amplitude: 0.176 0.2

0.1

0 0 2 4 6 8 10 12 14 16 18 Time (sec)

2 Figure 2. Impulse response of the system Gs()= . 31s +

Question 2: Use the graph in Fig. 2 and the relations given above to verify that the impulse response 2 presented in the figure is indeed the impulse response of the system Gs()= . 31s +

4 II. Second order system (complex pole pair)

A second order system with no finite zeros is described in frequency domain by the transfer function kω2kkωω22 Hs()=0n=≡00nn 2222 s+22αs+ωnss++ζωωnn∆()s The numerator is chosen to scale the transfer function so that the DC gain (which can be calculated by limHs()) is equal to k0 . s→0 The denominator is the Characteristic polynomial which can be written in several canonical forms, including 2 2 2 2 ∆(s) = s + 2αs +ω n = s + 2ζωn s +ω n . One may write 2 2 2 2 ∆(s) = s + 2αs +ω n = (s +α) + β where 2 2 2 β +α = ω n . 2 2 Thus if α < ω n , the polynomial ∆(s) describes a complex pair of poles at s = −α ± jβ . Figure 3 shows the location of the two poles in the s-plane. The real part of the poles is −α and the imaginary part is jβ. The norm of the vector from the origin to the pole is ωn, which is known as the natural frequency.

Figure 3. Location of the complex poles of a second order system in the s-plane

Notice that the system dynamics is completely described by the triplets (k0,αβ,) or

(k0 ,ζω,)n . To link the two forms of the characteristic polynomial we define the damping ratio as α ζ = , ω n which defines it as

5 α ζ = cosθ = −cosϕ = . ω n For complex poles in the left-half plane one has 0 < ζ <1. If 0 > ζ > −1 then one has a complex pair in the right-half plane (e.g. unstable complex pair). Note that one may write 2 2 2 β = ω n −α = ω n 1−ζ .

The impulse response of the system with transfer function kω2 Hs()= 0 n ()s2++αβ22

is given by ω 2 y(t)= kn e−αt sinβtut(), 01β −

which is plotted for 0 < ζ <1 in the figure. This is known as the underdamped case. The figure clearly shows the meaning in the time domain of the real part -α of the poles, which provides the exponential decay term. Having in mind the standard form for sinusoids sin 2π t , the period of the oscillation is given by T 2π T = . β The variable β is known as the oscillation frequency.

Figure 4. Sketch of the impulse response of a second order system with complex poles

If ζ = 0 then α = 0, β = ω n and the poles are at s = ± jβ on the imaginary axis. This is

known as the undamped case. If ζ =1 then β = 0,α = ω n and the poles are on the real axis, both at s = −α . In this overdamped case, the impulse response has the form te−αt . If ζ > 1 then there are two real poles and we can split the quadratic factor 2 2 ∆(s) = s + 2αs + ω n into two real linear factors.

6 In order to determine the parameters of the system, one can simply determine the period 2π of oscillation T and subsequently use T = to determine β . β Then by measuring the values of the impulse response at two moments in time when sin1βt = one has 22 ωω−−ααtt y(t)==knne12,y()tke. 10ββ20 yt() α()tt− Dividing the two one gets 1 = e 21 and from here yt()2

yt()1 α=−ln/()tt21. yt()2 2 ω −αt Knowing the values αβ, and y(t)= kn et3 sin β one can also determine the 303β

system DC gain k0 .

The step response of this second order system is given by inverse transforming 1 k ω2 Y(s)=H(s)U(s)==Hs() 0 n s ss[(2++αβ)]22 to obtain α ω y(t)=k(1−e−−ααtt[cosβt+sinβt])u(t)=k(1−+nesin(βθt))ut() 0ββ−−101 where the angle θ = arctan β is shown in Figure 3. α The step response of a underdamped second order system is presented in Figure 5.

Figure 5. Sketch of the step response of a second order system with complex poles

The steady state value of the system’s step response is yss ==limy()tk0 . t→∞

7 An important quantity for characterizing the performance of systems is the percent (POV) in the step response. This is defined as yy− POV =×max ss 100% yss where ymax is the maximum value of the step response and yss is its steady-state value.

The , tr, is the time required for the step response to rise from 0.1 to 0.9 of its steady-state value. The settling time ts is the time required for the signal to effectively reach its steady-state value.

Note that for a first order system one has tr = 2.2τ and ts = 5τ (some take t s = 4τ ). For the underdamped pole pair, the time constant is τ = 1 and one may use t = 5τ to α s calculate the settling time. In this case however the signal rises faster and one may 2.16ζ + 0.6 approximate, for 0.3 ≤ ζ ≤ 0.8, using tr = . ω n The percent overshoot is a function of damping ratio 2 POV = 100e −π ζ / 1−ζ and conversely 1/ 2  ln 2 (POV )  ζ =  100  . ln 2 POV + π 2   ( 100) 

To determine the parameters of the system, from the system’s step response, one can simply calculate the POV and then determine the damping factor ζ . Then by measuring

the settling time one can use t s = 5τ to determine the time constant of the system and then α . Measuring the steady state value of the step response one gets the system DC gain ky0 = ss . a Note that in the case in which the system input is not a unit step, e.g. Us()= , then s y y= ak and thus k = ss . ss 0 0 a

1 In Figure 6 are compared the step responses of the two systems Hs()= and 1 0.41s + 6 Hs2()= which have the same time constant τ = 0.4 . (Notice the difference.) ss2 ++56

8 Step Response 1

0.9

0.8

0.7

0.6

0.5 A mp l i t u de 0.4

0.3

0.2 second order system first order system 0.1

0 0 0.5 1 1.5 2 2.5 3 3.5 Time (sec)

Figure 6. Step response comparison of a first order system and a second order, overdamped, system. Both systems have the same time constant thus the same settling time.

9 You can consider solving some of the following questions.

1. The following figures present the step responses (to a unit step) of two first order systems. Determine the transfer functions of the two systems. To help with the calculations, some points were given explicitly on the graph.

Step Response 2 System: tff 1.8 Time (sec): 25.1 System: tff Amplitude: 1.99 1.6 Time (sec): 6.07 Amplitude: 1.41 1.4

1.2

1 A mp l i t ude 0.8

0.6

0.4

0.2

0 0 5 10 15 20 25 30 Time (sec)

Figure 1. Step response of a system

Step Response 0.4

0.35 System: x Time (sec): 0.5 System: x Amplitude: 0.367 0.3 Time (sec): 0.2 Amplitude: 0.253 0.25

0.2 A mp l i t ude 0.15

0.1

0.05

0 0 0.2 0.4 0.6 0.8 1 1.2 Time (sec)

Figure 2. Step response of a system

10 2. The following figure presents the step responses (to a unit step) of a system. Determine the model transfer function of the system. To help with the calculations, some points were given explicitly on the graph.

Step Response 1.6

System: x 1.4 Time (sec): 0.32 Amplitude: 1.53 System: x 1.2 Time (sec): 1.59 Amplitude: 1.04

1 System: x System: x Time (sec): 2.5 0.8 Time (sec): 1.35 Amplitude: 0.994 Amplitude: 0.95 A mp l i t u de System: x 0.6 Time (sec): 0.624 Amplitude: 0.717 0.4

0.2

0 0 0.5 1 1.5 2 2.5 3 Time (sec)

Figure 3. Step response of a system

Consider that the steady state is obtained when the signal enters in the ±1% of the steady state value (this is related with the value of the settling time).

11

3. The following figure presents the impulse response of a second order system. Determine the model transfer function of the system. To help with the calculations, some points were given explicitly on the graph.

Impulse Response 8

System: syst Time (sec): 0.155 6 Amplitude: 7.68

4 System: syst System: syst Time (sec): 0.865 Time (sec): 2.26 2 Amplitude: 3.83 Amplitude: 0.947

A mp l i t u de 0 System: syst Time (sec): 4.19 -2 System: syst Amplitude: 0.00273 Time (sec): 1.93 System: syst Amplitude: -1.32 -4 Time (sec): 0.51 Amplitude: -5.43

-6 0 1 2 3 4 5 6 Time (sec)

Figure 4. Impulse response of a system

12