Digital Control System - Compressed
Digital Control System - Compressed
Sampling operation in sampled data and digital control system is used to model either the
sample and hold operation or the fact that the signal is digitally coded. If the sampler is used
to represent S/H (Sample and Hold) and A/D (Analog to Digital) operations, it may involve
delays, finite sampling duration and quantization errors. On the other hand if the sampler is
used to represent digitally coded data the model will be much simpler. Following are two
popular sampling operations:
In general, a sampler is the one which converts a continuous time signal into a pulse
modulated or discrete signal. The most common type of modulation in the sampling and hold
operation is the pulse amplitude modulation.
The symbolic representation, block diagram and operation of a sampler are shown in
Figure 1. The pulse duration is p second and sampling period is T second. Uniform rate
sampler is a linear device which satisfies the principle of superposition. As in Figure 1, p(t) is
a unit pulse train with period T.
where 𝑢𝑠 (𝑡) represents unit step function. Assume that leading edge of the pulse at t
= 0 coincides with t = 0. Thus 𝑓𝑝∗ (𝑡) can be written as
42
Figure : Finite pulse with sampler : (a) Symbolic representation (b) Block diagram (c) Operation
Sampling frequency rate should be greater than the Nyquist rate which is twice the highest
frequency component of the original signal to avoid aliasing.
If the sampling rate is less than twice the input frequency, the output frequency will be
different from the input which is known as aliasing. The output frequency in that case is
called alias frequencyand the period is referred to as alias period.
The overlapping of the high frequency components with the fundamental component in the
frequency spectrum is sometimes referred to as folding and the frequency ws/2 is often
known as folding frequency. The frequency wc is called Nyquist frequency.
A low sampling rate normally has an adverse effect on the closed loop stability. Thus, often
we might have to select a sampling rate much higher than the theoretical minimum.
Ideal Sampler : In case of an ideal sampler, the carrier signal is replaced by a train of unit
impulses as shown in Figure 2. The sampling duration p approaches 0, i.e., its operation is
instantaneous.
43
the output of an ideal sampler can be expressed as
One should remember that practically the output of a sampler is always followed by a hold
device which is the reason behind the name sample and hold device. Now, the output of a
hold device will be the same regardless the nature of the sampler and the attenuation
factor p can be dropped in that case. Thus the sampling process can be be always
approximated by an ideal sampler or impulse modulator.
Z- Transform
Let the output of an ideal sampler be denoted by f*(t)
∞
44
Z - Transforms of some elementary functions
45
For a polynomial function 𝒙 𝒌 = 𝒂𝒌
46
Properties of Z-transform
Inverse Z-transforms
f(t) is the continuous time function whose Z-transform is F(z). Then the inverse transform
is not necessarily equal to f(t), rather it is equal to f(kT) which is equal to f(t) only at the
sampling instants. Once f(t) is sampled by an the ideal sampler, the information between
the sampling instants is totally lost and we cannot recover actual f(t) from F(z).
47
MATLab Code to Obtain the inverse Z transform (filter)
Example
𝑧(𝑧+2)
Obtain the inverse z transform of 𝑋 𝑧 =
(𝑧−1)2
𝑧 2 + 2𝑧
𝑋 𝑧 =
𝑧 2 − 2𝑧 + 1
num=[1 2 0];
den=[1 -2 1];
u=[1 zeros(1,30)];%If the values of x(k) for k=0,1,2,....,30 are desired
filter(num,den,u)
ans =
Columns 1 through 15
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43
Columns 16 through 30
46 49 52 55 58 61 64 67 70 73 76 79 82 85 88
Column 31
91
48
Application of Z-transform in solving Difference Equation
One of the most important applications of Z-transform is in the solution of linear difference
equations. Let us consider that a discrete time system is described by the following difference
equation.
To emphasize the fact that y(k) = 0 for k < 0 , it is a common practice to write the solution
as:
In the analysis and design of continuous time control systems, the pole-zero configuration of
the transfer function in s-plane is often referred. We know that:
For relative stability again the left half is divided into regions where the closed loop transfer
function poles should preferably be located.
Similarly the poles and zeros of a transfer function in z-domain govern the performance
characteristics of a digital system.
49
One of the properties of F*(s) is that it has an infinite number of poles, located periodically with
intervals of ±𝑚𝑤𝑠 with m = 0, 1, 2,......, in the s-plane where 𝑤𝑠 is the sampling frequency in
rad/sec.
If the primary strip is considered, the path, as shown in Figure below, will be mapped into a unit
circle in the z-plane, centered at the origin.
50
Since
where m is an integer, all the complementary strips will also map into the unit circle.
Mapping guidelines
1. All the points in the left half s-plane correspond to points inside the unit circle in z-plane.
2. All the points in the right half of the s-plane correspond to points outside the unit circle.
3. Points on the jw axis in the s-plane correspond to points on the unit circle 𝑍 = 1 in the z-
plane.
Pulse transfer function relates Z-transform of the output at the sampling instants to the Z-
transform of the sampled input.
When the same system is subject to a sampled data or digital signal r*(t), the corresponding
block diagram is given in Figure 1 .
The output of the system is C(s) = G(s)R*(s). The transfer function of the above system is
difficult to manipulates because it contains a mixture of analog and digital components.
Thus, for ease of manipulation, it is desirable to express the system characteristics by a
transfer function that relates r*(t) to c*(t), a fictitious sampler output, as shown in Figure 1.
51
One can then write:
∞
If we define
52
Pulse transfer of discrete data systems with cascaded elements
and
We can therefore conclude that the z-transfer function of two linear system separated by a
sampler are the products of the individual z-transfer functions.
Figure : Discrete data system with cascaded elements, not separated by a sampler
The continuous output C(s) can be written as
Note:
53
The overall output is thus,
Figure : Block diagram of a closed loop system with a sampler in the forward path
The objective is to establish the input-output relationship. For the above system, the output of
the sampler is regarded as an input to the system. The input to the sampler is regarded as
another output. Thus the input-output relations can be formulated as
54
Taking pulse transformation on both sides of C(s)
Now, if we place the sampler in the feedback path, the block diagram will look like the
Figure 2.
Figure 2: Block diagram of a closed loop system with a sampler in the feedback path
The corresponding input output relations can be written as:
𝐸 𝑠 = 𝑅 𝑠 − 𝐻 𝑠 𝐶 ∗ (𝑠) … … … … … … . (4)
𝐶 𝑠 = 𝐺 𝑠 𝐸 𝑠 = 𝐺 𝑠 𝑅 𝑠 − 𝐺 𝑠 𝐻 𝑠 𝐶∗ 𝑠 … … … … … (5)
Taking pulse transformation of equations (4) and (5)
55
𝐶 ∗ (𝑠)
We can no longer define the input output transfer function of this system by either or
𝑅 ∗ (𝑠)
𝐶(𝑧)
.
𝑅(𝑧)
Since the input r(t) is not sampled, the sampled signal 𝑟 ∗ (𝑡) does not exist.
The continuous-data output C(s) can be expressed in terms of input as.
Similar to continuous time systems, the stability of the following closed loop system
can also be determined from the location of closed loop poles in z-plane which are the
roots of the characteristic equation
1.For the system to be stable, the closed loop poles or the roots of the characteristic
equation must lie within the unit circle in z-plane. Otherwise the system would be unstable.
2. If a simple pole lies at 𝑧 = 1, the system becomes marginally stable. Similarly if a pair
of complex conjugate poles lie on the 𝑧 = 1 circle, the system is marginally stable.
Multiple poles at the same location on unit circle make the system unstable.
56
Two stability tests can be applied directly to the characteristic equation without solving for
the roots.
→ Jury Stability test
→ Routh stability coupled with bi-linear transformation.
Jury Stability Test
Assume that the characteristic equation is as follows,
Where 𝑎0 > 0
57
Example : The characteristic equation is
Jury Table
Rest of the elements are also calculated in a similar fashion. The elements are b1=-0.0756
58
All criteria are satisfied. Thus the system is stable.
59