Fa18-Bce-001 Lab Assignment 4
Fa18-Bce-001 Lab Assignment 4
BILAL KHAN
SUBJECT: CONTROL SYSTEM
LAB ASSIGNMENT: 4
CLASS: BCE-6A
Figure 1: In this task I plotted the step response of the Transfer Function using command subplot
because I am plotting 4 step responses.
Figure 2: Step response of all four Transfer Functions in one figure
Figure 3: In this figure I enabled the characteristics of Transfer Function, As we can see G1 has
Rise Time Tr of 0.457s, %OS 32.9, Settling Time Ts 3.7s, and Peak Time Tp of 1.11s. Similarly we
can see G2 has Rise Time Tr of 0.546s, %OS 16.3, Settling Time Ts 2.69s, and Peak Time Tp of 1.2s.
G3 has Rise Time Tr of 1.41s, and Settling Time Ts 2.48s. And G4 has Rise Time Tr of 0.77s, %OS
77.8, Settling Time Ts 45.5s, and Peak Time Tp of 2.31s.
Figure 4: I wrote this code to find the value of constant K if % OS is 10%. For this I used if
condition with 2 conditions, if both conditions are true then K is added in series with G1then
feedback is taken after that step response is plotted. The value of K is 5.90 .
Figure 5: In this figure I enabled the characteristics of stepresponse, As we can see it has Rise
Time Tr of 1.51s, %OS 9.44, Settling Time Ts 4.85s, and Peak Time Tp of 3.31s.
Figure 6: I wrote this code to find the value of constant K if Settling Time Ts is 5 seconds. For this
I used if condition with 2 conditions, if both conditions are true then K is added in series with
G1then feedback is taken after that step response is plotted. The value of k is 3.40.
Figure 7: In this figure I enabled the characteristics of stepresponse, As we can see it has Rise
Time Tr of 2.92s, %OS 0.0926, Settling Time Ts 4.98s, and Peak Time Tp of 7.67s.