Fa18-Bce-001 Lab Assignment 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

TEACHER: Dr.

BILAL KHAN
LAB ENGINEER: SIR MASROOR
SUBJECT: CONTROL SYSTEM
LAB NO: 2
CLASS: BCE-6A

LAB REPORT BY:

NAME Registration Number

Ali Haroon Turk CIIT/ FA18-BCE -001/ATD

25 MARCH,2021
LAB 02
The objective of this lab is to understand how to use simple commands in MATLAB to construct the
block diagrams and use the same commands to minimize the block diagrams.

Q1)Lab Task Write down a code that minimizes the following block diagrams and represents them
with one transfer function.
a).

Figure 1: In this question we were asked to minimize the block diagram, in order to do that I took
of feedback of G1 and G2 respectively represented by G3, then I solved G3 and constant ‘K’ in
series which is represented by G4 and then again I took the feedback of G4 which is represented by
G5. After all this I plotted step response of our reduced block diagram.
Figure 2: Step response of first question part a with the value of constant k = 5.

b).
Figure 3: In this question first, we solve G2 and G3 parallelly, secondly we got feedback from the
previous parallelly solved block which is denoted by G5, with G4 and then finally this feedback
block G6 is solved in series with G1.

Figure 4: Step response of question 1-part b


c).

Figure 5: Scope output of SIMULINK block diagram.


Figure 6: In this question first I solved G1 and G2 to one block G5, secondly I solved G5 and G3 in
series which is denoted by G6, In third step I solved G4 and reciprocal of G3 in parallel which is
represented by G7 and finally I took feedback of G6 and G7 represented by G8. After all this we
plotted step response of our reduced block diagram.

Figure 7 :Step response of first question part c

Q2). Find the step response of the open system and then close loop the system with unity
feedback and then find the step response. Compare the results and discuss
𝒔+𝟐
𝟐𝒔𝟑 + 𝟐𝒔𝟐 + 𝟑𝒔 + 𝟑

Figure 8: In this question we were asked to find the step response of the unity feedback, So I took
the feedback and after this I plotted the step response of the system.

Figure 9: Step response of closed loop


Figure 10: In this open loop response the graph of both are different from one another, wavelength
of open-loop response is greater than closed-loop response(by comparing figure 8 and 10).

Figure 11: Graph of open-loop response


Conclusion:

In this lab learnt about the different kind of tools we can use in MATLAB and SIMULINK to get our
desired result. First, we were introduced to a concept called “Block Diagram Reduction” , then we
learnt about the basic definitions such as open-loop, closed-loop , feedback etc., and some basic
methods to solve series or parallel connections and then we used all this methods to minimize systems
that were assigned to us. In last question I compared the step response of both open-loop and closed-
loop and gave my remarks on them.

You might also like