Sei sulla pagina 1di 11

Lab # 07 Control Systems

Control System
EEE-325

Lab Report No. 07

Block Diagram Reduction and Analysis and Design of Feedback Systems

Semester & Section

BEE-5B

Submitted by:

M. Ibtisam Ul Hassan

FA17-BEE-082

Submission Date:

November 18, 2019

Post Lab (4)

Pre-Lab (1) In Lab(5) Data Presentation Data Analysis Writing Style Total(10)

1
Lab # 07 Control Systems

Objectives:

 To reduce block diagrams using MATLAB function.


 Plot the graphs of functions.
 Verification of results using SIMULNK.
 To design controller system gain for obtaining specified poles.

In-lab Tasks:

Task # 1:

a) For the following Figures find the transfer function (C/R) using series, parallel and
feedback functions and plot unit step response for the system. Verify the results using
Simulink.

Figure 1: Step Response of Series Connected Blocks

2
Lab # 07 Control Systems

Figure 2: Block Diagram and Graph in SIMULINK

In this task, a series block diagram is implemented via a MATLAB code and output is verified by
implementing the same block diagram in SIMULINK. Transfer functions are as follows:

G1= 1/s+1; G2= 1/s+2; G3= 1/s+3;

b) Parallel Connected Blocks:

Figure 3: Code for Parallel Connection

3
Lab # 07 Control Systems

Figure 4: Graph

Figure 5: Simulink Model for Parallel Connection

In this task, parallel blocks are implemented in MATLAB and results are verified through SIMULINK.
Transfer functions are as follows:

G1= 1/s+1; G2= 1/s+2; G3= 1/s+3;

c) Feedback System:

Figure 6: Feedback System Code

4
Lab # 07 Control Systems

Figure 7: Graph

Figure 8: SIMULINK Model

In this task, a feedback system is implemented in MATLAB by using the command feedback. Results
are verified using SIMULINK. Transfer functions are as follows:

G1= 1/s+1; G2= 1/s+2; G3= 1/s+3; H1=1/𝑠 2 +2s+3; H2=1/𝑠 2 +1

Task # 2:

Using connect functions find the equivalent transfer function for block diagrams. Plot
the unit step response and verify using Simulink.

5
Lab # 07 Control Systems

a)

Figure 9: Code using Connect command

Figure 10: Graph Task2

6
Lab # 07 Control Systems

Figure 11: SIMULINK model

In this task, connect command is implemented to connect all the blocks. Sumblk command was
used where summer is encountered. The results obtained in MATLAB are cross verified using
SIMULINK.

b)

7
Lab # 07 Control Systems

Figure 12: Code

Figure 13: Graph

8
Lab # 07 Control Systems

Figure 14: SIMULINK Model

In this task, connect command is implemented to connect all the blocks. Sumblk command was
used where summer is encountered. The results obtained for step response in MATLAB are cross
verified using SIMULINK.

Post Lab:

Task 1:

9
Lab # 07 Control Systems

Figure 15: With Controller

Figure 16: Without Controller

In this task, step response is observed using controller and without controller. Without controller,
step response is achieving its steady state slowly and by using controller, step response died slowly.
We can say that we obtained impulse response and a stable system using controller

10
Lab # 07 Control Systems

Critical Analysis:
In this lab, I learnt to implement the block diagrams in MATLAB using some new
commands like connect, feedback, sumblk, series and parallel. Connect command connects
the all the blocks of block diagram. Feedback command is used to fetch the output back to
the input and calculate the error between input and output. Sumblk command adds the
different inputs and outputs that are directed towards summer. Series and parallel
command, simply, aid in connecting the series and parallel blocks respectively. Step
responses of different systems were observed in MATLAB and they were verified by
implementing all the models in SIMULINK. From the graphs, steady and transient responses
can be distinguished as well.

11

Potrebbero piacerti anche