- #71
toolpusher123
- 64
- 0
Th
Last edited:
I think you're making things more difficult than they need be, and in the process, you're including some errors. Let MATLAB handle some of the difficult bits, so it's easier for you to check your results.toolpusher123 said:Finally got the root locus to come out correctly:D. I'd been using wxMaxima to multiply out my tf's so I could get them in a format that I'm familiar with inputting into MATLAB. But wxMaxima seems to be giving an incorrect result. When I did it by hand, the root locus passed through s = -1+/- 2j. There's a plot below:
Root Locus + Compensator: https://app.box.com/s/stheyn866bi43dez9rxe
s = tf('s');
G = -0.125*(s + 0.452)/((s + 1.25)*(s^2 + 0.234*s + 0.0163));
P = -2/(s + 2)*G;
C = (s + 1)/(s + 73.51);
rlocus(C*P)
There is an intersection, and to find ##K_1##, consider that the characteristic equation for your system is true for any point that's on the root locus. If you plug your numbers into this equation, how many unknowns are there?toolpusher123 said:I don't see a way to find K1 if there's no intersection.
Are there any purple/pink dots at ##s = -1 \pm j2##? What does that mean?toolpusher123 said:When I produce the 'step' response, the overshoot is gone but it still has a settling time of 36 secs. How would I go about reducing it to the design specs?
It won't be exact, since you're not working with a true second-order system. Try moving the compensator zero to -0.5 and recalculate your controller (including ##K_1##).toolpusher123 said:No. Are these markers of the gain (K)? I've tried to move them in order to adjust the reponse but it just becomes totally unstable?
Edit: moving the 'pink dot' to -1+/- 2j I've reduced the Ts to under 4 secs but the PO is 22.6%. Does this mean I would have to use the same process again to get closer to design specs?
No, it's good thinking, but that would only be correct if ##K_2## was a constant. You're asked to set ##K_2 = K_1##, and ##K_1## is the parameter you want to plot the root locus for as it varies.toolpusher123 said:Would I find the closed loop for; (2/s+2) * Gs)/1+(2/s+2)*Gs*(-k2s) & then multiply by -k1?
If by above you mean post #81, then no. It was just a correction to post #80.toolpusher123 said:Does the above represent the 'open loop' tf when the system includes K1 & K2?
milesyoung said:In short: You need to put the characteristic equation for your system with velocity feedback into the form ##(1)##. ##F(s)## is then the function you need to use with 'rlocus' etc. in MATLAB.
No, ##F(s) = -\frac{2}{s + 2} G(s)## for the system without velocity feedback.toolpusher123 said:Therefore F(s) = 2/(s+2)*G(s)
While you did not answer Milesyoung's question, your F(s) open loop is correct.toolpusher123 said:G(s): https://app.box.com/s/s7szsp7rztjndh58oolc
H(s): https://app.box.com/s/8hn2fryguhnis8mr0469
F(s) open loop tf when K1=K2: https://app.box.com/s/arwnrxwopi6y2cjls42q
Root Locus of F(s): https://app.box.com/s/wzaupxumo3j96lvjwobo
2nd Order Approx K1=K2: https://app.box.com/s/p2vyncwxhil3252g07d8
I'm hoping that F(s) above is correct as this is what I've based everything afterwards on...
That's the equivalent system for the forward path of the outer feedback loop, but that's not the function you should use in place of ##F(s)##, since it depends on ##K_1,K_2##.donpacino said:While you did not answer Milesyoung's question, your F(s) open loop is correct.
You're very welcome. Since you've submitted it, I can show you what I was getting at:toolpusher123 said:Miles I have submitted my report. I must thank you for all your help & suggestions. Now that the project is complete, I have a much better understanding of the processes/concepts involved. At the beginning I really did not have a clue. So thanks again for your patience & commitment...
Yes, it should be ##F(s) = -s H(s) G(s) - H(s) G(s)##, as per my post #93.toolpusher123 said:Did I enter an incorrect tf in order to plot 'root locus' of system when K1 = K2 ?
No, it should look like this:toolpusher123 said:Is this the correct root locus i.e. with 'velocity feedback': https://app.box.com/s/wzaupxumo3j96lvjwobo