Számítógéppel irányított rendszerek elmélete Gyakorlat - Mintavételezés, DT-LTI rendszermodellek Hangos Katalin Villamosmérnöki és Információs Rendszerek Tanszék e-mail:
[email protected]
CCS-Gy6
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 1 / 10ren
Exercise 1
Given a CT LTI system: x˙ (t) = 2x (t) + 4u(t) , x (0) = 0 y (t) = x (t)
Discretize the above system with the sampling time h = 1s. Give the value of the state variable at t = 1 and t = 2 (with u(t) = 1(t))
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 2 / 10ren
Solution to Exercise 1
x˙ (t) = 2x (t) + 4u(t) , x (0) = 0 y (t) = x (t)
Discrete time model Φ = e 2 ; Γ = 2 − 2e 2 ; C = 1 The value of the state vector with u(k) = 1(k) x (1) = 2 − 2e 2 ; x (2) = 2 − 2e 4
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 3 / 10ren
Exercise 2
Given the following CT-LTI SISO system "
x˙
=
y
=
h
−1 0 0 −4 −1 1
i
#
"
x+
0 1
#
u
x
1
Discretize the system if the sampling time is 1 sec, i.e. h = 1 s!
2
Compute the solution with x (0) = 0, u(k) ≡ 1 for k = 1, 2!
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 4 / 10ren
Solution to Exercise 2 – 1 "
x˙
=
y
=
h
−1 0 0 −4 −1 1
i
#
"
x+
0 1
#
u
x
1. Discrete time model Φ = e Ah = L−1 (sI − Ah)−1 "
=
e −1 0 0 e −4
#
"
=
Γ=A
(e
Ah
h=1s
=
0.3679 0 0 0.0183 "
−1
− I)B =
0 0.2479
#
#
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 5 / 10ren
Solution to Exercise 2 – 2 "
x (k + 1) =
0.3679 0 0 0.0183
#
"
x (k) +
0 0.2479
#
u
x (0) = 0 2. Solution of the discrete time model "
0 0.2479
#
"
0 0.2933
#
x (1) =
x (2) =
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 6 / 10ren
Exercise 3
A DT-LTI SISO system is given by following input-output model: 2y (k + 3) + 6y (k + 2) − 2y (k) = u(k + 1) + 3u(k) 1
Compute its pulse transfer operator!
2
Give a possible state space model of DT-LTI system!
3
Is this state space model unique? Why?
4
Show that the pulse transfer operator H(q) is independent of the representation of the state space model, i.e. it is invariant with respect to coordinate transformation of the state space model!
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 7 / 10ren
Solution to Exercise 3 – 1 A DT-LTI SISO system is given by following input-output model: 2y (k + 3) + 6y (k + 2) − 2y (k) = u(k + 1) + 3u(k) 1. Compute its pulse transfer operator! Solution: 0.5q + 1.5 H(q) = 3 q + 3q 2 − 1 2. Give a possible state space model of DT-LTI system! Solution: controller form
−3 0 1 1 h i (Φ, Γ, C ) = 1 0 0 , 0 , 0 0.5 1.5 0 1 0 0
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 8 / 10ren
Solution to Exercise 3 – 2
A DT-LTI SISO system is given by following input-output model: 2y (k + 3) + 6y (k + 2) − 2y (k) = u(k + 1) + 3u(k) 3. Is this state space model unique? Why? Solution: NO, see state transformation below 4. Show that the pulse transfer operator H(q) is independent of the representation of the state space model, i.e. it is invariant with respect to coordinate transformation of the state space model! Solution: use the form H(q) = C (qI − Φ)−1 Γ + D with the SSR matrix transformation formulaes.
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 9 / 10ren
Homework exercise
Given the following CT-LTI SISO system "
x˙
=
y
=
h
−1 1 −2 −4 −1 1
i
#
"
x+
0 1
#
u
x
1
Discretize the system if the sampling time is 1 sec, i.e. h = 1 s!
2
Compute the solution with x (0) = 0, u(k) ≡ 1 for k = 1, 2!
Hangos Katalin (Villamosmérnöki és Információs Számítógéppel Rendszerek irányított Tanszékrendszerek e-mail: elmélete
[email protected]) Gyakorlat - Mintavételezés, CCS-Gy6 DT-LTI 10 / 10ren