LCS Lab 4
LCS Lab 4
LABORATORY EXERCISE 4
OBJECTIVE:
To solve signal flow graph and find transfer function by using Masons Gain Formula also find the value of nodes
of signal flow graph.
TASK # 1:
clc
syms A B
s = solve('A=3-4*B','B=A*10-8',A,B)
A = s.A
B = s.B
RESULT:
s=
A: [1x1 sym]
B: [1x1 sym]
A =35/41
B =22/41
TASK # 2:
a)
clc
syms E1 E2 E3 E4 E5 H1 H2 C R
s = solve('E1 = R+E4*G6','E2 = E1*G1-E3*H1','E3 = E2*G2','E4 = E3*G3','E5 = E4*G4','C =
E5*G5',E1,E2,E3,E4,E5,C)
TransFunction = s.C/R
RESULT:
s=
C: [1x1 sym]
E1: [1x1 sym]
E2: [1x1 sym]
E3: [1x1 sym]
E4: [1x1 sym]
E5: [1x1 sym]
TransFunction =(G1*G2*G3*G4*G5)/(G2*H1 - G1*G2*G3*G6 + 1)
b)
clc
syms L1 L2 M1 M2 G1 G2 G3 G4 G5 G6 H1 H2 D D1 D2;
L1 = -G2*H1;
L1 = -G4*H2;
M1 = G1*G2*G3*G4*G5;
M2 = G4*G5*G6;
D1 = 1;
D2 = 1+(G2*H1);
D = 1+(G2*H1)+(G4*H2)+(G2*H1+G4*H2);
TransFunction = ((M1*D1)+(M2*D2))/D
pretty(TransFunction)
RESULT:
TransFunction =
(G4*G5*G6*(G2*H1 + 1) + G1*G2*G3*G4*G5)/(2*G2*H1 + 2*G4*H2 + 1)
G4 G5 G6 (G2 H1 + 1) + G1 G2 G3 G4 G5
-------------------------------------
2 G2 H1 + 2 G4 H2 + 1
TASK # 3:
clc
syms E1 E2 E3 E4 E5 H1 H2 H3 C R;
s = solve('E1 = R-G1*H1-H3*G3','E2 = G1*g1','E3 = E2*g2-H2*G3','E4 = E3*g3','E5 = E4','C =
E5',E1,E2,E3,E4,E5,C);
TransFunction = s.C/R
pretty(TransFunction)
RESULT:
TransFunction =
-(g3*(G3*H2 - G1*g1*g2))/R
g3 (G3 H2 - G1 g1 g2)
- ---------------------
R
TASK # 4:
clc
syms L1 L2 M1 M2 G1 G2 G3 H1 H2 D1 D2 D;
L1 = G1*G4*H1;
L2 = -G1*G2*G4*H2;
L3 = -G1*G3*G4*H2;
M1 = G1*G2*G4;
M2 = G1*G3*G4;
D1 = 1;
D2 = 1;
D = 1-((G1*G4*H1)+(-G1*G2*G4*H2)+(-G1*G3*G4*H2));
TransFunction = ((M1*D1)+(M2*D2))/D
pretty(TransFunction)
RESULT:
TransFunction =
(G1*G2*G4 + G1*G3*G4)/(G1*G2*G4*H2 - G1*G4*H1 + G1*G3*G4*H2 + 1)
Department of Electronic Engineering
Sir Syed University of Engineering &Technology, Karachi
SSUET/QR/113
LINEAR CONTROL SYSTEM [EE-340] Hamza Ahmed Bilgrami [2015-EE-103]
G1 G2 G4 + G1 G3 G4
----------------------------------------
G1 G2 G4 H2 - G1 G4 H1 + G1 G3 G4 H2 + 1
LAB ASSIGNMENTS
TASK # 1:
clc
S=s.^-1;
syms S M1 M2 L1 L2 L3 L4 D1 D2;
M1=S;
M2=1;
L1=-S;
L2=-2*S;
L3=-S;
L4=-1;
D=1-(L1+L2+L3+L4)+((L2*L4));
D1=1;
D2=1-l2;
TransFunction=(M1*D1)/D+(M2*D2)/D
pretty(TransFunction)
RESULT:
TransFunction =
S/(6*S + 2) + (2/s + 1)/(6*S + 2)
2
-+1
S s
------- + -------
6S+2 6S+2
TASK # 2:
clc
syms G1 G2 G3 G4 M1 M2 M3 L1 L2 L3 D1 D2 D3;
M1=G1*G2*G3*G4;
M2=G3*G4;
M3=G1;
L1=-G1;
L2=-G2;
G3=-G1*G2*G3*G4;
G=1-(L1+L2+L3)+((L1*L2));
D1=1;
D2=1-L1+(L1*L2);
D3=1;
TransFunction=(M1*D1)/D+(M2*D2)/D+(M3*D3)/D
pretty(TransFunction)
RESULT:
TransFunction =
G1 G3 G4 (G1 + G1 G2 + 1) G1 G2 G3 G4
------- + ---------------------- + -----------
6S+2 6S+2 6S+2