The figure below shows the system block diagram of a rather
     The figure below shows the system block diagram of a rather sophisticated bioengineering device for regulating the dosage of aesthetic gases being delivered to a patient during surgery. Note that the plant and controller are themselves feedback control systems.  a) Derive an expression for the open-loop gain of the overall control system.  b) Derive an expression for the closed-loop gain of the overall control system.  c) If G_1 = 1, G_2 = 2, H_1 = 1, and H_2 = 2, what is the loop-gain of the overall system?   
  
  Solution
In open loop gain there is no feedback, so if x is inlet and y is outlet, then the equation will be:
Open loop gain G, Gout/Gin = G1 +G2
Gy/x = G1 +G2
Closed loop gain G’ is Gout/Gin where Gout is y and Gin is x
Gout is count for gain from both controller and plant so, Gout = Gout1 + Gout2
In plant, G1 and H1 will count for Gout1 = 1/G1 +1/H1 =G1+ H1/ G1 H1
In controller Gout2 = 1/G2 +1/H2 = G2+ H2/ G2 H2
So the closed loop gain G’y/x is = (G1+ H1/ G1 H1) + (G2+ H2/ G2 H2)
So overall loop gain = Open loop gain G+ Closed loop gain G’
Open loop gain G = 1+2 = 3 [from values]
Closed loop gain G’ = (1+1/1x1) + (2+2/2x2) = 2+1 = 3
Overall loop gain = 3+3 = 6

