Chapter 1 Introduction
Xmath Control Design Module 1-10 ni.com
Figure 1-4. Block Diagram of the Closed-Loop Controller
This is a block diagram of the closed-loop controller with compensator
Kc1K1(s) in the feedforward path and Kc2K2(s) in the feedback path.
This time, instead of having all your gain Kc in the forward path of the
closed-loop system, the system gain is split between the two compensators.
The gains Kc1 and Kc2 are defined such that Kc=2=Kc1Kc2 and the
closed-loop transfer function Tc1(s) is unity at s=0(DC).
The closed-loop transfer function is represented by:
You can find the values of the individual transfer functions at s=0 using
freq( ), and then substitute to solve the previous equation:
a = makematrix(freq(K1s*Gs,0));
b = makematrix(freq(K1s*K2s*Gs,0));
Solving:
Kc1 = (1+2*b)/a
Kc1 (a scalar) = 0.0241778
Kc2 = 2/Kc1
Kc2 (a scalar) = 82.7206
You now call feedback( ) again, this time using its second input
argument to indicate that the outputs of the first input system (forward path)
are fed back as the inputs to the second system (feedback path) in a
negative-feedback loop.
cl_syscomp2 = feedback(Kc1*K1s*Gs, Kc2*K2s);
U(s) Y(s)
G(s)
K
c2
K
2
(s)
K
c1
K
1
(s)
+
–
Tcl s() Kc1K1s()Gs()
1Kc1Kc2K1s()K2s()Gs()+
-------------------------------------------------------------------=