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 /371/CH12/EX12.4/12_4.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 '371/CH12/EX12.4/12_4.sci')
-rwxr-xr-x | 371/CH12/EX12.4/12_4.sci | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/371/CH12/EX12.4/12_4.sci b/371/CH12/EX12.4/12_4.sci new file mode 100755 index 000000000..bc8848d29 --- /dev/null +++ b/371/CH12/EX12.4/12_4.sci @@ -0,0 +1,16 @@ +//Controllers and Their Optimisation//
+//Example 12.4//
+G=20;//smaller time constant in ms//
+T1=350;//bigger time constant in ms//
+Tn=4*G;//time constant of the controller in ms//
+printf('\nTime constant of the controller in SO=Tn=%fms',Tn);
+V=T1/(2*G);//gain of the control system//
+printf('\nGain of the control system=V=%f',V);
+Vg=1;//gain of the regulating current link//
+Vr=V/Vg;//gain of the PI regulator//
+printf('\nGain of the PI regulator=Vr=%f',Vr);
+R1=11;//R1 in KiloOhms//
+R2=R1*Vr;//R2 in kiloohms//
+printf('\nR2=%fKiloohms',R2);
+C2=Tn/R2;//C1 in microfarads//
+printf('\nC2=%fmicrofarads',C2);
\ No newline at end of file |