Lectures of Digital Control System Copy Word File
Lectures of Digital Control System Copy Word File
Describe Transfor
by m Modern
Equations Method
Differenti State
- Continuous Time al Laplace Equatio
(CT).
Equations ns
Differenc State
-Discrete Time (DT), e Z Equatio
Equations ns
During tracking time the ADC is turned off and ignores Tout. When a sample
is to be taken at t=KT the switch S is set to position 2 and the capacitor c
holds the output of the op/Amp frozen from that time at V 0 u t(KT )=V in (kT ).
The ADC is now signaled to begin conversion of the constant input from the
(SHC).
H=¿ Hold, S in position 2
T =¿ Track, S in position 1
For the purpose of the analysis, we separate the sample and hold into two
mathematical operations: a sampling operation represented by impulse
modulation and hold operation represented as a linear filter.
considering the sampler output to be a train of weighted impulses, we can
¿
relate the continuous signal x (t) to the sampler output x (t ) by:
¿
x (t )=δ T (t )x (t)
The unit impulse function is a pulse of unit area with width approaching to
zero:
∞
δ T (t )= ∑ ❑ δ(t−kT )
k=−∞
k=0
¿
By taking the laplace transform of x (t ) we obtain:
¿ ∞ ∞
x ( S)=¿∫ ẋ ẋ (t)=∫ ❑ ∑ ❑ x (kT )δ (t−kT ) e
¿ ¿ ¿ −kTS ∞ ∞ ∞
dt
0 k=0 =∫ ❑ x (0)δ(t )e dt +∫ ❑ x (T )δ (t−T )e
−0 −TS
dt +∫ ❑ x
¿ 0 0 0
( )
∞
1
x (z)=x ¿ (s)=x ¿ ln z =∑ ❑ x (kT ) Z−k
T k=0
thus:
∞
Zx(t)=Z (x)=x (z)=∑ ❑ x (kT ) z−k
¿
k=0
Holding device:-
A holding device converts the sampled signal (discrete time) into a
continuous signal. The simplest holding device converts the sampled signal
into one which is constant between two consecutive sampling instants. Such
a device is a Zero-Order Holding device.
The transfer function G h (S) of a zero-order holding is:
−TS
1−e
G h (S)=
S
Z u(t) ¿
x (t)= {0
e−at
for t <0
for t ⩾ 0
solus.
∞
x (z) ¿ Z e−at =∑ ❑ e−akT z−k
k=0
2 3
¿ ¿ 1+ e −aT
z + (e
−1 −aT
z−1 ) + ( e−aT z−1 ) +⋯
¿ ¿
[ ] [ ]
jωt − jωt
e −e 1 z z
Z sin ωt ¿ Z = jωt
− − jωT
2j 2 j z−e z−e
z sin ωT
¿ ¿ 2
z −2 z cos ωT +1
Solus.
∞
Zx(kT ) ¿ ∑ ❑ 2k z −k =1+2 z −1 +22 z−2+ 23 z−3 +2 4 z −4 +⋯
k=0
1 z
¿ ¿ −1
=
1−2 z z−2
−n
Zx(kT −nT )=Z x (z)
Thus:
¿
a() ()
z 2 z
−
a
cos ωT
{
1 ,T <k <2 T
0 , elsewere
x (kT )= ⋮
1−z −1
x (z)=
z−1
dx (z)
Ztx (t)=−zT
dz
Solus.
d
Zx(t) ¿ Z [ t a ⋅u( t) ]=−ZT
t t
Z a ⋅ u(t)
dz
¿ ¿
Example:- Find the Z-transform of the damped sin function
−at
x (t)=e sin ωt ⋅ u(t)
Solus.
X − akT
Z x( kT ) ¿Ze sin ω kT ⋅ u(kT )
1
¿ ¿
2j
[ Ze
( jω−a)kT
⋅u(kT )−Z e
−( jω+a)kT
⋅u(kT ) ]
[ ]
2 −( jω+ a)T 2 ( jω−a)T
1 z −z e −Z + Z e
¿ ¿ −( j ω+ a)T ( jω−a)T
2
2 j z −Z e −Z e + e( jω−a)T e−( jω+a)T
¿ ¿
( )
jωT − jωT
−aT e −e
ze
2j
¿
(e )+e
jωT − jωT
2 −aT +e −2 aT
z −2 z e
2
−aT aT
z e sin ωT z e sin ωT
¿ 2 −aT −2 aT
= 2 2 aT aT
z −2 z e cos ωT + e z e −2 z e cos ωT + 1
2
z z −z cos bT
1 cos bt
z−1 2
z −2 z cos bT +1
Tz dF (z )
t ,kT tf (t) −Tz
¿¿ dz
−1 −1
z −1 z z z
a
k
a
k−1
z F (z )= =
z−a z−a 1−a z −1
−at −akT
z z.
e ,e −aT k
z−e ¿¿
z sin bT
sin bt 2
z −2 z cos bT +1
By this method we first factor the denominator polynomial of x (z) and find
x( z)
the poles of it. Then we expand into partial fractions so that each of the
z
terms is easly recognizable in the table of z transformations.
10 z
Example:- Find x (kT ) if x (z) is given by: x (z)= 2
z −3 z +2
10 z
solus. x (z)=
(z−1)( z−2)
x( z) 10 A B A (z−2)+ B( z−1)
= = + =
z (z−1)(z−2) z−1 z −2 (z−1)(z−2)
A=−10
B=10
x( z) −10 10
then = +
z z −1 z−2
and by inspection
k k
x (kT )=−10∗1 +10∗2
(18)
¿ 10 ( 2 −1 )
k
(18)
By long division:-
−1 −2 −3 −4
10 z +30 z +70 z +150 z
−1
10 ź
−1 −2 −3
∓ 10 z ±30 z ∓ 20 z
−2 −3
0+30 z −20 z
−2 −3 −4
∓ 30 z ± 90 z ∓ 60 z
−3 −4
0+70 z −60 z
−3 −4 −5
∓ 70 z ± 210 z +140 z
0+150 z−4−140 z−5
x (4 T )=150
By this method we use the inversion integral for the z -transform which is:
1 k−1
x (kT )= ∮ c x (z ) z dz
2 πj
R1=lim (z−1)
z →1 [ 10 z
(z−1)(z−2)
z k−1
]
¿
R2 ¿ lim (z+ 2)
z →2 [ 10 z
(z−1)(z+ 2)
z k−1
]
¿ ¿
Example:- Find the x (kT ) for the following function by using residue
method.
3
z
x (z)=
(z+ 1) ¿ ¿
R2 ¿
1
Thus: x (kT )=R1 + R2= ¿
4
or in term z -transform:
(a)
For the system shown in figure (a) the pulse transfer function
Y (z )
is: X (z ) ¿G 1 G 2 [
(z)=Z
1 1
s+ a s+b ] [ (
=Z
1 1
−
1
b−a s +a s +b = )]
Z ( e−aT −e−bT )
(b−a) ( z−e ) ( Z −e )
−aT −bT
¿
¿ ¿
For the system shown in figure (b) Cassuming that the two samplers are
synchronized and have the same sampling period), we obtained:
y (z) u(z ) y (z ) z z
¿ =G1 (z )G2 ( z )= −aT
x (z ) x (z) u(z ) z−e z−e−bT
¿ ¿
Thus: G 1 G 2(z )≠ G 1 (z )G 2 (z )
Therefore, we must be careful and observe whether or not there is a sampler
between cascaded elements.
¿
From the block diagram the inputs of the system are: R(S) and E (S ), the
output of the system are:
C (S ) and E(S)
Thus: E(s)=R (s)−H (s)¿
¿
c (S)=G(S) E (S)
¿
Hence: E(s)=R (s)−H (s)G(s )E (s)
By staring we obtain:
C( z ) G(Z)
=
R( z ) 1+GH (Z)
G(z ) R (z)
C (z)=
1+GH (z)
(2)
G(z ) R( z)
C (z)=
1+G(z )H (z )
(3)
RG (z )
C (z)=
1+GH (z)
(4)
R ( G1 (z )G2 ( z )
C (z)=
1+G1 G2 H (z )
(5)
R(z )G 1(z )G 2( z )
c (z )=
1+G 1(z )G 2 H (z )
(6)
R(z )G1 G2 (z)
C (z)=
1+G1 G2( z)H (z)
H.W:- Derived the pulse transfer function for closed loop discrete-time
systems above.
Sou.
E(s)=R ( s ) −C ( s ) H ( s)−(1)
' ¿ '
⇒ C ( s ) =E (s)G ( s )
¿ ' ¿ ¿ '
¿ ¿
E(s)=R ( s)−E (s)G (s )H ( s)
⇒ E ( s ) =R ( s ) −E E ( s ) G (s )H ( s )
¿ ' ¿ ' ¿ ' ¿ ¿ '
Example: Find the system response C (KT ) to a unit step input for the
system shown below.
solus.
1−e
−Ts
3,s
'
3 ( 1−e−Ts )
G(s)= ⋅ =
s¿ ( s ' + 1 )( s ' +2 ) (s +1)(s +2)
C ( s' )=G ( s' ) A ¿ ( s' )
C(z )=G(z ) A (z)
1
A(S)=G1 ( s ) E(S), when G(k , S)=
'
s +0.5
C ( z) G(z)
=
R ( z) 1+GH ( z)
( )
−βT
1−e 1 1
G(s)= =( 1−e−sT )
s s +4 s(β + 4)
G (z)=( 1−z ) Z
−1
( 1
s (ss + 4) )
by using residue method:
R 1=lim s
s →0
1
[
s(s+ 4) z−e
z
sT
=
1 z
4 z−e ]
0∗0.1
=
0.25 z
z−1
G(z)
C (z)= R(z )
1+G(z )
¿
Thus C (KT ) is
c (0)=0
c (T )=0
c (2T )=0.008
c (3 T )=0.021
c (4 T )=0.036
we have:
or
or
¿ 1
e (∞)=
1+k p
kp=li z → 1 G(z )
¿ 1 1
e (∞)= =
1 kv
lim ( z−1)G(z )
T z →1
1
when k v = lim ¿ z →1 ( z−1)G(z)¿
T
Then:
R(z ) ¿
¿
1
where k a= 2
lim ¿ z →1 ¿ ¿
T
Ex.!: For the unit feedback system find the steady state error for unit step,
ramp and parabolic input.
Solus:..
The open -loop T.F is:-
¿ 1 1
the e (∞)= = =0
1+ Kp 1+ ∞
t 1 1
the e (∞)= = =0.2
kv 5
EX.:- For the discrete control system shown below, find the steady-state
error for unit step, ramp and parabolic input.
Solus:-
1−e−T s ( ' )
C ( s ) =E ( s ) G ( s ) , where G ( s ) =
' ¿ ' ' '
G1 s
S
⇒ E ( s' )=R ( S ' ) −H ( s ' ) E ¿ ( s ' ) G ( s' )
by staring:
by staring:
¿ ¿ ¿ ¿
E (S)=R (S)−E (S) H G (S)
R¿ ( S ' ) R( Z)
E ( s )=
¿ '
⇒ E(z )=
1+ H G ( S )
¿ '
1+ HG(Z)
R ( z)
or e (∞)=lim ¿ z →1 ( 1−z ) E( z)=lim ¿ z →1 ( 1−z−1 )
¿ −1
¿¿
1+ HG (z )
As s=6+ jw
then z=e ( j+ jω)T =e δT e jωT
thus ¿ z∨¿ e σT , ∠ z=ωT
in the Left-Half S-plane, 6< 0, therefor the magnitude of Z varies between (0)
and (1). The imaginary axis, or σ =0, corresponds to the unit circle in the z -
plane. The inside of the circle corresponds to the Left-Half. S-plane.
( s' -plane)
(Z-plane)
The vertical lines in the S-plane means constant values of L Wnn, which gives
constant settling time
4 4
T s= ⇒ Lw =
Lw n
Ts
n
The horizontal lines on the S-plane are lines of constant ( ω n √ 1−L2 ) which
π
means constant peak time T p= , these lines are characterized by the
ωn √ 1−L2
π
equation S' =∂+ j ω1, where ω 1=ω n √ 1−L =
2
Tp
π
This equation represents radial lines at an angle of ω 1 T =
( T p /T )
The Jury stability Test:-
Consider the characteristic equation of a sampled-data system.
1+G(z )=0
⋮ ⋮ ⋮
I0 I1 I2 I3
I 3 I 2 I 1 I 0 M 0 μ1 μ 2 M 2 M 1 M 0 where: b k =
|
an ak | | |
a0 a n−k a a
⇒b0 = 0 n =a 20−a 2n
an a0
ck =
| b 0 bn−1−k
bn −1 bk |
dk =
| c0 c n−2−k
c n−2 ck |
The necessary and sufficient conditions for the polynomial Q(z ) to have no
roots outside or on the unit circle are:-
Condition-1 Q(1)>0
Condition-2 ¿
condition -3 |a0|<|an|
condition - 4 |b 0|>|b n−1|
condition-5 |C 0|>|c n−2|
⋮ ⋮ Condition-n |M 0|>| M 2|
Example :-
For the system shown bellow, find the range of k for stability.
⇒ Gr (z)=k ( 1−z ) Z̸
−1
( s (β+2)
1
2 )
by using partial fraction:
1 A B C AS ( S +2 ) + B(S+ 2)+C S
' 2
= + 2+ ' =
S ( S +2 ) S S ( S +2 )
'2 '
S' 2 ( S ' + 2 )
'2 ' ' 2 2 '
⇒ 1=A S +2 A S + B S +2 B+C S =S ( A+C )+ S (2 A+ B)+2 B
1
⇒ 2 B=1⇒ B=
2
−1
2 A+ B=0 ⇒ A=
4
1
A+C=0 ⇒ C=
4
−1 1 1
1 4 2 4
∴ '2 = s + 2+ s
s (s+2) s s ( s + 2)
¿
The characteristic equation 1+G(Z) will be:
k (0.091 z+ 0.066)
1+ =0 2
( z 2−1.367 z+ 0.367 ) Q(z )=z +(0.091 k −1.367)z +(0.367+0.066 k )=0 ¿
¿
The Jury's array is:-
condition-1 Q(1)>0
condition-2 ¿
condition-3 |a0|<|a2|
b k=
|
| | ||
a0 a n−k
an ak
a a
⇒ b0 = 0 4 =
a 4 a0
−0.08
1
1
−0.08
=−0.994 |
| ||
b1 = |a 0 a 3 −0.08 −1.2
a4 a 1
=
1 0.3
=−0.024+ 1.2=1.176
| ||
b 2= |
a 0 a2 −0.08 0.07
a 4 a2
=
1 0.07
=−0.0056−0.07=−0.0756
| ||
b 3= |a0 a1 −0.08 0.3
a4 a3
=
1 −1.2
=0.096−0.3=−0.204
| | ck=
b0 b n−1.k −0.994 −0.204
bn−1 bk −0.204 −0.994 |
=0.9464
| || |
−0.994 −0.0756
b b
c 0= 0 3 = c1 b2 =∣=−1.167−0.0154=−1.1824
b3 b0
b3 b1
| ||
c 2= =|
b 0 b 1 −0.994 1.176 =0.0751+0.24=0.315
b 3 b 2 −0.204 −0.0756
0 1 2 3 4
z z z z z
-
1 -1.2 0.07 0.3
0.08
-
-
-0.994 1.176 0.075
0.204
6
-
-
-0.204 0.075 1.176
0.994
6
-
0.946
1.182 0.315
4
4
⇒ 0.994 >0.204
⇒∨0.9464∨¿∨0.315∨⇒0.9464> 0.315
∴ All conditions for stability are satisfied, the given characteristic equation is
stable.
C (s ) N (s) N ( s)
M =T ⋅ F= = =
R (s) D(s) a0 s +a 1 s +a 2 s n−2 +⋯+a n s0
n n−1
n
s a0 a2 a4 ⋅
s
n−1
a1 a3 a5 ⋅
a1 a2−a 0 a3 a1 a 4−a 0 a5
s
n−2
A= B= 0 ⋅
a1 a1
A a3−a 1 B
⋅ E= ⋅
A
⋅ ⋅
0
s ⋅
2- From first column of (R-H) table, we can check the stability of given
control system by:
If all elements of first column are in the same sign, that is mean the control
system is stable
Note the number system poles in +ve real axis will equal to number of sign
changes in the first column element in (R-H) table.
Example: Check the stability of the control system which its auxiliary
equation is equal to D( s)=s 2+ s−2=0
Solution:
2
s 1 -2 0
S 1 0 0
0 1(−2)−1(0)
s ¿ =−2
1
Solution:
3
s 1 2 0
2
s 0 3 0
0(2)−1(3)
s ¿ =∞
0
0
s
Special Cases
Case 1: if the first element of any raw in (R-H) table is equal to zero.
To solve the problem:
1 - We multiply the auxiliary equation by ( s+a ).
Where, a: is any number.
2- Make a new (R-H) table from a new polynomial, which we obtained it from
step 1 .
4 3 2
D́( s)=s +s +2 s + 5 s+ 3We make new (R-H) table
4
s 1 2 3
3
s 1 5 0
1(2)−1(5) 1(3)−1(0)
s
2
¿ =−3 ¿ =3 0
1 1
−3(5)−1(3)
S ¿ =6 0
−3
6(3)−(−3)0
S
0
¿ =3
6
Example: Check the stability of the control system which its auxiliary
equation is equal to D( s)=s 3+3 s2 −4 s−12=0
Solution:
3
s 1 -4 0
2 -
s 3 0
12
3(−4)−1(−12) 0
S ¿ = =0 0 0
3 3
0
S
2 dA (s )
A(s)=3 s −12 =6 s
ds
3
s 1 -4 0
2 -
s 3 0
12
S 6 0 0
0 6(−12)−3(0)
S ¿ =−12
6
Solution:
1. D( s)=s ( s3 + s 2+ s+ 4 s2 + 4 s +4 ) + K =0
4 3 2
D( s)=s +5 s +5 s + 4 s+ K =0
4
s 1 5 K
3
s 5 4 0
4.2(4)−5( K )
S ¿ 0 0
4.2
0
s K
}
4.2(4)−5 K
> 0 ⇒ 5 K <16.8 ⇒ K <3.36
4.2 ⇒ 3.36> K > 0
K >0
2
s 2K 4 0
2
K + 2 K −2
S =¿ 0 0
K
0
s 4
2 K >0 ⇒ K >0
{
2
K + 2 K −2 2 k >−2.73
> 0⇒ k +2 K−2>0 ⇒ ⇒ k >0.73
k k > 0.73
Solution:
The characteristic equation of the system is 1+G(s)H (s )=0
K
=0 ⇒ s(1+ 0.6 s)(1+ 0.4 s )+ K =0 ⇒ s ( 1+ s+0.24 s ) + K=0
2
1+
s (1+0.6 s)(1+0.4 s)
3 2
0.24 s + s + s+ K =0
3
s 0.24 1 0
2
s 1 K 0
S 1−0.24 K 0 0
0
s K
3 0.2
s 1 0
4
2 4.16
s 1 0
7
S 0 0 0
0
S
2
A( s)=s + 4.167=0
The z -transform of G(S) by using residue method, with roots of S=0 and
s=−1
s→0 [
R1=lim ( s −0 )
' 10 z
s ( s + 1 ) z −e
' ' ST
]=
10 z
z−1
R2= lim
s →−1 [( s' +1 )
10 z
s ( s +1 ) z−e
' ]
sT
=
−10 z
z −e
−T
10 z ( 1−e )
−T
10 z 10 z
G(z )=R1 + R2= − =
z−1 z−e ( z −1) ( z−e−T )
−T
c (z ) G( z)
=
R ( z) 1+G(z)
10 z ( 1−e−T )
1+ =0
(z−1) ( z−e−T )
(z−1) ( z−e−T ) +10 z ( 1−e−T )=0
Noting that e−1=0.368 , we can simplify the equation to:- z 2+ 4.952 z+ 0.368=0
( ) ( )
2
r +1 r +1
⇒ + 4.952 +0.368=0
r−1 r−1
⇒ 6.32 r 2+ 1.264 r−3.584=0
2 -
r 6.32
3.584
r 1.264 0
∘ -
r 3.584
There is one change of sign in the first column. Thus there is one root in the
right-half r plane, which implies that there is one root out side the unit circle
in the z -plane, therefor the system is unstable.
H.W:- For the discrete system shown in figure find the range of k
which make the system stable.
1−e− s T k 1
G ( s )= =k ( 1−e−s T ) ' 2 '
'
'
'
⋅ '
s s ( s +1 ) s ( s +1 )
⇒ G(z)=ZG ( s ' )=k ( 1−z−1 ) Z
( 1
s ( s +1 )
'2 ' )
The Routh's table will be:-
2
r 0.01 k 3.8+0.01 k
r 0.2−0.02 k 0
0
r 3.8+0.01 k
0< k <10
State-Space analysis:-
state-space is the space which has (n) dimentional axis ( x 1-axis, x 2-
axis, ....., x n-axis).
The general mode of state-space:-
the combination of state equation and out put equation will called state-
space model
x : state vector.
Ẋ : Derivative of state vector.
A: System matrix.
u: Input vector.
B: Input matrix.
y : output vector.
C: output matrix.
D: Feed forward matrix.
(Block diagram of state-space model)
Example:- Find the state-space model for the following circuit, if the
output is the voltage on the inductance.
]
Solus.
dI
L =V i−V R −V c
dt
dI V i IR V c
= − − −1
dt L L L
dV c
c =I
dt
d Vc I
= −(2)
dt C
V L =V i −V R −V c
V L=V i −IR−V C
ẍ=Ax + Bu
y=Cx+ Du
[ ]
−R −1
[]İ
V̇
=
L
1
L
0
[ ][ ]
I
+
Vc L i
1
v ← state
c
0
(3)
V L= [−R −1 ]
[]
I
vc
+ v i ⟵ output equation
The state equation and output equation will represent the state-space model
of the circuit.
Solus.
( (s' ) 3
= '2 '
R ( s ) s + 2 s +5
'
ÿ +2 ẏ +5 y=3 u
ÿ= ẋ 2=−2 ẏ −5 y+ 3u
ẋ 2=−2 x 2−5 x 1+3 u
ẋ 1=x 2−1
(1)
ẋ 2=−2 x 2−5 x1 +3 u
(2)
y=x 1
(3)
2. }
state-space equations in normal mode.
state -space
[][
ẋ1
ẋ2
=
0
−5 −2 ][ ] [ ]
1 x1 0
x2
+ u ← state u equation
3
equations
in matrix
mode.
(3)
x
[]
y= [ 1 0 ] 1 + 0← output equation
x2
(3)
Solus: :-
1
R(s )→
'
2
→ s+ 5→( c , s)
s +2 , s+5
y 1
= 2
u s +2 s ' +5
( s' 2+ 2 s' +5 ) y=u
ÿ +2 ẏ+5 y =u
let:- y=x 1 , ẏ = ẋ1=x 2 , ÿ= ẋ 2=−2 s 2 +2˙ s ' +5 ] → y
ẋ 2= ÿ=−2 x2 −5 x 1 +u
⇒ ẋ 1=x 2−U
¿
out put equation:-
y
=s +5
x1
( s+5) x 1= y
ẋ 1+ 5 x 1= y
let: x 1= y , ẋ 1= ẏ=x 2
⇒ y=5 x 1+ x 2
[] x
y=[5 1] 1 +[0 ]u output eq u
x2
+ ẋ 2
H.W i-
1- Find the state -space model for the following circuit, if the out put
is the current in the resistor (R).
2-convert the following T.F into state-space model, and then design the
block diagram for the state-space.
8
(a) T ⋅ F= 3 2
s +2 s + 5 s+7
ans.
2
s +2 s+3
(b) T ⋅ F= 3 2
s +8 , s +7 s +5
ans:
State Variables:-
state models of discrete systems are introduced by an example.
Suppose that a discrete system is discribed by the second-order
difference equation:-
y (k)=0.368 u(k −1)+ 0.264 u(k −2)+ 1.368 y (k−1)−0.368 y (k−2) where u(k )
is the system input and y (k) is the system output. We see that the z -
transform of this equation yields the transfer function:-
−1 −2
y (z) 0.368 z +0.264 z 0.368 z+ 0.264
¿ = −1 −2
= 2
u (z) 1−1.368 z + 0.368 z z −1.368 z +0.368
Note:-
y (k)−1.368 y (k−1)+0.368 y ( k−2)=0.368 u(k−1)+0.264 u(k−2)
−1 −2 −1 −2
y (z)−1.368 y (z )z +0.368 y ( z)z =0.368 u(z )z +0.264 u (z) z
y (z) ( 1−1.368 z +0.368 z ) =u(z) ( 0.368 z +0.264 z )
−1 −2 −1 −2
−1 −2
y (z ) 0.368 z + 0.264 z 0.368 z +0.264
= −1 −2
= 2
u( z) 1−1.368 z + 0.368 z z −1.368 z+ 0.368
x 1 (k +1)=x 2 (k )
(1)
[ x1 (k +1)
][
=
0 1
][ ] [ ]
x 1 (k) 0
+ 4 (k)
x 2(k +1) −0.368 1.368 x 2 (k) 1
The general form of the state equations for a multivariable linear time-
invariant discrete system is:-
x (k +1)= Ax (k )+Bu(k )
y (k )=Cx(k )+ Du( k )
y (z) z
G(z )= = 2
u (z) z −3 z +2
[ ] [ ][ ] [ ]
x1 (k +1)
x 2(k +1)
=
0 1 x 1 (k ) 0
−2
+ u(k )
3 x 2 (k ) 1
[ ]
[ ]
y (k )= 0 1
x1 (k )
x 2(k )
(simulation diagram)
now solve these equations by the sequential technique just given for the
case that x (0)=0 and u(k )=1, for all k . Since x (0)=0 , then y (0)=0. In the
state equations above, for K=0 ,1 , 2 , … :
¿ ¿ [
−2 3 1 1 ][ ] [ ] [ ]
k =0 ⇒ x (1) ¿ Ax(0)+ Bu(0)= Ax (1)+ Bu(1)¿= 0 1 0 + 0 (1)= 1 , y (2)=4 ¿
4
k =2 ⇒ x (3)=
0
−2 [ 1
3][ ] [ ] [ ]
1 0
+ (1)=
4 1
4
11
, y (3)=11
[
k =3 ⇒ x (4 )= 0
−2
1
3][ ] [ ] [ ]
4 + 0 (1)= 11 , y (4)=26
11 1 26
PID controller:-
The proportional-integral-derivative (PID) controller is often referredto as a
"three-term" controller.