diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /569/CH4/EX4.13/4_13.sci | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '569/CH4/EX4.13/4_13.sci')
-rwxr-xr-x | 569/CH4/EX4.13/4_13.sci | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/569/CH4/EX4.13/4_13.sci b/569/CH4/EX4.13/4_13.sci new file mode 100755 index 000000000..ebfa04133 --- /dev/null +++ b/569/CH4/EX4.13/4_13.sci @@ -0,0 +1,20 @@ +// Calculate damping ratio, natural frequency, frequency of damped oscillations, time constant
+// and steady state error for ramp signal of 5V/s
+clc;
+K=(40*10^-6)/(%pi/2);
+J=0.5*10^-6;
+B=5*10^-6;
+eta=B/(2*(K*J)^0.5);
+disp(eta,'damping ratio=')
+wn=(K/J)^0.5;
+disp(wn,'natural frequency (rad/sec)')
+wd=wn*(1-(eta)^2)^0.5;
+disp(wd,'frequency of damped oscillations (rad/s)')
+tc=1/wn;
+disp(tc,'time constant (s)')
+ess=2*eta/wn;
+disp('for a ramp input of 5V, steady state error (V) =')
+ess=5*2*eta/wn;
+disp(ess,'')
+T_lag=2*eta*tc;
+disp(T_lag,'Time lag (s)')
\ No newline at end of file |