Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Calculating gain of a phase detector

  1. Aug 13, 2013 #1
    I have a linear model of a phase detector (phase lock loop) represented by the block diagram below. It is designed to maintain zero difference in phase between the input carrier signal and a local voltage controlled oscillator.

    Phase demand→Ka→F(s)→K/s→Phase output

    F(s) = 10(s+10)/(s+1)(s+100)

    We want to minimise the steady state error for a ramp change in the phase information signal.

    Can anyone help determine the limiting value of the gain KaK = Kv in order to maintain a stable system.
  2. jcsd
  3. Aug 13, 2013 #2
    We usually work with the open-loop function of the system when determining its margins for closed-loop stability. I assume you're showing the closed-loop function since there's no feedback loop included. Maybe you could show a block diagram of your system before any reductions are made and we can go from there?

    The system you have shown has infinite gain margin, be it in open or closed loop.
  4. Aug 13, 2013 #3
    I've attached a more accurate block diagram which has the feedback look included.

    Attached Files:

  5. Aug 13, 2013 #4
    Right, are you familiar with root-locus and/or frequency-response analysis?
  6. Aug 13, 2013 #5
    I have been trying to use the root locus approach, i'm not sure about frequency response. I worked the closed loop transfer function to 100K2/(s+1)(s+100)+K and then used the quadratic formula to try and obtain roots getting -50.5≠.5√9801-4k. The steady state error acceptable is 1° for a ramp signal of 100rad/s. I am confused at how to go about calculating gain for a ramp change compared with a step change.
  7. Aug 13, 2013 #6
    First thing, I think you took a wrong turn somewhere in calculating the closed-loop transfer function. You could show the details of your work if you want some pointers, but you're going to end up having to find the roots of a cubic polynomial. That's not an intractable problem per se, but root-locus analysis is, in large part, about finding the locus of the roots of the characteristic polynomial without having to actually solve it analytically (which can be hard to impossible).

    It's difficult to see on this plot since I have no idea how to set the gain and axis limits manually, but hopefully it will give you the basic idea. The locus never enters the right-half plane, i.e. your system is stable for any gain.

    It's not much different. Your system is type 1 since you have a free integrator so it will have a bounded [strike]output[/strike] error for a ramp input. Do you know what the error constant is for a ramp input?
    Last edited: Aug 13, 2013
  8. Aug 13, 2013 #7
    I know the error constant is the velocity error constant Kv, i now have the transfer function as k/(100s)(s+1)(s+100)
  9. Aug 13, 2013 #8
    Great :approve: You need to use the velocity error constant instead of the position error constant when your input is a ramp signal but otherwise the procedure is the same. Show your work and where you get stuck.

    That's still not correct. Reminder:

    The open-loop function L(s) is given by:
    L(s) = Ka*K*F(s)/s

    The closed-loop function T(s) is given by:
    T(s) = L(s)/(1 + L(s))

    It would help a great deal if you could show each step of what you did in order to arrive at your result.
  10. Aug 13, 2013 #9
    Ive attached some workings of the open loop transfer function calculation, is this evaluated at s=0 to obtain Kv

    Attached Files:

  11. Aug 13, 2013 #10
    Ok so, third line, there's a problem with what you're doing in the denominator:
    \frac{1}{10}(s + 1)(s + 100) \neq \left(\frac{s + 1}{10}\right) \left(\frac{s + 100}{10}\right)

    You should be able to tell from:
    \left(\frac{s + 1}{10}\right) \left(\frac{s + 100}{10}\right) = \frac{1}{10}(s + 1)\left(\frac{s + 100}{10}\right) = \frac{1}{10}\frac{1}{10}(s + 1)(s + 100) = \frac{1}{100}(s + 1)(s + 100)

    [tex]K_v = \lim_{s \rightarrow 0}sL(s)
  12. Aug 14, 2013 #11
    Thanks, i've attached my working to get a value of 0.1 for Kv is this correct?

    Attached Files:

  13. Aug 14, 2013 #12
    The L(s) you started out with in your first attachment was correct. You've changed it around some in your second one.

    So you have:
    L(s) = K_a K \frac{10(s + 10)}{s(s+1)(s+100)} \\
    K_v = \lim_{s \rightarrow 0}s L(s) = \lim_{s \rightarrow 0}s K_a K \frac{10 (s + 10)}{s(s+1)(s+100)} = \lim_{s \rightarrow 0}K_a K \frac{10 (s + 10)}{(s+1)(s+100)} = K_a K \frac{10 \cdot 10}{1 \cdot 100} = K_a K
    The steady-state error for your system is then given by:
    e_{ss} = \frac{\alpha}{K_v} = \frac{\alpha}{K_a K}
    where ##\alpha## is the slope of your ramp signal.

    Now you just need to come up with a value for your gain ##K_a K## such that your constraint on the steady-state error is satisfied.
  14. Aug 14, 2013 #13
    So this is the value of the gain Kv that satisfies a steady state error of 1° with a ramp signal (slope) of 100 rads? Is there a limiting value of gain Kv to keep the system stable, or is this it?

    Attached Files:

  15. Aug 14, 2013 #14
    Yes :smile: Usually you write it as an upper bound on the steady-state error, which gives a lower bound on the gain:
    e_{ss} = \frac{\alpha}{K_a K} \leq 1\frac{\pi}{180} \Leftrightarrow K_a K \geq \frac{180\alpha}{\pi}
    As we talked about before, your system is stable for any gain.
  16. Aug 16, 2013 #15
    How would you go about determining the location of the poles for the system?
  17. Aug 17, 2013 #16
    I would use a numerical algorithm to find the roots of the characteristic polynomial of the closed-loop system:

    Which is basically what your computer does with varying loop gain when you ask it to plot the root locus for the system.

    The open-loop function usually tells you all you need to know about the performance of the closed-loop system. If its characteristic polynomial admits an analytical solution, it rarely contributes significantly to your body of knowledge of the system.

    It just occured to me that this might just be a homework problem. Just FYI, if that's the case, there's a whole other forum for it on PF, which you should have used instead.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: Calculating gain of a phase detector
  1. Phase Detectors (Replies: 6)