















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Quiz; Professor: Chen; Class: LABORATORY; Subject: Electrical & Computer Engr; University: Utah State University; Term: Unknown 2001;
Typology: Quizzes
1 / 23
This page cannot be seen from the preview
Don't miss anything!
















Example 1:
A first order discrete linear system is defined by the following difference equation-
y ( n )− ay ( n − 1 )= u ( n )
Find the impulse response of the system. Assume initial rest condition.
Solution:
The impulse response is the output, g(n) , of a system when the input is a unit impulse.
n
n un δ n
Assuming initial rest condition,
g ( n )= 0 , n < 0
Output for samples n>=0,
g ( 0 )= ag (− 1 )+ δ( 0 )= 0 + 1 = 1
2 2
n n
Example 2:
Consider the same dynamic system given in example 1 with a= 0.8 , find the output (upto 5
samples) of the system when the input is unit step using,
(i) the method shown in example 1.
(ii) convolution with impulse response.
∑
∞
=
0
k
yn gkun k
Assume initial rest condition.
Solution:
(i)
n
n un
y ( n )= 0. 8 y ( n − 1 )+ u ( n )
Assuming initial rest condition,
y ( n )= 0 , n < 0
The output samples for n= 0, 1, 2, 3, 4,
y ( 0 )= 0. 1 y (− 1 )+ u ( 0 )= 0 + 1 = 1
y ( 1 )= 0. 1 y ( 0 )+ u ( 1 )= 0. 1 + 1 = 1. 1
y ( 2 )= 0. 1 y ( 1 )+ u ( 2 )= 0. 1 × 1. 1 + 1 = 1. 11
y ( 3 )= 0. 1 y ( 2 )+ u ( 3 )= 0. 1 × 1. 11 + 1 = 1. 111
y ( 4 )= 0. 1 y ( 3 )+ u ( 4 )= 0. 1 × 1. 111 + 1 = 1. 1111
(ii)
Impulse response of the system is,
n n g ( n )= a =( 0. 1 )
For n=0,1,2,3,
g ( 0 )= 1 , g ( 1 )= 0. 1 , g ( 2 )= 0. 01 , g ( 3 )= 0. 001 , g ( 4 )= 0. 0001
Output of the system is,
∞
=
4
0 0
k k
yn gkun k gkun k
y ( 0 )= g ( 0 ) u ( 0 )+ g ( 1 ) u (− 1 )+ g ( 2 ) u (− 2 )+ g ( 3 ) u (− 3 )+ g ( 4 ) u (− 4 )= 1 + 0 + 0 + 0 + 0 = 1
y ( 1 )= g ( 0 ) u ( 1 )+ g ( 1 ) u ( 0 )+ g ( 2 ) u (− 1 )+ g ( 3 ) u (− 2 )+ g ( 4 ) u (− 3 )= 1 + 0. 1 + 0 + 0 + 0 = 1. 1
y ( 2 )= g ( 0 ) u ( 2 )+ g ( 1 ) u ( 1 )+ g ( 2 ) u ( 0 )+ g ( 3 ) u (− 1 )+ g ( 4 ) u (− 2 )= 1 + 0. 1 + 0. 01 + 0 + 0 = 1. 11
y ( 3 )= g ( 0 ) u ( 3 )+ g ( 1 ) u ( 2 )+ g ( 2 ) u ( 1 )+ g ( 3 ) u ( 0 )+ g ( 4 ) u (− 1 )= 1 + 0. 1 + 0. 01 + 0. 001 + 0 = 1. 111
y ( 4 )= g ( 0 ) u ( 4 )+ g ( 1 ) u ( 3 )+ g ( 2 ) u ( 2 )+ g ( 3 ) u ( 1 )+ g ( 4 ) u ( 0 )= 1 + 0. 1 + 0. 01 + 0. 001 + 0. 0001 = 1. 1111
The response of the same system was sampled at an interval of 10 msec (shown above).
Steady state output is 1.2. The data for first 14 samples are summarized in the table below.
Identify the system's transfer function and compare the result with the one obtained in the
previous problem.
Time
(msec)
0 10 20 30 40 50 60 70 80 90 100 110 120 130
y 0 .195 .615 1.045 1.351 1.491 1.488 1.400 1.287 1.192 1.137 1.123 1.373 1.
Question 4
The difference equation describing a system is given by:
y ( n )= 1. 8 y ( n − 1 )− 0. 85 y ( n − 2 )+ u ( n − 2 )
Find the transfer function of this system. How can the frequency response be obtained?
Question 5
Explain the effects of sinusoidal disturbance of a single frequency on the measured frequency
response of a system. How can we ascertain that the effect is caused by a sinusoidal
disturbance, and not due to the structural properties of the system under test?
Question 6
Explain the important statistical characteristics of white noise exploited in the open loop
system identification through correlation analysis.
Question 7
White noise is unrealisable in practice. Explain how the correlation method can still be used
for open loop system identification.
Question 8
Find the auto-correlation of the following Pseudo Random Binary Sequence (PRBS)
generated using a 3-bit shift register.
Sketch the auto-correlation as a function of clock interval. Explain the conditions at which
this auto-correlation function tends to represent white noise.
(b)
The output of the discrete time system is given by,
∑
∞
=
0
k
yn gkun k
Considering only 5 samples of impulse response,
4
0
k
yn gkun k
For unit step input,
k
k uk
Therefore,
4
0
y gku k g u k
4
0
= (^) ∑ − = + =
=
y gku k g u g u
k
4
0
= (^) ∑ − = + + = + =
=
y gku k g u g u g u
k
4
0
= (^) ∑ − = + + + = + =
=
y gku k g u g u g u g u
k
4
0
= (^) ∑ − = + + + + = + =
=
y gku k g u g u g u g u g u
k
Question 2
The response of a 2
nd order system to unit step input is shown above. The observation from
the oscilloscope is summarized below. Identify the transfer function model of the system
Steady state value: 1.
First overshoot occurred at 0.055 sec, with peak amplitude 1.
First undershoot at 0.109 sec, with magnitude 1.
Solution:
Steady state value, K=1.
First overshoot,
y ( t 1 )= K ( 1 + M ) ⇒ 1. 504 = 1. 2 ( 1 + M )
Damping coefficient,
2 2 (ln( ))
ln( )
ln( M )=ln( 0. 25 )=− 1. 3863
2 2
Natural frequency,
2
t
n
32 / sec
055 1 ( 0. 4 )
2
n = rad −
Result obtained from sampled measurement differs slightly from that obtained from
continuous time observation.
Question 4
The difference equation describing a system is given by:
y ( n )= 1. 8 y ( n − 1 )− 0. 85 y ( n − 2 )+ u ( n − 2 )
Find the transfer function of this system. How can the frequency response be obtained?
Solution:
If the z-transform of a sequence 'x(n)' is X(z),
x ( n ) X ( z )
Z →
then,
x ( n p ) z X ( z )
Z − p − →
Therefore,
1 y n z Y z
Z − − →
2 y n z Y z
Z − − →
2 u n z U z
Z − − →
Then taking z-transform of the given difference equation,
1 2 2 Y z z Y z z Y z z U z
− − − = − +
1 2 2 Y z z Y z z Y z z U z
− − − − + =
1 2 2 Y z z z z U z
− − − − + =
1 2 2
2
− −
−
z z z z
z
U z
Y z
Question 5
Explain the effects of sinusoidal disturbance of a single frequency on the measured frequency
response of a system. How can we ascertain that the effect is caused by a sinusoidal
disturbance, and not due to the structural properties of the system under test?
Answer:
If the disturbance in the frequency response measurement by correlation analysis is a sinusoid
with frequency equal to one of the test frequencies, the magnitude and phase becomes
distorted at that frequency showing a large gain and phase change. The disturbance also
affects the magnitude and phase at the frequencies in the neighbourhood of the disturbance
frequency. [See the figure in lecture notes] Similar response may be obtained if the system
under test has a lightly damped structural mode at that frequency.
If we increase the number of cycles taken for averaging in the correlation method, the effect
of the sinusoidal disturbance on the neighbouring frequencies becomes smaller, leaving only a
large change at the frequency of disturbance sinusoid. However, if the large gain in the
response is due to structural properties of the system under test, increasing number of cycles
has no effect on the shape of magnitude curve. If after increasing the number of cycles used
for averaging has an effect on the magnitude response, we can conclude that the large gain is
from a disturbance sinusoid and not due to a structural property.
Question 6
Explain the important statistical characteristics of white noise exploited in the open loop
system identification through correlation analysis.
Answer:
Properties of white noise exploited in the correlation method of system identification are -
(1) White noise is a zero-mean random sequence
(2) Covariance function of white noise is an impulse at τ=
→∞
N
k
N
uk uk N
1
Question 7
White noise is unrealisable in practice. Explain how the correlation method can still be used
for open loop system identification.
Answer:
Instead of using white noise, which is unrealisable, we can use some signal close to white
noise. However, these signals do not have an impulse-shaped covariance function. We can
still use the correlation method to identify the impulse response of a system by adapting one
of the two methods:
(1) Obtain a truncated impulse response from finite number of covariance
measurement
Taking interpolation between sampling instants, we get the auto-correlation sketch:
τ
0 1 2 3 4 5 6 7
This auto-correlation will tend to the auto-correlation of a white-noise sequence as the
sampling interval (Ts) becomes smaller, and sequence length becomes larger. However, this
sequence will have a non-zero mean. In order to get, zero-mean white noise type sequence,
the sequence should be transformed in to a {+1, -1} sequence.
2 y = kx
where x is the input voltage and y is the output voltage.
(a) Derive a least-square procedure for calculating k.
Experimentation with the circuit yields the following data pairs:
k 'x(k)' 'y(k)'
0 0.0 0.
1 1.0 1.
2 2.0 3.
(b) Find the least-square estimate for ' k ' for these data.
k 'u(k)' 'y(k) '
0 1.0 0
1 0.75 0.
2 0.50 0.
Find the transfer function using least square estimate of the parameters from the above
data.
k 'u(k)' 'y(k)'
0 10 0
1 10 12.
2 10 20.
Find the transfer function using least square estimate of the parameters from the above
data.
It is desired fit the following model to the experimental data, assuming 'e(k)' as a random
sequence representing white noise.
y ( k )=− ay ( k − 1 )+ bu ( k − 1 )+ e ( k )
Data [ u(k), y(k) ] were collected for 1000 samples, and the following summations were
calculated for k=1:999.
and the corresponding output
order of denominator polynomial
polynomial and order of denominator polynomial
can be described by the following set of equations:
yN kxN e N
y kx e
y kx e
= +
= +
= +
2
2
2 2 2
1
2 1 1
:
[ ]
T Y = y 1 y 2 .... yN
T x x xN 2 2 2
2 Φ= 1 ....
[ ]
T E = e 1 e 2 .... eN
=
e EE Y Y T T
N
n
n 1
2
Y =Φ θ+ E
ET^ E = YTY −Φ TY θ − YT Φθ+Φ T Φ θ^2
Φ T^ Y = YT Φ
2 = − 2 Φ θ +ΦΦ θ
T T T T EE YY Y
0
∂
∂ θ
E E
T
2 2 0
( ) =−Φ + ΦΦ = ∂
∂ θ θ
T T
T Y
EE
T T = ΦΦ Φ
− 1 θ
[ ]
T Y = 0. 011. 01 3. 98
T T ( 0. 0 ) ( 1. 0 ) ( 2. 0 ) 0. 0 1. 0 4. 0
2 2 2 Φ= =
ˆ −^1
( 0. 0 ) ( 1. 0 ) ( 4. 0 ) 17. 0
2 2 2 ΦΦ= + + =
T
Φ Y =( 0. 0 × 0. 01 )+( 1. 0 × 1. 01 )+( 4. 0 × 3. 98 )= 16. 93
T
ˆ 1 16.^93 = ΦΦ Φ = =
− k T T Y
true parameters.
[ ] (^)
= − − − b
a y ( k ) y ( k 1 ) u ( k 1 )
−
−
−
=
b
a
y u
y u
y u
y
y
y
( 999 ) ( 999 )
: :
( 2 ) ( 2 )
( 1 ) ( 1 )
( 1000 )
:
( 3 )
( 2 )
−
−
−
Φ=
= b
a
y u
y u
y u
y
y
y
Y ; θ
( 999 ) ( 999 )
: :
( 2 ) ( 2 )
( 1 ) ( 1 )
;
( 1000 )
:
( 3 )
( 2 )
−
−
−
−
− − − ΦΦ=
∑ ∑
= =
= = 999
1
2
999
1
999
1
999
1
2
()() ()
() ()()
( 999 ) ( 999 )
: :
( 2 ) ( 2 )
( 1 ) ( 1 )
( 1 ) ( 2 ) .... ( 999 )
( 1 ) ( 2 ) .... ( 999 )
k k
T k k
ykuk u k
y k ykuk
y u
y u
y u
u u u
y y y
− − − Φ =
∑
=
= 999
1
999
1
()( 1 )
()( 1 )
( 1000 )
:
( 3 )
( 2 )
( 1 ) ( 2 ) .... ( 999 )
( 1 ) ( 2 ) .... ( 999 )
k
T k
ukyk
ykyk
y
y
y
u u u
y y y Y
− Φ =
−
− Φ Φ= 40
1 ; 22 52
35 22 Y
T T
=
−
−
− =ΦΦ Φ =
− −
03
62
40
1
22 52
35 22 ˆ
ˆ ˆ
1 1 Y b
a (^) T T θ
Input Signal
Q.1. We have the task to identify a model of an electromechanical actuator as a first step
in designing a feedback controller for the actuator. Design objective of the closed
loop system demands a fairly good model up to 1 kHz. A quick transient response
experiment is performed to find the dominant time constant. It is decided to use
PRBS as the test signal to identify the model.
(a) Choose a suitable sampling frequency for this experiment.
(b) Determine a suitable sequence length for the PRBS, and find the number of flip-
flops required to generate the PRBS. Assume dominant time constant to be 0.
sec.
Answer:
(a) Since we want good identification result up to 1 kHz, the minimum sampling
frequency is 2 kHz. Higher the sampling frequency better the result would be.
However, too high sampling frequency will result in a very long sequence of PRBS.
Let's select 10 kHz. So the sampling interval is 10
(b) Dominant time constant is 0.1 sec. Duration of the input signal should be 5 to 10
times the dominant time constant. Let's select the duration to be 0.5 sec (5 times the
time constant). Then the length of PRBS is,
4
− T S
However, length of the PRBS is given as power of 2, =^2 −^1
N M (^). If we select N=
(13-bit shift register), the sequence length is 8191.
Then the duration of the designed PRBS is 8191x
times longer than the dominant time constant.