summaryrefslogtreecommitdiff
path: root/3830/CH1/EX1.11/Ex1_11.sce
diff options
context:
space:
mode:
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);