CSE421DigitalControlMidtermExam2017Solution
CSE421DigitalControlMidtermExam2017Solution
1.Ballast Coding does not use any software (or hardware) interrupt mechanisms as it is fully imple-
mented in software.
[2 p] 2.For the two systems A and B represented by the following difference equations:
[4 p] 3.The z-transform of the sequence: 0, 2−0.5 , 1, 2−0.5 , 0, 0, · · · is: (note: sin(45◦ ) = √1 )
2
z2 + z + 1 z4 − 1 z z4 − 1
a) √ b) c) √ √ d) √ √
z 3 [z 2− 2 z + 1]
2z 2
2z − 2z + 2 2 z3 z2 − 2 z + 1
Since this answer is not given, then we try using z-transform proprieties to get:
−0.5
0, 2 , 1, 2−0.5 , 0, 0, · · · = 0, 2−0.5 , 1, 2−0.5 , 0, −2−0.5 , −1, −2−0.5 , 0, · · ·
+ 0, 0, 0, 0, 2−0.5 , 1, 2−0.5 , 0, −2−0.5 , −1, −2−0.5 , 0, · · ·
= f (k) + g(k)
( (
kπ kπ
sin 4 , k>0 sin 4 , k>4
where f (k) = g(k) =
0, k≤0 0, k≤4
sin(π/4)z sin(π/4)z
Z 0, 2−0.5 , 1, 2−0.5 , 0, 0, · · · = − z −4 2
z 2 − 2 cos(π/4)z + 1 z − 2 cos(π/4)z + 1
2−0.5 z 4 − 1
z4 − 1
= 3 2 = √ √
z [z − 20.5 z + 1]
2 z3 z2 − 2 z + 1
z
[4 p] 4.The inverse transform of the function: F (z) = is:
z2 + 0.3 z + 0.02
a) {0, 1, −0.3, 0.07, · · · } b) {1, −0.3, 0.07, · · · } c) {0, 1, 0.3, 0.02, · · · } d) {1, 0.3, 0.02, · · · }
4.since the answer is required in expansion form, we use the long division method as:
z −1 − 0.3z −2 + 0.07z −3 + · · ·
z2 + 0.3z + 0.02 ) z
z + 0.3 + 0.02z −1
− 0.3 − 0.02z −1
−0.3 − 0.09z −1 − 0.006z −2
0.07z −1 + 0.006z −2
..
.
z − 0.1
[3 p] 5.The inverse transforms of the function: F (z) = is:
z 2 + 0.04z + 0.25
a) sin(1.611k + 0.196) b) cos(1.611k + 0.196)
5.since the answer is required in closed form, we use the partial fraction method as:
n
X
[3 p] 6.If the discrete output yk of a system is related to its input uk by yn = uk , the transfer function
k=0
Y (z)/U (z) of this system is:
1 z
a) b) c) 1 d) z −1
1 − z −1 z2 − 1
By subtracting, we obtain
yn − yn−1 = un
Taking z-transform for both sides and equating, we get:
Y /(z) 1
=
U (z) 1 − z −1
[3 p]7.Consider a causal, LTI system with xn and yn as input and output, resp., described by the difference
equation yn = a yn−1 + b xn . For which values of a and b is the system bounded-input bounded-output
stable?
a) a > 1 & b < 1 b) a < 1 & b > 1. c) |b| < 1 any a. d) |a| < 1, any b
b
H(z) =
1 − a z −1
which has a pole at z = a. A causal LTI system is stable if and only if all the poles of H(z) lie inside
the unit circle. It follows that |a| < 1. Since b is not related to any pole, so it does not affect the
stability.
Question 2
For the next questions, consider the next root Locus chart:
1 0.5/T
0.6/T 0.4/T
0.8 0.7/T 0.1 0.3/T
0.2
0.6 0.3
0.8/T 0.4 0.2/T
0.5
0.4 0.6
0.7
0.9/T 0.8 0.1/T
0.2
Imaginary Axis
0.9
/T
0 /T
-0.2
0.9/T 0.1/T
-0.4
0.8/T 0.2/T
-0.6
0.7/T 0.3/T
-0.8
0.6/T 0.4/T
0.5/T
-1
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Real Axis
[3 p] 8.The system represented by this root locus has a transfer function G(z) given by:
[3 p] 9.Using the given chart, the appropriate poles location that results in ωn > 0.63 rad/s , ζ > 0.8
(assuming T = 1 s) are:
1
�
0.5�/T
0.6�/T 0.4�/T
0.8 0.7�/T 0.1 0.3�/T
0.2
0.6 0.3
0.4
0.8�/T
� 0.4
0.5
0.6
0.2�/T
0.7
0.9�/T 0.8 0.1�/T
0.2
Imaginary Axis
0.9
�/T
0 �/T
-0.2
0.9�/T 0.1�/T
-0.4
0.8�/T 0.2�/T
-0.6
0.7�/T 0.3�/T
-0.8
0.6�/T 0.4�/T
0.5�/T
-1
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Real Axis
Question 2
The following diagrams represent systems with poles (indicated by x’s) but no zeros. The unit step
response of two systems y1k and y2k is shown on the right plots.
10
5
m1
y2k
f1
0
h1
g1,2 −5
1
-2 2
h1
y1k
0.5
m2 f2
0
0 2 4 6 8 10
sample k
[3 p] 10.The system with the response given by y1k has the poles:
a) f1 , f2 b) g1 , g2 c) h1 , h2 d) m1 , m2
10.
• The response y1k is exponentially decreasing without oscillations, so its roots must be all real
and inside the unit circle. Therefore, its roots are g1,2 .
[3 p] 11.The system with the response given by y2k has the poles:
a) f1 , f2 b) g1 , g2 c) h1 , h2 d) m1 , m2
11.
• The response y2k is exponentially increasing with oscillations, so its roots must be all complex
conjugate and outside the unit circle. Therefore, its roots are f1,2 .
12.In the following sampled system, D(s), G(s), and H(s) represent the system continuous subsystems.
[3 p]
R(s) and Y (s) are input and output respectively:
z
[3 p] 13.The final value for the function F (z) = is:
z 2 + 0.3 z + 2
a) 0 b) 3.3 c) 1/3.3 d) undefined
√
13.The denominator has complex conjugate poles with magnitude 2 > 1. Therefore, the correspond-
ing time sequence is unbounded and the final value theorem does not apply. hence, the final value for
this function is undefined.
z
[3 p] 14.The steady state DC gain of the system with transfer Function H(z) = is:
z 2 − 0.7 z + 0.1
a) 0 b) 0.4 c) 2.5 d) undefined
z 1
K = H(1) = = = 2.5
z 2 − 0.7 z + 0.1 z=1 1 − 0.7 + 0.1
15.The Jury table will have 2n − 3 rows (always odd). Since n = 5, this characteristic equation will
result in 7 rows.
Row z0 z1 z2 z3 z4 z5
1 −0.1 0.3 0.4 0.1 −0.25 1
2 1 −0.25 0.1 0.4 0.3 −0.1
3 −0.99 0.22 −0.14 −0.41 −0.275
4 −0.275 −0.41 −0.14 0.22 −0.99
5 0.9045 0.3306 0.1001 0.4664
6 0.4664 0.1001 0.3306 0.9045
7 0.812 −0.2752 0.2288
Question 3
In a unity feedback discrete system, its open loop transfer function is given as:
k 0.084z 2 + 0.17z + 0.019
G(z) = 3
z − 1.5z 2 + 0.553z − 0.05
[3 p] 18.The bilinear transformation used to transform the interior of the z-plane unit circle into the left-
hand s-plane is:
1−w 1+w
a) b) c) z = esT d) z = e−sT
1+w 1−w
a) k > −44.3 b) k > −0.011 c) −0.011 < k < 2.74 d) −44.3 < k < 10
20.The system will be stable if all the elements in the first column have same sign. Thus the conditions
Combining above four constraints, the stable range of k can be found as:
Supplementary Material
Note: you may need some or none of these identities:
Zf f ðk 1 nÞg 5 zn FðzÞ 2 zn f ð0Þ 2 zn21 f ð1Þ . . . 2 zf ðn 2 1Þ
cos x = , sin x =
2 2j
p
j tan −1 (y/x)
Zf f ðk 1 1Þg 5 zFðzÞ 2 zf ð0Þ
x + j y = x2 + y 2 e
f ð0Þ 5 L imf ðkÞ 5 L im FðzÞ
Zfkm f ðkÞg 5 2z dzd FðzÞ
X
i50
z-1
k
ωn2
z-N
Zf f ðk 2 nÞg 5 z2n FðzÞ
m
p
G(s) = 2 , ω = ω 1 − ξ2
Zfa2k f ðkÞg 5 FðazÞ
Zf f1 ðkÞ f2 ðkÞg 5 Z
d n
s + 2ξωn s + ωn2
k-N
π−β ωd π
k-0
Tr = , β = tan−1 , Tp = ,
Formula
ωd ξωn ωd
3 4 √
2
Ts = = , Mp = e−ξπ/ 1−ξ
ξωn 5% ξωn 2%
Initial Value Theorem
Final Value Theorem
T Td Td
k 0 = Kp 1 + + , k1 = −Kp 1 + 2 ,
Multiplication by
Ti T T
Time Advance
Discrete-Time
Differentiation
Convolution
Exponential
Time Delay
Td
Property
Complex
Linearity
k 2 = Kp
T
n o Zh
Ah
Φ=e =L −1
(sI − A) −1
,Γ = eAt Bdt
No.
7
1
8
3
t=0
MODEL ANSWER
/ / : اﻟﺘﺎرﻳﺦ : اﺳﻢ اﻟﻄﺎﻟﺐ
Continuous Laplace
No. Time Transform Discrete Time z-Transform
0 1 2 3 4 5 6 7 8 9
رﻗﻢ اﻟﺠﻠﻮس
آﺣﺎد 1 δ(t) 1 δ(k) 1
ﻋﺸﺮات z
2 1(t) 1 1(k)
ﻣﺌﺎت z21
s
آﻻف
3 t 1 kT zT
sampling t gives
0 1 2 3 4 5 6 7 8 9 s2 ðz21Þ2
ﻧﻤﻮذج اﻻﺧﺘﺒﺎر
kT, z{kT} = T z{k}
آﺣﺎد
4 t2 2! (kT)2 zðz 1 1ÞT 2
ﻋﺸﺮات
s3 ðz21Þ3
ﻣﺌﺎت
آﻻف 5 t3 3! (kT)3 zðz2 1 4z 1 1ÞT 3
s4 ðz21Þ4
a b c d ﺧﺘﻢ اﻟﻜﻨﺘﺮول
1 6 e2αt 1 ak z
by setting a 5 e2αT.
2 s1α z2a
Midterm Exam–2017/2018
3 α
7 1 2 e2αt 1 2 ak ð1 2 aÞz
4 sðs 1 αÞ ðz 2 1Þðz 2 aÞ
5
6 8 e2αt 2 e2βt β 2α ak 2 bk ða 2 bÞz
7 ðs 1 αÞðs 1 βÞ ðz 2 aÞðz 2 bÞ
8
9 te2αt 1 kTak az T
9
ðs1αÞ2 ðz2aÞ2
10
11 10 sin(ωnt) ωn sin(ωnkT) sinðωn TÞz
12 s2 1 ω2n z2 2 2cosðωn TÞz 1 1
13
11 cos(ωnt) s cos(ωnkT) z½z 2 cosðωn TÞ
14
s2 1 ω2n z2 2 2cosðωn TÞz 1 1
15
16 12 e2ζωn t sinðωd tÞ ωd e2ζωn kT sinðωd kTÞ e2ζωn T sinðωd TÞz
17 ðs1ζωn Þ2 1 ω 2d z2 2 2e2ζωn T cosðω 22ζωn T
d TÞz 1 e
18
21
14 sinh(βt) β sinh(βkT) sinhðβTÞz
22
s2 2 β 2 z2 2 2coshðβTÞz 1 1
23
page 10 of 5