• Non ci sono risultati.

Ingegneria dell ’Automazione - Sistemi in Tempo Reale

N/A
N/A
Protected

Academic year: 2021

Condividi "Ingegneria dell ’Automazione - Sistemi in Tempo Reale"

Copied!
59
0
0

Testo completo

(1)

Ingegneria dell ’Automazione - Sistemi in Tempo Reale

Selected topics on discrete-time and sampled-data systems

Luigi Palopoli

palopoli@sssup.it - Tel. 050/883444

(2)

Outline

Representation of a sampled-data system

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.2/28

(3)

DT models of sampled-data systems

Using Z−transform

D/A (ZoH) G(s) A/D

G(z)

u(kT) y(t) y(kT)

Supposed G(s) = H(s)e −sλ ,

λ can be used to model computation delays

The presence of a delay makes CT synthesis

(4)

Example

Example: G(s) = e

−sT s+aa

with a > 0 Let λ = lT − mT , with l ∈ N, m ∈ [0, 1)

G(z) = (1 − z

−1

)Z[L

−1

[

G(s)s

]]

G(z) = (1 − z

−1

)Z[L

−1

[e

−lsT

(

emsTs

es+amsT

)] = (1 − z

−1

)z

−l

Z[L

−1

[

emsTs

es+amsT

]

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.4/28

(5)

Example

Example: G(s) = e

−sT s+aa

with a > 0 Let λ = lT − mT , with l ∈ N, m ∈ [0, 1) G(z) = (1 − z

−1

)Z[L

−1

[

G(s)s

]]

G(z) = (1 − z

−1

)Z[L

−1

[e

−lsT

(

emsTs

es+amsT

)] =

(1 − z

−1

)z

−l

Z[L

−1

[

emsTs

es+amsT

]

(6)

Example

Example: G(s) = e

−sT s+aa

with a > 0 Let λ = lT − mT , with l ∈ N, m ∈ [0, 1) G(z) = (1 − z

−1

)Z[L

−1

[

G(s)s

]]

G(z) = (1 − z

−1

)Z[L

−1

[e

−lsT

(

emsTs

es+amsT

)] = (1 − z

−1

)z

−l

Z[L

−1

[

emsTs

es+amsT

]

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.4/28

(7)

Example

Example: G(s) = e

−sT s+aa

with a > 0 Let λ = lT − mT , with l ∈ N, m ∈ [0, 1) G(z) = (1 − z

−1

)Z[L

−1

[

G(s)s

]]

G(z) = (1 − z

−1

)Z[L

−1

[e

−lsT

(

emsTs

es+amsT

)] =

(1 − z

−1

)z

−l

Z[L

−1

[

emsTs

es+amsT

]

(8)

Example

−2 −1 0 1 2 3 4

0 0.5 1 1.5 2

−2 −1 0 1 2 3 4

0 2 4 6 8

Z[

esmTs

] =

z−1z

Z[

es+asmT

] =

zez−e−amT−aT

G(z) = (1 − e

−amT

)

zl(z−ez+α−aT)

, where α =

e−amT1−e−amT−e−aT

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.5/28

(9)

Matlab Control toolbox code

10cm Td = 1.5 a= 1

T = 1

sysc = tf(a, [1 a],’td’,Td);

sysD = c2d(sysc,T);

(10)

Effects of delays

Due to the delay

l poles arose in the origin a zero arose at −α

α → +0 when m → 1 (small delay) α → +∞ when m → 0 (large delay) And now let’s review some concepts...

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.7/28

(11)

Zeros and poles

Poles are the zeros of the denonimator. A pole p i correspond to a free mode of the system associated with the time function z = p t i

Zeros correspond to blocking properties of the the system: z = z i means that there exist initial conditions such that the system has

response 0 to the signal z i t

(12)

Zeros and poles - I

Example:

y(t + 1) − ay(t) = u(t + 1) − bu(t) Computing the Z−transform we get:

Y (z) = z

z − a (y

0

− u

0

) + z − b

z − a U (z) u(t) = b

t

⇒ U (z) =

z−bz

Therefore

Y (z) = z

z − a (y

0

− 1) if y

0

= 1 then Y (z) = 0

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.9/28

(13)

Zeros and poles - II

A more subtle example:

y(t + 1) − ay(t) = u(t + 1) − au(t)

The transfer function is

z−az−a

; is it equivalent to 1?

NO! The evolution of the system is given by:

y(t) = a

t

y

0

+ u(t)

Problems are limited only if |a| < 1

(14)

Zeros and poles - II

A more subtle example:

y(t + 1) − ay(t) = u(t + 1) − au(t)

The transfer function is

z−az−a

; is it equivalent to 1?

NO! The evolution of the system is given by:

y(t) = a

t

y

0

+ u(t) Problems are limited only if |a| < 1

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.10/28

(15)

Zeros and poles - II

A more subtle example:

y(t + 1) − ay(t) = u(t + 1) − au(t)

The transfer function is

z−az−a

; is it equivalent to 1?

NO! The evolution of the system is given by:

y(t) = a

t

y

0

+ u(t)

Problems are limited only if |a| < 1

(16)

Non-minimum phase zeros

Zeros outside of the unit circle correspond to performance limitations

Example:

Y (z)U (z)

=

z−az−b

with |a| > 1

Suppose you want the signal c

k

with |c| < 1 You get U(z) =

(z−a)(z−c)z(z−b)

U (z) can be expanded as:

U (z) = 1 +

(a−c)(z−a)a(a−b)

(a−c)(z−c)c(c−b)

u(t) grows unbounded: exact tracking with finite commands is impossible

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.11/28

(17)

Non-minimum phase zeros

Zeros outside of the unit circle correspond to performance limitations

Example:

Y (z)U (z)

=

z−az−b

with |a| > 1 Suppose you want the signal c

k

with |c| < 1

You get U(z) =

(z−a)(z−c)z(z−b)

U (z) can be expanded as:

U (z) = 1 +

(a−c)(z−a)a(a−b)

(a−c)(z−c)c(c−b)

u(t) grows unbounded: exact tracking with finite

commands is impossible

(18)

Non-minimum phase zeros

Zeros outside of the unit circle correspond to performance limitations

Example:

Y (z)U (z)

=

z−az−b

with |a| > 1

Suppose you want the signal c

k

with |c| < 1 You get U(z) =

(z−a)(z−c)z(z−b)

U (z) can be expanded as:

U (z) = 1 +

(a−c)(z−a)a(a−b)

(a−c)(z−c)c(c−b)

u(t) grows unbounded: exact tracking with finite commands is impossible

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.11/28

(19)

Non-minimum phase zeros

Zeros outside of the unit circle correspond to performance limitations

Example:

Y (z)U (z)

=

z−az−b

with |a| > 1

Suppose you want the signal c

k

with |c| < 1 You get U(z) =

(z−a)(z−c)z(z−b)

U (z) can be expanded as:

U (z) = 1 +

(a−c)(z−a)a(a−b)

(a−c)(z−c)c(c−b)

u(t) grows unbounded: exact tracking with finite

commands is impossible

(20)

Non-minimum phase zeros

Zeros outside of the unit circle correspond to performance limitations

Example:

Y (z)U (z)

=

z−az−b

with |a| > 1

Suppose you want the signal c

k

with |c| < 1 You get U(z) =

(z−a)(z−c)z(z−b)

U (z) can be expanded as:

U (z) = 1 +

(a−c)(z−a)a(a−b)

(a−c)(z−c)c(c−b)

u(t) grows unbounded: exact tracking with finite

commands is impossible

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.11/28

(21)

Non-minimum phase zeros

Zeros outside of the unit circle correspond to performance limitations

Example:

Y (z)U (z)

=

z−az−b

with |a| > 1

Suppose you want the signal c

k

with |c| < 1 You get U(z) =

(z−a)(z−c)z(z−b)

U (z) can be expanded as:

U (z) = 1 +

(a−c)(z−a)a(a−b)

(a−c)(z−c)c(c−b)

(22)

Root locus

No delays

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

−1

−0.8

−0.6

−0.4

−0.2 0 0.2 0.4 0.6 0.8 1

h = 1, m = 0.4

−9 −8 −7 −6 −5 −4 −3 −2 −1 0 1

−2

−1.5

−1

−0.5 0 0.5 1 1.5 2

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.12/28

(23)

Root locus

No delays

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

−1

−0.8

−0.6

−0.4

−0.2 0 0.2 0.4 0.6 0.8 1

h = 1, m = 0.4

−9 −8 −7 −6 −5 −4 −3 −2 −1 0 1

−2

−1.5

−1

−0.5 0 0.5 1 1.5 2

(24)

Root locus

No delays

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

−1

−0.8

−0.6

−0.4

−0.2 0 0.2 0.4 0.6 0.8 1

h = 1, m = 0.4

−9 −8 −7 −6 −5 −4 −3 −2 −1 0 1

−2

−1.5

−1

−0.5 0 0.5 1 1.5 2

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.12/28

(25)

Root locus

No delays

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

−1

−0.8

−0.6

−0.4

−0.2 0 0.2 0.4 0.6 0.8 1

h = 1, m = 0.4

1.5 2

(26)

Stabilising gains

No delays: the system is stabilized for all positive gains

In the presence of delays we have bounds on stabilising gains: are you able to find them?

Jury criterion!

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.13/28

(27)

Stabilising gains

No delays: the system is stabilized for all positive gains

In the presence of delays we have bounds on stabilising gains: are you able to find them?

Jury criterion!

(28)

Stabilising gains

No delays: the system is stabilized for all positive gains

In the presence of delays we have bounds on stabilising gains: are you able to find them?

Jury criterion!

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.13/28

(29)

Jury stability criterion

Consider the stability of A(z) = a0zn + a1zn−1 + . . . + an

Write the following table

a0 a1 . . . an−1 an

an an−1 . . . a1 a0 αn = aan

0

an−10 an−11 . . . an−1n−1

an−1n−1 an−1n−2 . . . an−10 αn−1 = a

n−1 n−1

an−10

. . .

(30)

The Jury-Criterion

Theorem 0 (Jury 1961) If a 0 > 0 then the

system has all roots inside the unit circle if and only if all a k 0 with k = 0, 1, . . . , n − 1 are positive. If no a k 0 is zero, then the number of negative a k 0 is equal to the number of roots outside the unit

circle.

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.15/28

(31)

The two-dimensional case

Consider the stability of A(z) = z2 + a1z + a2

Jurys table is

1 a1 a2

a2 a1 1 α2 = a2

1 − a22 a1(1 − a2)

a1(1 − a2) 1 − a22 α1 = aa1

2+1

1 − a22 − a21 1−a1+a2

2

(32)

Going back to our example

The equation is z2 + (kω − e−aT)z + kωα, where ω = 1 − e−amT, α = e−amTω−e−aT

applying the Jury criterion, the system is stable iff

2e−amTe−aT+1

−e−aT−1 < k < e−amT1

−e−aT 0 < m < −log

e−aT −1 2

aT

−1 < k < min{e−amT1

−e−aT , −2e−amT1+e−aT

−eaT−1} otherwise The stabiliy margin decreases with the introduced dealy

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.17/28

(33)

DT models of sampled-data systems

Using state space representation

Consider a system ˙x = F x + Gu, y = Hx The ZoH equivalent is given by:

x((k + 1)T ) = Φx(k) + Γu(k) y = Cx(k)

where Φ = e F T , Γ = R 0 T e F τ dτ G

(34)

Example

G(s) = 1/s

2

State space representations:

˙x =

0 1 0 0

 x +

 0 1

 u, y = [1, 0]x

Φ = e

F T

= I + F T + . . . =

1 T 0 1

Γ = [IT + F T

2

/2! + F

2

T

3

/3! + . . .]G =

T

2

/2 T

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.19/28

(35)

Example

G(s) = 1/s

2

State space representations:

˙x =

0 1 0 0

 x +

 0 1

 u, y = [1, 0]x Φ = e

F T

= I + F T + . . . =

1 T 0 1

Γ = [IT + F T

2

/2! + F

2

T

3

/3! + . . .]G =

T

2

/2 T

(36)

Example

G(s) = 1/s

2

State space representations:

˙x =

0 1 0 0

 x +

 0 1

 u, y = [1, 0]x

Φ = e

F T

= I + F T + . . . =

1 T 0 1

 Γ = [IT + F T

2

/2! + F

2

T

3

/3! + . . .]G =

T

2

/2 T

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.19/28

(37)

Example

G(s) = 1/s

2

State space representations:

˙x =

0 1 0 0

 x +

 0 1

 u, y = [1, 0]x

Φ = e

F T

= I + F T + . . . =

1 T 0 1

(38)

What about delay?

Consider the system: ˙x = F x + Gu(t − λ), y = Hx The general solution is given by

x((k + 1)T ) = e

F T

x(kT ) + R

(k+1)T

kT

e

F ((k+1)T −τ

Gu(τ − λ)dτ Let λ = lT − mT , with l ∈ N, m ∈ [0, 1)

1 2 3 4 5 6 7 8

0 0.2 0.4 0.6 0.8 1

mT

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.20/28

(39)

Delays

We come up with

x((k+1)T ) = e

F T

x(kT )+Γ

1

u((k−l)T )+Γ

2

u((k−l+1)T ) where:Γ

1

= R

kT +(1−m)T

kT

e

F (k+1)T −τ

Gdτ , Γ

2

= R

(k+1)T

kT +(1−m)T

e

F (k+1)T −τ

Gdτ

with the change of variable: η = (k + 1)T − τ we get:

Γ

1

= R

T

mT

e

F η

Gdη Γ

2

= R

mT

0

e

F η

Gdη

(40)

The case l = 1

Let’s use x(k) for x(kT ) and u(k) for u(kT ) The DT system is described by

x(k + 1) = Φx(k) + Γ

1

u(k − 1) + Γ

2

u(k)

Introduce a new state variable z(k) = u(k − 1) The system dynamic equation becomes:

x(k + 1) z(k + 1)

 =

Φ Γ

1

0 0

x(k) z(k)

 +

 Γ

2

1

 u(k) y(k) = [H, 0][

x(k)z(k)

]

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.22/28

(41)

The case l = 1

Let’s use x(k) for x(kT ) and u(k) for u(kT ) The DT system is described by

x(k + 1) = Φx(k) + Γ

1

u(k − 1) + Γ

2

u(k) Introduce a new state variable z(k) = u(k − 1)

The system dynamic equation becomes:

x(k + 1) z(k + 1)

 =

Φ Γ

1

0 0

x(k) z(k)

 +

 Γ

2

1

 u(k)

y(k) = [H, 0][

x(k)z(k)

]

(42)

The case l = 1

Let’s use x(k) for x(kT ) and u(k) for u(kT ) The DT system is described by

x(k + 1) = Φx(k) + Γ

1

u(k − 1) + Γ

2

u(k) Introduce a new state variable z(k) = u(k − 1) The system dynamic equation becomes:

x(k + 1) z(k + 1)

 =

Φ Γ

1

0 0

x(k) z(k)

 +

 Γ

2

1

 u(k) y(k) = [H, 0][

x(k)z(k)

]

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.22/28

(43)

The case l = 1

Let’s use x(k) for x(kT ) and u(k) for u(kT ) The DT system is described by

x(k + 1) = Φx(k) + Γ

1

u(k − 1) + Γ

2

u(k) Introduce a new state variable z(k) = u(k − 1) The system dynamic equation becomes:

x(k + 1)

 

Φ Γ

1

 

x(k)

 

Γ

2

(44)

The case l > 1

The DT system is described by

x (k + 1) = Φx(k) + Γ

1

u (k − l) + Γ

2

u (k − l + 1)

New state variables

z

1

(k) = u(k − l)

z

2

(k) = u(k − l + 1) . . .

z

l

(k) = u(k − 1)

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.23/28

(45)

The case l > 1

The DT system is described by

x (k + 1) = Φx(k) + Γ

1

u (k − l) + Γ

2

u (k − l + 1)

New state variables

z

1

(k) = u(k − l)

z

2

(k) = u(k − l + 1)

. . .

(46)

The case l > 1 - I

The system dynamic equation becomes:

x(k + 1) z

1

(k + 1)

. . . z

l

(k + 1)

=

Φ Γ

1

Γ

2

. . . 0 0 0 1 . . . 0 . . . .

0 0 0 . . . 1 0 0 0 . . . 0

x(k) z

1

(k)

. . . z

l

(k)

 +

 0 0 . . .

0 1

u(k)

y(k) = [H, 0, 0 . . . , 0]

x(k) z

1

(k)

. . . z

l

(k)

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.24/28

(47)

The case l = 0

Hey, this is prediction not delay? Does it make sense?

To start with, the system is causal: the

predicted value will not manifest itself before the end of the sampling period.

The system with l = 0, m 6= 0 will show the

same response at t = 0 that the origal system would show at t = mT

This is a tool to study the intersample

behaviour (invented by Jury and originally

called modified Z−transform

(48)

The case l = 0

Hey, this is prediction not delay? Does it make sense?

To start with, the system is causal: the

predicted value will not manifest itself before the end of the sampling period.

The system with l = 0, m 6= 0 will show the

same response at t = 0 that the origal system would show at t = mT

This is a tool to study the intersample

behaviour (invented by Jury and originally called modified Z−transform

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.25/28

(49)

The case l = 0

Hey, this is prediction not delay? Does it make sense?

To start with, the system is causal: the

predicted value will not manifest itself before the end of the sampling period.

The system with l = 0, m 6= 0 will show the

same response at t = 0 that the origal system would show at t = mT

This is a tool to study the intersample

behaviour (invented by Jury and originally

called modified Z−transform

(50)

The case l = 0

Hey, this is prediction not delay? Does it make sense?

To start with, the system is causal: the

predicted value will not manifest itself before the end of the sampling period.

The system with l = 0, m 6= 0 will show the

same response at t = 0 that the origal system would show at t = mT

This is a tool to study the intersample

behaviour (invented by Jury and originally called modified Z−transform

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.25/28

(51)

The case l = 0

The DT system is described by

x(k + 1) = Φx(k) + Γ

1

u(k) + Γ

2

u(k + 1) To eliminate u(k + 1) introduce the change of variable

ξ(k) = x(k) − Γ

2

u(k)

After some computation we get:

ξ(k + 1) = Φξ(k) + Γu(k) y(k) = Hξ(k) + Ju(k)

where Γ = (ΦΓ

2

+ Γ

1

) , J = HΓ

2

(52)

The case l = 0

The DT system is described by

x(k + 1) = Φx(k) + Γ

1

u(k) + Γ

2

u(k + 1)

To eliminate u(k + 1) introduce the change of variable ξ(k) = x(k) − Γ

2

u(k)

After some computation we get:

ξ(k + 1) = Φξ(k) + Γu(k) y(k) = Hξ(k) + Ju(k)

where Γ = (ΦΓ

2

+ Γ

1

), J = HΓ

2

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.26/28

(53)

The case l = 0

The DT system is described by

x(k + 1) = Φx(k) + Γ

1

u(k) + Γ

2

u(k + 1)

To eliminate u(k + 1) introduce the change of variable ξ(k) = x(k) − Γ

2

u(k)

After some computation we get:

ξ(k + 1) = Φξ(k) + Γu(k)

(54)

An example

Consider a first order system ˙x = fx + gu Γ1 = RT

mT ef ηgdη = ef T−ef f mT , Γ2 = emf Tf −1 Augmented discrete-time system:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T ef T−ef f mT

0 0

3 5

2 4

x(k) z(k)

3 5+

2 4

emf T−1 f

1

3

5u(k)

Control by static feedback u(k) = kx(x) yields the closed loop dynamic:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T + kemf Tf −1 ef T−ef f mT

k 0

3 5

Stability can be studied- via Jury criterion - on

z2 − (ef T + kemf T − 1

f )z − kef T − ef mT f

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.27/28

(55)

An example

Consider a first order system ˙x = fx + gu Γ1 = RT

mT ef ηgdη = ef T−ef f mT , Γ2 = emf Tf −1 Augmented discrete-time system:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T ef T−ef f mT

0 0

3 5

2 4

x(k) z(k)

3 5+

2 4

emf T−1 f

1

3

5u(k)

Control by static feedback u(k) = kx(x) yields the closed loop dynamic:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T + kemf Tf −1 ef T−ef f mT

k 0

3 5

Stability can be studied- via Jury criterion - on

z2 − (ef T + kemf T − 1

f )z − kef T − ef mT f

(56)

An example

Consider a first order system ˙x = fx + gu Γ1 = RT

mT ef ηgdη = ef T−ef f mT , Γ2 = emf Tf −1 Augmented discrete-time system:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T ef T−ef f mT

0 0

3 5

2 4

x(k) z(k)

3 5+

2 4

emf T−1 f

1

3

5u(k) Control by static feedback u(k) = kx(x) yields the closed loop dynamic:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T + kemf Tf −1 ef T−ef f mT

k 0

3 5

Stability can be studied- via Jury criterion - on

z2 − (ef T + kemf T − 1

f )z − kef T − ef mT f

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.27/28

(57)

An example

Consider a first order system ˙x = fx + gu Γ1 = RT

mT ef ηgdη = ef T−ef f mT , Γ2 = emf Tf −1 Augmented discrete-time system:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T ef T−ef f mT

0 0

3 5

2 4

x(k) z(k)

3 5+

2 4

emf T−1 f

1

3

5u(k)

Control by static feedback u(k) = kx(x) yields the closed loop dynamic:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T + kemf Tf −1 ef T−ef f mT

k 0

3 5 Stability can be studied- via Jury criterion - on

z2 − (ef T + kemf T − 1

f )z − kef T − ef mT f

(58)

An example

Consider a first order system ˙x = fx + gu Γ1 = RT

mT ef ηgdη = ef T−ef f mT , Γ2 = emf Tf −1 Augmented discrete-time system:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T ef T−ef f mT

0 0

3 5

2 4

x(k) z(k)

3 5+

2 4

emf T−1 f

1

3

5u(k)

Control by static feedback u(k) = kx(x) yields the closed loop dynamic:

2 4

x(k + 1) z(k + 1)

3 5 =

2 4

ef T + kemf Tf −1 ef T−ef f mT

k 0

3 5

Stability can be studied- via Jury criterion - on

z2 − (ef T + kemf T − 1

f )z − kef T − ef mT f

Ingegneria dell ’Automazione - Sistemi in Tempo Reale – p.27/28

(59)

Summing up....

Delays are relatively easy to model

They extend the model with addtional state variables

This effect has to be carefully accounted for in

control design

Riferimenti

Documenti correlati

◦ The response time of the task with the highest priority is minimum and equal to its WCET.. ◦ The response time of the other tasks depends on the interference of the higher

Supponendo di realizzare il controllore utilizzando una libreria matematica in virgola fissa, si stimi il minimo numero di cifre decimali dopo la virgola necessario a rappresentare

 one blocked thread must be removed from state RUNNING and be moved in the semaphore blocking queue.

 a closed chain of threads exists such that each thread holds at least one resources needed by the next thread in the chain.  then a deadlock

Browser Shell Videogame Printer.

– If number of processors = 1 -&gt; threads execute in time- sharing. – If number of processors &lt; number of

– The handler saves the registers that will be modified on the stack. – Executes the interrupt

– Terminating (the thread is about to terminate).. Date: 8/03/2004 Ingegneria dell'Automazione: Sistemi in Tempo Reale Giuseppe Lipari.