Professional Documents
Culture Documents
Experiment 3
Time Response of First Order Systems Using Control Toolbox and
SIMULINK
Objective
1. To code in MATLAB to find system response of a first order system using Control System Toolbox.
2. To use SIMULINK LTI Viewer to analyze the system response of first order system.
Theoretical Explanation
1
Where K is the DC Gain. If the input is a unit step, R ( s )= so the output is a step response C(s). The general
s
equation of 1st order control system is
a
C ( s ) =R ( s ) . G ( s )=
s (s +a)
There are two poles, one is the input pole at the origin s = 0 and the other is the system pole at s = -a, this pole
is at the negative axis of the pole plot. Total response become c ( t ) =c f ( t )+ c n(t) which is the sum of forced
response and natural response.
2
National University of Technology
a. Poles
b. Zeros
c. Pole-zero plot
d. Step response and label it for system characteristics.
%Task_1
%G1
syms s
G1=10/(s+10)
Disp(G1)
P=poles(G1)
T=tf([0,10],[1,10]);
Z=zero(T)
pzmap(T)
step(T)
3
National University of Technology
%G2
syms s
G2=10/(s+5)
Disp(G2)
P=poles(G2)
T=tf([0,10],[1,5]);
Z=zero(T)
4
National University of Technology
pzmap(T)
step(T)
5
National University of Technology
%G3
syms s
G3=10*(s+2)/(s+10)
Disp(G3)
P=poles(G3)
T=tf([10,20],[1,10]);
Z=zero(T)
pzmap(T)
step(T)
6
National University of Technology
%Task_2
T1=tf([0,10],[1,10]);
Z=zero(T1)
Tr1=2.2/Z
Ts1=4/Z
7
National University of Technology
T2=tf([0,10],[1,5]);
Z=zero(T2)
Tr2=2.2/Z
Ts2=4/Z
T3=tf([10,20],[1,10]);
Z=zero(T3)
Tr3=2.2/Z
Ts3=4/Z
3- Use codes from task 1 and 2 to calculate Tr and Ts for G1, G2 and G3. Compare your answers.
%Task_3
%G1
tr=2.2/10
disp(tr)
ts=4/10;
disp(ts);
%G2
tr=2.2/5
disp(tr)
ts=4/5;
disp(ts);
%G3
tr=2.2/10
disp(tr)
ts=4/10;
disp(ts)
4- Use Simulink model for G1, G2 and G3 and show step response using LTI Viewer and show the
characteristics
8
National University of Technology
9
National University of Technology
10
National University of Technology
11
National University of Technology
Control system toolbox provides algorithms for systematically analyzing, designing and tuning linear control
systems. You can specify your system as transfer function, zero-pole-gain, or frequency-response model to
analyze and visualize system behavior in time and frequency domains. The toolbox contains the
functions step and impulse which allows the simulation of the response of a control system to these test
signals. Given the numerator and denominator of a system transfer function and simulation time
duration t given as a vector, these functions will return the response y(t) that determines the system
performance
Conclusion
Poles and zeros reveal a significant amount of information about stability and the time-domain response of the
system. A frequency domain analysis of system only shows what happens in the steady state when the system
is driven with different frequencies; it doesn’t say anything about the transient response. Time-domain
simulations can also show you the transient response, but it is difficult to determine whether resonance can
occur in the system. Transient simulations should complement pole-zero analysis; they are great for getting an
in-depth view of a system’s temporal response after you determine the poles and zeros.
12