summaryrefslogtreecommitdiff
path: root/165/CH3/EX3.2/ex3_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '165/CH3/EX3.2/ex3_2.sce')
-rw-r--r--165/CH3/EX3.2/ex3_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/165/CH3/EX3.2/ex3_2.sce b/165/CH3/EX3.2/ex3_2.sce
new file mode 100644
index 000000000..243098dee
--- /dev/null
+++ b/165/CH3/EX3.2/ex3_2.sce
@@ -0,0 +1,19 @@
+//Example 3.2
+clc;
+Rm=100; //Internal resistance
+Im=1*10^-3; //Full Scale deflection current
+
+//Case I: For Range 0-10 mA
+I1=10*10^-3; //Total current
+Rsh1=Im*Rm/(I1-Im); //Shunt resistance
+printf('\nValue of Shunt resistance for range 0-10 mA = %.2f ohm\n',Rsh1)
+
+//Case II: For Range 0-20 mA
+I2=20*10^-3; //Total current
+Rsh2=Im*Rm/(I2-Im); //Shunt resistance
+printf('\nValue of Shunt resistance for range 0-20 mA = %.2f ohm\n',Rsh2)
+
+//Case III: For Range 0-50 mA
+I3=50*10^-3; //Total current
+Rsh3=Im*Rm/(I3-Im); //Shunt resistance
+printf('\nValue of Shunt resistance for range 0-50 mA = %.2f ohm\n',Rsh3) \ No newline at end of file