Part 13 - Discretization
ERE103 Date: December 6, 2023 3 min read Introduction
In this part we’ll see how all of this theory will actually be represented when we need to use a computer for calculations.
Implementation
When we want to implement discrete controllers and systems we need to sample.
Sampling is when we sample points from our signal with a certain time period.
We call our sampling period for:
h=fs1
Where fs is the so-called sampling frequency.
To represent a system in a computer we need to sample our signals.
So e(t) becomes e(kh) and y(t) becomes y(kh)
We will usually encounter differential equations.
These equations that describe G(s) can be approximated as:
y˙(t)≈=hy(t+h)−y(t)
y¨(t)=(y˙)˙=hy˙(t+h)−y˙(t)=hhy(t+2h)−y(t+h)−hy(t+h)−y(t)=h2y(t+2h)−2y(t+h)−y(t)
Example 1
y˙(t)+ay(t)=a⋅u(t) ∣ t=kh, k=0,1,…hy(kh+h)−y(kh)+ay(kh)=a⋅u(kh)y(kh+h)=(1−ah)y(kh)+a⋅u(kh)
We won’t that much in depth about it:
Definition 1 (Z-transform)
Y(z)=Z{y(kh)}=k=0∑∞y(kh)⋅z−k
Example 2
y(kh)=e−akhY(z)=k=0∑∞e−akh⋅z−k=k=0∑∞(e−ak⋅z−1)k=1−e−ah⋅z−11=z−e−ahz
Theorem 1 (Delay Theorem)
Z{y(kh−lh)}=z−l⋅Y(z)
Controller design based on analog G(s) and F(s)
The discretization of Ld(z)=Fd(z)Gd(z)
Sensitivity function, Sd(z)=1+Ld(z)1
Inverse sensitivity function, Sd(z)=1+Ld(z)Ld(z)