diff options
Diffstat (limited to '28/CH10')
-rwxr-xr-x | 28/CH10/EX10.6/Fig10_6_1.jpg | bin | 0 -> 36728 bytes | |||
-rwxr-xr-x | 28/CH10/EX10.6/Fig10_6_2.jpg | bin | 0 -> 36743 bytes | |||
-rwxr-xr-x | 28/CH10/EX10.6/ex10_6.sce | 34 | ||||
-rwxr-xr-x | 28/CH10/EX10.7/Fig10_7_1.jpg | bin | 0 -> 33248 bytes | |||
-rwxr-xr-x | 28/CH10/EX10.7/Fig10_7_2.jpg | bin | 0 -> 36194 bytes | |||
-rwxr-xr-x | 28/CH10/EX10.7/ex10_7.sce | 34 | ||||
-rwxr-xr-x | 28/CH10/EX10.8/Fig10_8_1.jpg | bin | 0 -> 35850 bytes | |||
-rwxr-xr-x | 28/CH10/EX10.8/Fig10_8_2.jpg | bin | 0 -> 33532 bytes | |||
-rwxr-xr-x | 28/CH10/EX10.8/ex10_8.sce | 35 | ||||
-rwxr-xr-x | 28/CH10/EX10.9/Fig10_9_1.jpg | bin | 0 -> 36326 bytes | |||
-rwxr-xr-x | 28/CH10/EX10.9/Fig10_9_2.jpg | bin | 0 -> 36809 bytes | |||
-rwxr-xr-x | 28/CH10/EX10.9/ex10_9.sce | 44 |
12 files changed, 147 insertions, 0 deletions
diff --git a/28/CH10/EX10.6/Fig10_6_1.jpg b/28/CH10/EX10.6/Fig10_6_1.jpg Binary files differnew file mode 100755 index 000000000..a994e8295 --- /dev/null +++ b/28/CH10/EX10.6/Fig10_6_1.jpg diff --git a/28/CH10/EX10.6/Fig10_6_2.jpg b/28/CH10/EX10.6/Fig10_6_2.jpg Binary files differnew file mode 100755 index 000000000..35873535e --- /dev/null +++ b/28/CH10/EX10.6/Fig10_6_2.jpg diff --git a/28/CH10/EX10.6/ex10_6.sce b/28/CH10/EX10.6/ex10_6.sce new file mode 100755 index 000000000..527dc166d --- /dev/null +++ b/28/CH10/EX10.6/ex10_6.sce @@ -0,0 +1,34 @@ +s=%s;
+syms Kv;
+g=(Kv/(s*(s+1)));
+// given Kv=12
+Kv=12;
+g=(12/(s*(s+1)));
+G=syslin('c',g)
+fmin=0.01;
+fmax=100;
+bode(G,fmin,fmax)
+show_margins(G)
+xtitle("uncompensated system")
+[gm,freqGM]=g_margin(G)
+[pm,freqPM]=p_margin(G)
+disp(gm,"gain_margin=")
+disp((freqGM*2*%pi),"gain margin freq=");
+disp(pm,"phase margin=")
+disp((freqPM*2*%pi),"phase margin freq=");
+printf("since P.M is less than desired value so we need phase lead network")
+disp("selecting zero of lead compensting network at w=2.65rad/sec and pole at w=7.8rad/sec and applying gain to account attenuation factor.")
+gc=(1+0.377*s)/(1+0.128*s)
+Gc=syslin('c',gc)
+disp(Gc,"transfer function of lead compensator=");
+G1=G*Gc
+disp(G1,"overall transfer function=");
+fmin=0.01;
+fmax=100;
+bode(G1,fmin,fmax);
+show_margins(G1)
+xtitle("compensated system")
+[gm,freqGM]=g_margin(G1);
+[pm,freqPM]=p_margin(G1);
+disp(pm,"phase margin of compensated system=")
+disp((freqPM*2*%pi),"gain cross over frequency=")
diff --git a/28/CH10/EX10.7/Fig10_7_1.jpg b/28/CH10/EX10.7/Fig10_7_1.jpg Binary files differnew file mode 100755 index 000000000..7edf278a4 --- /dev/null +++ b/28/CH10/EX10.7/Fig10_7_1.jpg diff --git a/28/CH10/EX10.7/Fig10_7_2.jpg b/28/CH10/EX10.7/Fig10_7_2.jpg Binary files differnew file mode 100755 index 000000000..65d12b7fd --- /dev/null +++ b/28/CH10/EX10.7/Fig10_7_2.jpg diff --git a/28/CH10/EX10.7/ex10_7.sce b/28/CH10/EX10.7/ex10_7.sce new file mode 100755 index 000000000..3912c4a67 --- /dev/null +++ b/28/CH10/EX10.7/ex10_7.sce @@ -0,0 +1,34 @@ +s=%s;
+syms Ka;
+g=(Ka/(s^2*(1+0.2*s)));
+// given Ka=10
+Ka=10;
+g=(10/(s^2*(1+0.2*s)));
+G=syslin('c',g)
+fmin=0.01;
+fmax=100;
+bode(G,fmin,fmax)
+show_margins(G)
+xtitle("uncompensated system")
+[gm,freqGM]=g_margin(G)
+[pm,freqPM]=p_margin(G)
+disp(gm,"gain_margin=")
+disp((freqGM*2*%pi),"gain margin freq=");
+disp(pm,"phase margin=")
+disp((freqPM*2*%pi),"phase margin freq=");
+disp("since P.M is negative so system is unstable")
+disp("selecting zero of lead compensating network at w=2.8 rad/sec and pole at w=14 rad/sec and applying gain to account attenuation factor.")
+gc=(1+0.358*s)/(1+0.077*s)
+Gc=syslin('c',gc)
+disp(Gc,"transfer function of lead compensator=");
+G1=G*Gc
+disp(G1,"overall transfer function=");
+fmin=0.01;
+fmax=100;
+bode(G1,fmin,fmax);
+show_margins(G1)
+xtitle("compensated system")
+[gm,freqGM]=g_margin(G1);
+[pm,freqPM]=p_margin(G1);
+disp(pm,"phase margin of compensated system=")
+disp((freqPM*2*%pi),"gain cross over frequency=")
diff --git a/28/CH10/EX10.8/Fig10_8_1.jpg b/28/CH10/EX10.8/Fig10_8_1.jpg Binary files differnew file mode 100755 index 000000000..3df0d98c4 --- /dev/null +++ b/28/CH10/EX10.8/Fig10_8_1.jpg diff --git a/28/CH10/EX10.8/Fig10_8_2.jpg b/28/CH10/EX10.8/Fig10_8_2.jpg Binary files differnew file mode 100755 index 000000000..01c39b49b --- /dev/null +++ b/28/CH10/EX10.8/Fig10_8_2.jpg diff --git a/28/CH10/EX10.8/ex10_8.sce b/28/CH10/EX10.8/ex10_8.sce new file mode 100755 index 000000000..4f29b0416 --- /dev/null +++ b/28/CH10/EX10.8/ex10_8.sce @@ -0,0 +1,35 @@ +s=%s;
+syms K;
+g=(K/(s*(s+1)*(s+4)));
+g=((K/4)/(s*(s+1)*(0.25*s+1)))
+// given Kv=5 :velocity error constant
+K=20;
+g=(5/(s*(s+1)*(0.25*s+1)))
+G=syslin('c',g)
+fmin=0.01;
+fmax=100;
+bode(G,fmin,fmax)
+show_margins(G)
+xtitle("uncompensated system")
+[gm,freqGM]=g_margin(G)
+[pm,freqPM]=p_margin(G)
+disp(gm,"gain_margin=")
+disp((freqGM*2*%pi),"gain margin freq=");
+disp(pm,"phase margin=")
+disp((freqPM*2*%pi),"phase margin freq=");
+disp("since P.M is negative so system is unstable")
+disp("selecting zero of phase lag network at w=0.013 rad/sec and pole at w=0.13 rad/sec and applying gain to account attenuation factor")
+gc=((s+0.13)/(10*(s+0.013)))
+Gc=syslin('c',gc)
+disp(Gc,"transfer function of lag compensator=");
+G1=G*Gc
+disp(G1,"overall transfer function=");
+fmin=0.01;
+fmax=100;
+bode(G1,fmin,fmax);
+show_margins(G1)
+xtitle("compensated system")
+[gm,freqGM]=g_margin(G1);
+[pm,freqPM]=p_margin(G1);
+disp(pm,"phase margin of compensated system=")
+disp((freqPM*2*%pi),"gain cross over frequency=")
diff --git a/28/CH10/EX10.9/Fig10_9_1.jpg b/28/CH10/EX10.9/Fig10_9_1.jpg Binary files differnew file mode 100755 index 000000000..9b209de01 --- /dev/null +++ b/28/CH10/EX10.9/Fig10_9_1.jpg diff --git a/28/CH10/EX10.9/Fig10_9_2.jpg b/28/CH10/EX10.9/Fig10_9_2.jpg Binary files differnew file mode 100755 index 000000000..a394abd15 --- /dev/null +++ b/28/CH10/EX10.9/Fig10_9_2.jpg diff --git a/28/CH10/EX10.9/ex10_9.sce b/28/CH10/EX10.9/ex10_9.sce new file mode 100755 index 000000000..c8078dad7 --- /dev/null +++ b/28/CH10/EX10.9/ex10_9.sce @@ -0,0 +1,44 @@ +s=%s;
+syms K;
+g=(K/(s*(0.1*s+1)*(0.2*s+1)));
+// given Kv=30 :velocity error constsnt
+K=30;
+g=(30/(s*(0.1*s+1)*(0.2*s+1)))
+G=syslin('c',g)
+fmin=0.01;
+fmax=100;
+bode(G,fmin,fmax)
+show_margins(G)
+xtitle("uncompensated system")
+[gm,freqGM]=g_margin(G)
+[pm,freqPM]=p_margin(G)
+disp(gm,"gain_margin=")
+disp((freqGM*2*%pi),"gain margin freq=");
+disp(pm,"phase margin=")
+disp((freqPM*2*%pi),"phase margin freq=");
+disp("since P.M is negative so system is unstable")
+disp("If lead compenstion is used bandwidth will increase resulting in undesirable system sensitive to noise. If lag compensation is used bandwidth decreases so as to fall short of specified value of 12 rad/sec resulting in sluggish system")
+disp("/n hence we use a lag-lead compensator")
+// lag compensator
+disp("selecting zero of phase lag network w=1 rad/sec and pole at w=0.1 rad/sec and applying gain to account attenuation factor")
+gc1=((s+1)/(10*s+1));
+Gc1=syslin('c',gc1)
+disp(Gc1,"transfer function of lag compensator")
+// lead compensator
+disp("selecting zero of lead compensator at w=0.425rad/sec and pole at w=0.0425rad/sec ")
+gc2=((0.425*s+1)/(0.0425*s+1));
+Gc2=syslin('c',gc2)
+disp(Gc2,"transfer function of lead compensator")
+Gc=Gc1*Gc2 // transfer function of lag and lead sections
+disp(Gc,"transfer function of lag and lead sections")
+G1=G*Gc
+disp(G1,"overall transfer function=");
+fmin=0.01;
+fmax=100;
+bode(G1,fmin,fmax);
+show_margins(G1)
+xtitle("compensated system")
+[gm,freqGM]=g_margin(G1);
+[pm,freqPM]=p_margin(G1);
+disp(pm,"phase margin of compensated system=")
+disp((freqPM*2*%pi),"gain cross over frequency=")
|