Signal Flow Graph
Signal Flow Graph
Objective:
The objective of this application is to obtain the overall
transfer function of a systems using Signal Flow Graphs.
Δ=1−
[ ∑ of loop
gains of all
indivisialloops ][
+
∑ of gain productsof all
possible combination
of two non touching loops ][
−
∑ of gain productsof all
possible combination
of three nontouching loops ][
+
∑ of gain productsof a
possible combination
of four non touching loo
(4.2
)
B ( s )=−H ( s ) Y ( s )
(4.3
)
Y ( s )=G ( s ) E(s)
[ ]
E B Y R
1 −1 0 −1
0 1 H 0
−G 0 1 0
>> % To determine the closed loop transfer function of the SFG for
Example 4.1%
>> syms G H
>> M=[1 -1 0 -1;1 0 H 0;0 -G 1 0];
>> N=rref(M);
>> T=-N(3,4); % T=Y(s)/R(s) %
>> pretty(T)
G
------------
1+ G H
Figure 4.2: Signal flow graph of multiple loop system for Example
4.2.
Solution:
From the signal flow graph in Figure 4.2, we have:
(4.4
)
E1 ( s )=R ( s ) −H 2 ( s ) Y ( s )
Y ( s )=G2 ( s ) E2 ( s ) (4.5
)
(4.6
)
E2 ( s )=G1 ( s ) E1 ( s )−H 1 ( s ) Y ( s )
[ ]
E1 Y E2 R
1 H2 0 −1
0 1 −G2 0
−G1 H 1 1 0
Solution:
[ ]
E1 Y 1 E2 E3 Y 2 E 4 R 1 R2
1 H1 0 0 0 0 −1 0
0 1 −G2 0 0 0 0 0
−G2 0 1 −G3 0 0 0 0
0 0 0 1 H2 0 0 −1
0 0 0 0 1 −G6 0 0
0 0 −G 4 −G5 0 1 0 0
>> syms G1 G2 G3 G4 G5 G6 H1 H2
>> M=[1 H1 0 0 0 0 -1 0
0 1 -G2 0 0 0 0 0
-G1 0 1 -G3 0 0 0 0
0 0 0 1 H2 0 0 -1
0 0 0 0 1 -G6 0 0
0 0 -G4 -G5 0 1 0 0];
>> N=rref(M);
>> % To determine the transfer function Y1(s)/R1(s) %
>> T11=-N(2,7);
>> pretty(T11)
G1 G2 + G1 G2 G5 G6 H2
--------------------------------------------------------------------------------
1+ G1 G2 H1 + G5 G6 H2 + G3 G4 G6 H2 + G1 G2 G5 G6 H1 H2
>> % To determine the transfer function Y1(s)/R2(s) %
>> T12=-N(2,8);
>> pretty(T12)
G2 G3
---------------------------------------------------------------------------------
1+G1 G2 H1 + G5 G6 H2 + G3 G4 G6 H2 + G1 G2 G5 G6 H1 H2
>> % To determine the transfer function Y2(s)/R1(s) %
>> T21=-N(5,7);
>> pretty(T21)
G1 G4 G6
---------------------------------------------------------------------------------
1+ G1 G2 H1 + G5 G6 H2 + G3 G4 G6 H2 + G1 G2 G5 G6 H1 H2
P ( s )=T 1 ( s ) U ( s ) +T 2 ( s ) F ( s )
Solution:
From the signal flow graph in Figure 4.4, we have:
(4.13
)
E1 ( s )=U ( s ) −H ( s ) P( s)
(4.14
)
E2 ( s )=F ( s )−E ( s ) P(s)
(4.15
)
P ( s )=G ( s ) E1 ( s )+ K ( s ) G1 ( s ) E 3 ( s ) +Gc (s) E2 (s )
(4.16
)
E3 ( s )=B ( s ) E1 ( s )+ E 2 (s )
[ ]
E1 E2 P E3 U F
1 0 H 0 −1 0
0 1 E 0 0 −1
−G −Gc 1 −K G1 0 0
−B −1 0 1 0 0
>> syms H E G Gc G1 K B
>> M=[1 0 H 0 -1 0;0 1 E 0 0 -1;-G -Gc 1 -K*G1 0 0;-B -1 0 1 0 0];
>> N=rref(M);
>> % To determine the transfer function P(s)/U(s) %
>> TPU=-N(3,5);
>> pretty(T)
G + B G1 K
----------------------------------------------
1+ E Gc + G H + E G1 K + B G1 H K
>> % To determine the transfer function P(s)/F(s) %
>> TPF=-N(3,6);
>> pretty(T)
Gc + G1 K
----------------------------------------------
1+E Gc + G H + E G1 K + B G1 H K
-G -Gc 1 -K*G1 0 0;
-B -1 0 1 0 0];
>> N=rref(M);
>> % To determine the transfer function P(s)/U(s) %
>> T=-N(3,5);
>> pretty(T)
4 s2+ 100 s + 104
------------------------------------------
2 s4+ 14 s3+ 37 s2+ 209 s + 110
>> % To determine the transfer function P(s)/U(s) %
>> T=-N(3,6);
>> pretty(T)
2 s4+ 13 s3+ 108 s2+ 103 s + 6
------------------------------------------
2 s4+ 14 s3+ 37 s2+ 209 s + 110
Solution:
>> % To determine the closed loop transfer function of the SFG for
Example 4.5%
>> s=tf('s');G1=s;G2=2*s;G3=G2;G4=G1;G5=1/(s+1);
>>H1=s^0;H2=4*s^0;H3=H1;H4=H3;
>>G1.inputname='E1';G1.outputname='A';
>>G2.inputname='E1';G2.outputname='B';
>>G3.inputname='E1';G3.outputname='E';
>>G4.inputname='E2';G4.outputname='C';
>>G5.inputname='E3';G5.outputname='Y';
>>H1.inputname='C';H1.outputname='D';
>>H2.inputname='Y';H2.outputname='F';
>>H3.inputname='Y';H3.outputname='G';
>>H4.inputname='Y';H4.outputname='H';
>>sum1=sumblk('E1','R','H','+-'); sum2=sumblk('E2','A','B','D','++-');
>>sum3=sumblk('E3','C','E4','H','++-'); sum4=sumblk('E4','E','F','+-');
>>T=mineral(connect(G1,G2,G3,G4,G5,H1,H2,H3,H4,sum1,sum2,sum
3,sum4,'R','Y'))
0.8333 s^2 + 0.3333 s
-------------------------------
s^2 + 1.5 s + 1
-------------------------------------------------------------------------------------------
-
Homework 4.2: Find the transfer function Y (s)/ R ( s )using
MATLAB for the idle - speed control system for a fuel -
injected engine as shown in Figure 4.7.