Professional Documents
Culture Documents
Lab Report CS 10 PDF
Lab Report CS 10 PDF
Lab # 10
Design of Proportional Controller and Lead/Lag Compensator
using Root Locus and Bode Plot Methods on MATLAB
Names UBAID UR REHMAN
Class FA18-BEE-E
MATLAB code
clc
clear all
close alL
num = [1 7];
den = [1 40 475 1500 0];
Tf1 = tf(num , den)
rlocus(Tf1) %plotting rootlocus
axis([-10 10 -10 10])
sgrid(0.7,3.3) % mentioning zeta and wn on the graph
[k , poles] = rlocfind(Tf1); % selecting appropriate gain
constant k on the %graph so that to verify thr criterior
tf2 = series(k , Tf1);
Tf3 = feedback(tf2 , 1)
step(Tf3)
stepinfo(Tf3)
RESULT
COMMENTS
The lab tasks were to design a feedback controller given the design specification through the root locus
method. Corresponding zeta and wn values were mentioned on the root locus graph to select some
optimum value of gain constant k. after that step response were plotted to verify if our system meets the
design criterion.
MATLAB CODE
clc
clear all
close all
num = [1];
den = [1 8 15 0];
Tf1 = tf(num , den)
COMMENTS
The lab tasks were to design a feedback controller given the design specification through the root locus
method. Corresponding zeta and wn values were mentioned on the root locus graph to select some
optimum value of gain constant k. after that step response were plotted to verify if our system meets the
design criterion.
TASK 2
MATLAB CODE
clc
clear all
close all
%LAB 4
%Post Lab 2
%Transfer Function for a Field controlled DC Motor speed and
position
%respectivly
COMMENTS
System’s transfer function was found using control theory. A feedback controller was
designed with respect to requirement of the task using root locus method. The content under
this task is the process which was followed.
CONCLUSION
This lab helped us understand root locus theory. It described how root locus should be used to
determine an optimum value of gain constant. Selecting an optimum value gain constant is
important as it determines properties, stability and poles of the system