Top Banner
16

Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

May 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s
Page 2: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s
Page 3: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s
Page 4: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s
Page 5: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

P 8.27 %P8.27 %Bode plots K=0.75 p=K*[1 50]; q=[1 10 25]; sys=tf(p,q); bode(sys) grid on %Bandwith for K wn=sqrt(50*K+25); damping=(10+K)/(2*wn); wb=wn*(-1.1961*damping+1.8508) Script run K = 0.7500 wb = 8.2028

Figure P8.27 K=0.75

80

60

40

20

0

20

Mag

nitu

de (d

B) System: sysFrequency (rad/sec): 3.42Magnitude (dB): 0.207

10 1 100 101 102 103135

90

45

0

Phas

e (d

eg)

Bode Diagram

Frequency (rad/sec)

Page 6: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

Figure P8.27 K=1

60

40

20

0

20M

agni

tude

(dB)

10 1 100 101 102 103135

90

45

0

Phas

e (d

eg)

Bode Diagram

Frequency (rad/sec)

Page 7: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

Figure P8.27 K=10

K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s 8.20 9.4 30.44 wc rad/s 3.42 5.48 22.5

40

20

0

20

40M

agni

tude

(dB)

10 1 100 101 102 103135

90

45

0

Phas

e (d

eg)

Bode Diagram

Frequency (rad/sec)

Page 8: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s
Page 9: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

AP8.5 %AP8.5 %Log-magnitude-phase curve phase=[101.42 250.17 267.53 268.93 269.77]; magnitude=[40 4.85 -13.33 -20.61 -33.94]; plot(phase,magnitude) xlabel('phase, degree') ylabel('Magnitude GcG, db') grid on

Figure AP8.5

By checking the poles, we can conclude that the open-loop system is unstable and that the closed-loop system is stable.

100 120 140 160 180 200 220 240 260 28040

30

20

10

0

10

20

30

40

phase, degree

Mag

nitu

de G

cG, d

b

Page 10: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

DP8.6 %DP8.6 syms s K p A=[0 1; -1 -p] B=[K ;0] C=[0 1] % closed-loop transfer function C*inv(s*eye(2)-A)*B %Bode plot p=-1; q=[1 1.38 1]; sys=tf(p,q); bode(sys) grid on Script run A = [ 0, 1] [ -1, -p] B = K 0 C = 0 1 ans = -K/(s^2 + p*s + 1) Using the transfer function from the Matlab script, we determined that the steady error is zero for K=-1. For a percent overshoot of 5%, the damping ratio is 0.69 and so p is determined to be 1.38. The natural frequency is wn=1rad/s. Using the approximation wb=(-1.19*ζ+1.85)*wn=1.028rad/s. The Bode plot is shown on Figure DP86. The bandwidth is wb=1.02rad/s.

Page 11: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

Figure DP86

10 2 10 1 100 101 1020

45

90

135

180

Phas

e (d

eg)

Bode Diagram

Frequency (rad/sec)

80

70

60

50

40

30

20

10

0

10

20

System: sysFrequency (rad/sec): 1.02Magnitude (dB): 3.01

Mag

nitu

de (d

B)

Page 12: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

CP8.3 %CP8.3 %Bode plot a) p=2000; q=[1 110 1000]; sys=tf(p,q); figure (1) clf; bode(sys) grid on %Bode plot b) p=100; q=[1 11 12 2]; sys=tf(p,q); figure (2) clf; bode(sys) grid on %Bode plot c) p=[50 5000]; q=[1 51 50]; sys=tf(p,q); figure (3) clf; bode(sys) grid on %Bode plot b) p=100*[1 14 50]; q=[1 503 1502 1000]; sys=tf(p,q); figure (4) clf; bode(sys) grid on

Page 13: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

Figure CP83 a) the crossover frequency is 17.1rad/sec

100

80

60

40

20

0

20M

agni

tude

(dB)

10 1 100 101 102 103 104180

135

90

45

0

Phas

e (d

eg)

Bode Diagram

Frequency (rad/sec)

Page 14: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

Figure CP83 b) the crossover frequency is 3rad/sec

150

100

50

0

50M

agni

tude

(dB)

10 3 10 2 10 1 100 101 102 103270

225

180

135

90

45

0

Phas

e (d

eg)

Bode Diagram

Frequency (rad/sec)

Page 15: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

Figure CP83 c) the crossover frequency is 70.7rad/sec

40

20

0

20

40M

agni

tude

(dB)

10 2 10 1 100 101 102 103135

90

45

0

Phas

e (d

eg)

Bode Diagram

Frequency (rad/sec)

Page 16: Solution homework7 - Indiana Universityet.engr.iupui.edu/~skoskie/ECE382/ECE382_s12/ECE382_s12_hw7soln_rough.pdfFigure P8.27 K=10 K 0.75 1 10 L Gain at w=0 db 3.52 6.02 26 wb rad/s

Figure CP83 d) the crossover frequency is 3.2rad/sec

40

30

20

10

0

10

20M

agni

tude

(dB)

10 2 10 1 100 101 102 103 10490

45

0

Phas

e (d

eg)

Bode Diagram

Frequency (rad/sec)