Documente Academic
Documente Profesional
Documente Cultură
EL304
LABORATORY MANUAL
Spring 2016
LAB 05
System Modeling Diagrams in MATLAB, Effect of
Pole locations
Engr. Iqra Akram
Engr.Warda shafiq
______________________________________
LAB ENGINEER SIGNATURE & DATE
5.3 Introduction
To obtain the tranfer function we need to find the laplace transform of the equations of
motion and solve the resulting algebric equations of motions for relationship between input
and output. In many control systems the system equations can be written so that their
components do not interact except by having the input of one part be the output of another
part. In these cases it is easier to draw block diagram that represent the mathematical
relationship in a manner similar to that used for the component block diagram.
Single block:
U(s) Y(s)
G(s) Y(s) = G(s)U(s)
U(s) is the input to the block, Y(s) is the output of the block and G(s) is the transfer function
of the block.
Series connection:
G1(s)
U(s) + Y(s)
Y(s) = [G1(s) + G2(s)]U(s)
+
G2(s)
Once the various transfer functions have been entered, you can combine them together using
arithmetic operations such as addition and multiplication to evaluate the transfer function of a
cascaded system. The following table lists the most common systems connections and the
corresponding MATLAB commands to implement them. In the following, SYS refers to the
transfer function of a system, i.e. SYS = Y(s)/R(s).
Parallel connection:
G1
SYS = G1 G2
R(s) + Y(s)
or SYS = parallel(G1,G2)
G2
Defining summers
Sumblk()
Count down the number of summer and define every summer, by using Sumblk().
Syntax pzmap(sys)
Where, sys is system transfer function
Task 1
Given the two transfer functions
1)
2s + 1
() =
4s2 + 3s + 2
2)
s+1
() =
4s2 + 5
Series connection
Parallel connection
c) Implement same transfer functions on simulink and attached its response graph
for each combination series, parallel and feedback.
Series connection( paste MATLAB simulink diagram and attach response plot)
Task 2:
= , = , = , =
Response plot
c) Implement same block diagram on simulink and attached its response graph.
MATLAB simulink block diagram
Response plot
Response plot
Task 3:
= = = = = = =
( + )
b) Implement same block diagram on simulink and attached its response graph.
MATLAB simulink block diagram
Response plot
Response plot
Task 4:
1 1
H(s) = G(s) =
s+2 s2
a) Plot the poles and zeroes using pzmap attach its plot.
b) Is any of given system is stable? Yes or No? Give reasons in both cases
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
d) Convert the H(s) in time domain and plot attach its plot
e) Are the plots obtained in part c and d same? Yes or No ? Give reasons
FEEDBACK CONTROL SYSTEMS NUCES, ISLAMABAD Page 9 of 14
System Modeling Diagrams and Effect of Pole Locations LAB: 05
_____________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Task 5
s+3 s+1
H(s) = G(s) =
(s + 2)(s + 1) (s + 5)(s + 6)
a) Show which system will decay or rise faster using MATLAB? Give reason
Reason:
_____________________________________________________________________
___________________________________________________________________________
FEEDBACK CONTROL SYSTEMS NUCES, ISLAMABAD Page 10 of 14
System Modeling Diagrams and Effect of Pole Locations LAB: 05
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Task 6
3s + 12 s+6
H(s) = G(s) =
s2+ 2s + 5 s2 2s + 5
a) Show which system is stable and unstable using MATLAB? Give reason
Reason:
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
b) Predict the response of the system ? Whether its oscillatory, decaying, rising etc give
reasons and attch its response .
MATLAB justification would be preferred
Reason:
Student's feedback:[Separate this page; fill it; drop in the Drop Box.]
Providing feedback for every lab session is optional. No feedback means you are
satisified
The Lab Committee will consider only duly filled forms submitted within one week after
the lab
This feedabck is for LAB session: LAB Number: _____, Date: _____________________
General (to provide feedback on a persistent practice/ocurrence in LABs).
Your current CGPA is in the range 4.00 to 3.00/2.99 to 2.00/1.99 to 1.00/0.99 to 0.00