summaryrefslogtreecommitdiff
path: root/3830/CH1/EX1.11/Ex1_11.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3830/CH1/EX1.11/Ex1_11.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3830/CH1/EX1.11/Ex1_11.sce')
-rw-r--r--3830/CH1/EX1.11/Ex1_11.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3830/CH1/EX1.11/Ex1_11.sce b/3830/CH1/EX1.11/Ex1_11.sce
new file mode 100644
index 000000000..e4b04e3cd
--- /dev/null
+++ b/3830/CH1/EX1.11/Ex1_11.sce
@@ -0,0 +1,30 @@
+// Exa 1.11
+
+clc;
+clear;
+
+// Given
+
+// An Ohm meter
+Ifs = 0.001; // Current in Amp
+V =5; // Supply voltage in Volts
+Rm = 200; // Meter resistance in Ohms
+
+// Solution
+
+// Ifs = V/(Rm+Rp);
+
+Rp =V/Ifs - Rm;
+
+printf('Value of Rx with 20 percent full-scale deflection :- \n');
+P1 = 0.2;
+Rx1 = (Rp+Rm)/P1 - (Rp+Rm);
+printf('The resistor value for 20 percent of full scale deflection = %d k Ohms \n',Rx1/1000);
+printf(' Value of Rx with 40 percent full-scale deflection :- \n');
+P2 = 0.4;
+Rx2 = (Rp+Rm)/P2 - (Rp+Rm);
+printf('The resistor value for 40 percent of full scale deflection = %.1f k Ohms \n',Rx2/1000);
+printf(' Value of Rx with 50 percent full-scale deflection :- \n');
+P3 = 0.5;
+Rx3 = (Rp+Rm)/P3 - (Rp+Rm);
+printf('The resistor value for 50 percent of full scale deflection = %d k Ohms \n',Rx3/1000);