Professional Documents
Culture Documents
Experiment 8: To Compute The Steady-State Error of Transfer Functions Using MATLAB
Experiment 8: To Compute The Steady-State Error of Transfer Functions Using MATLAB
𝐸 = 𝑅(𝑠) − 𝐶(𝑠)
If we call the output at steady state then the steady state error will be given by
𝑐𝑠𝑡𝑒𝑎𝑑𝑦 𝑠𝑡𝑎𝑡𝑒 = 𝐾𝑒𝑠𝑡𝑒𝑎𝑑𝑦 𝑠𝑡𝑎𝑡𝑒
And
𝑐𝑠𝑡𝑒𝑎𝑑𝑦 𝑠𝑡𝑎𝑡𝑒
𝐾=
𝑒𝑠𝑡𝑒𝑎𝑑𝑦 𝑠𝑡𝑎𝑡𝑒
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
This shows that by increasing the gain the steady state error reduces and output increases.
Consider the figure below where G(s) is a system given the error signal is given by
𝐸 = 𝑅(𝑠) − 𝐶(𝑠)
𝐶(𝑠) = 𝐸(𝑠)𝐺(𝑠)
Substituting it in above mentioned equation. We get the following error equation
𝑅(𝑠)
𝐸(𝑠) =
1 + 𝐺(𝑠)
By applying the final value theorem we can find the final value without using its inverse
transform.
So, 𝑒(∞) = lim 𝑒(𝑡) = lim 𝑠𝐸(𝑠)
𝑡→∞ 𝑠→0
Put the values and you will get the desired error for any input.\
In-Lab Exercise
1.1: Find the steady state error for the following given system as transfer function excited by step
input? Use MATLAB to evaluate it.
5
𝐺(𝑠) = 𝑠2 +7𝑠+10
Mathematically:
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
MATLAB Code:
clear all
clc
n = [5];
d = [1 7 10];
G = tf(n,d)
k = dcgain(G)
E = 1/(1+k)
Output:
1.2: For the given system G(s), find the steady state error for step input when 𝐺(𝑠) =
120(𝑠 + 2)
⁄(𝑠 + 3)(𝑠 + 4) .verify using MATLAB
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
Mathematically:
MATLAB Code:
clear all
clc
n = [120 240];
d = [1 7 12];
G = tf(n,d)
K = dcgain(G)
E = 1/(1+K)
Output:
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
1.3: Find the esteady state for 2 u(t), 5u(t) and 7u(t). verify using MATLAB
Mathematical:
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
MATLAB Code:
clear all
clc
syms s
Expression = s*((2/s)/(1+(5/(s^2+7*s+10))));
pretty(Expression)
limit(Expression,s,0)
Expression = s*((5/s)/(1+(5/(s^2+7*s+10))));
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
pretty(Expression)
limit(Expression,s,0)
Expression = s*((7/s)/(1+(5/(s^2+7*s+10))));
pretty(Expression)
limit(Expression,s,0)
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
1.4: What happens to the steady state error when the system is excited by ramp and parabola
input? Give facts mathematically and verify using MATLAB. Give transfer function of q1.1.
Mathematical:
MATLAB Code:
clear all
clc
syms s
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
%For Ramp
Expression = s*(5/(s^2+7*s+10));
pretty(Expression)
A = limit(Expression,s,0)
E = 1/A
%For Parabolic
Expression = (s^2)*(5/(s^2+7*s+10));
pretty(Expression)
A = limit(Expression,s,0)
E = 1/A
Lab Manual of ‘FEEDBACK CONTROL SYSTEMS’
To comprehend
the theoretical
Correctly With minor Partially Poorly
basis for Doesn’t
1 answers all the mistakes answers answers the answers the
analyzing the answer
questions all the questions questions questions
given control
systems