Lab 3
Lab 3
PRACTICAL HANDOUTS
Lab-03
Name : -------------------------------------------------------------
Roll No:------------------------------------------------------------
Date :---------------------------------------------------------------
Score:---------------------------------------------------------------
Signature:-----------------------
1
Lab Outline:
Concept of block diagrams
Real time examples
Parallel and Series Arrangement
Feedback model
Feedback with any feedback component
Exercise
Introduction:
As in design of any control system, after mathematical modeling the next step is to convert it into block
diagram representation in which each component of the plant has a distinct position and gives a clear
picture of the system in process or a system which has to be designed.
G1 (s)
G1(s)+G2(s)
G2 (s)
2
Addition of the Transfer Function:
Blocks can be added using parallel function. It’s recommended when blocks are more than two, then
first two blocks should be solved and resultant must be added with the 3rd block and so on.
parallel connects two LTI models in parallel. This function accepts any type of LTI model. The
two systems must be either both continuous or both discrete with identical sample time.
sys = parallel(sys1,sys2) forms the basic parallel connection shown in the following figure:
SERIES: series connects two LTI models in series. This function accepts any type of LTI
model. The two systems must be either both continuous or both discrete with identical sample
time.
The index vectors outputs1 and inputs2 indicate which outputs of sys1 and which inputs of sys2 should
be connected. The resulting model sys has as input and as output.
Convolution:
num1= [1 2];
num2 = [2 3];
den1 = [1 3 4];
den2 = [2 3 4];
num12 = conv(num1,num2);
den12 = conv(den1,den2);
Printsys (num12,den12)
Series:
num1= [1 2];
num2 = [2 3];
den1 = [1 3 4];
den2 = [2 3 4];
[num12, den12] = series(num1,den1,num2,den2);
4
Printsys (num12 , den12)
In the above figure closed loop feedback system is shown where G(s) is a feedforward block (could be
any subsystem or any plant) and H(s) is a feedback block (any sensor etc). If we are using negative
feedback we will use “+” sign or viceversa.
For feedback we consider different cases :
(i) H(s) is one (unity feedback)………………… use Cloop command
(ii) H(s) is not unity feedback…………………….used feedback command
sys = cloop(num,den)(or cloopfunction=cloop(sys)) returns an LTI model sys for the negative
unity feedback interconnection
To apply positive feedback, use the syntax
sys = cloop(num,den,+1)or
cloopfuncion=cloop(sys,+1)
EXAMPLE:
num=[1 2];
den=[2 3 4];
[num,den] = cloop(num,den);
Printsys (num,den)
The closed-loop model sys has u as input vector and as output vector y. The LTI models sys1 and
sys2 must be both continuous or both discrete with identical sample times.
5
To apply positive feedback, use the syntax
sys = feedback(sys1,sys2,+1)
By default, feedback (sys1, sys2) assumes negative feedback and is equivalent to feedback (sys1,sys2,-1).
EXAMPLE:
num1=[1 2];
den1=[2 3 4];
num2=[2 3];
den2=[1 3 4];
[num,den] = feedback (num1,den1,num2,den2)
Printsys (num,den)
2. Find the closed loop transfer function of the following block diagram.
3. Find the closed loop transfer function of the following block diagram
6
4. Find the closed loop transfer function of the following block diagram