You are on page 1of 8

EE 301P: Control Systems Laboratory

Lab Exercise 11
Submitted by – Sonu Meena (B20233)

❖ Objective: - To tune system gain using frequency response methods.


❖ Theory: -
The Bode plot or the Bode diagram consists of two plots −

• Magnitude plot
• Phase plot
In both the plots, x-axis represents angular frequency (logarithmic scale).
Whereas, y axis represents the magnitude (linear scale) of open loop transfer
function in the magnitude plot and the phase angle (linear scale) of the open loop
transfer function in the phase plot.

❖ Experiment design: -
Part – a
In this part we’re Verifying the Bode plots and system stability using
MATLAB/Simulink which are done in pre-lab exercise.
We obtained the bode plot theoretically and, in this section, we’re comparing it
with obtained Bode plots by using MATLAB.
Given system –

For this given figure obtained open loop transfer function can be expressed as
below-
K × 100
G(s) =
s(s + 100)(s + 36)
Bode plots obtained in pre-lab-
Verifying the obtained plots with MATLAB-

MATLAB Code –
H = tf([100],[1 136 3600 0])
bode(H)
Reference: -
As from above graph we can see that our obtained Bode Plot by theoretically and
Practically, Both are same.

Part B –
As given that Phase Margin = 40 degree so for it, calculating the value of K and
we get K = 1177
• Comparing the value of K from MATLAB

MATLAB Code –
k=1177;
H = tf([100*k],[1 136 3600 0]);
m = allmargin(H)
bode(H)

• Reference –
So, from graph we can see that for value of K=1177 we get exact value of Phase
Margin to 40 degree so our calculation is right.

• Transient response Characteristics for K = 1177


MATLAB Code for Step Response –
k=1177;
H = tf([100*k],[1 136 3600 100*k]);
m = allmargin(H)
step(H)
Part C –
For the given value of Peak Overshoot = 9.5% we get the value of K = 583
Obtained Step Response for K = 583 for Peak Overshoot = 9.5%

MATLAB Code –
k = 583;
H = tf([100*k],[1 136 3600 100*k]);

figure
step(H)

You might also like