Experiment 7 Digital Control Systems
Experiment 7 Digital Control Systems
Objectives
Procedure
Section-1
ZOH Plant
r(t) e(t) e*(t) 1 y(t)
Gc(s)
s (s + 1)
Ts
The overall transfer function of this system can be determined using the MATLAB
function c2dm as following.
Write the discrete transfer function of the system returned by the MATLAB.
numd =
dend = T(z) = Y(z)/R(z) = ----------------------
The discrete-time system can be converted back to the continuous time system using
MATLAB function d2cm as following.
n=
d= G(s) = ---------------------------
G(z) = -----------------------------
>>printsys(n, d, ‘s’) ;
G(s) = -----------------------------
Use a different sampling time (say 0.1) in the above step and see the transfer function
returned by the d2cm function.
G(s) = -------------------
Section-2
In this section, you will find the closed-loop discrete transfer function of the system shown
in the beginning of this experiment. You will plot the step and impulse response of the
discrete-time system and then compare the response with the continuous-time system
(system without using a sampler and ZOH).
Following commands are used to determine the closed-loop transfer function using
numerator numd and denominator numd you have found in previous steps. The third
argument of the function tf is the sampling time. (T=1sec is used the previous steps)
Write the closed-loop discrete-time transfer function returned by the previous step.
G(z) = ---------------------------------
where the third argument of the function feedback is the feedback gain (unity in this
case and the forth argument shows the negative feedback.
Write the closed-loop discrete-time transfer function found in the previous step.
numerator = [ ] denominator = [ ]
>>dstep([ ], [ ]) ;
Sketch the discrete-time step response in the space given on the next page. Hold the
step-response figure by using command hold as you will plot the step-response of the
continuous-time system in the same figure in the next step.
Now, use the following commands to plot the step-response of the continuous-time
system with unity feedback. (The system shown in the beginning without a ZOH and
sampler).
Use the final time in the function step equal to the final time of the discrete-time step-
response plotted earlier and sketch the step-response in the same space where you have
plotted the discrete-time step response. Use different color or line style to differentiate
between the two curves.
Section-2
Use the following command to plot the root-locus of the discrete-time system in the z-
plane shown below.
1.5
0.5
-0.5
-1
-1.5
-2 -1.5 -1 -0.5 0 0.5 1 1.5
Use the following command to plot the root-locus of the continuous-time system in the
s-plane shown below.
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….
………………………………………………………………………………………….
………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….
………………………………………………………………………………………….
………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….
………………………………………………………………………………………….
………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….
………………………………………………………………………………………….
………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
Calculate the sampling time T for which the discrete-time system is unstable.
T=
Y(z)/R(z) = -------------------------------
Zeors = Poles =
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….
………………………………………………………………………………………….
………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….
………………………………………………………………………………………….
………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….
………………………………………………………………………………………….
………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………
………………….………………………………………………………………………