summaryrefslogtreecommitdiff
path: root/3871/CH6/EX6.8/Ex6_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3871/CH6/EX6.8/Ex6_8.sce')
-rw-r--r--3871/CH6/EX6.8/Ex6_8.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3871/CH6/EX6.8/Ex6_8.sce b/3871/CH6/EX6.8/Ex6_8.sce
new file mode 100644
index 000000000..fb2005137
--- /dev/null
+++ b/3871/CH6/EX6.8/Ex6_8.sce
@@ -0,0 +1,27 @@
+//===========================================================================
+//chapter 6 example 8
+clc;clear all;
+
+
+//variable decalaration
+Rm = 5; //coil resistance in Ω
+Rm1 = 0.00075; //coil resistance in Ω
+Im = 0.015; //full-scale defelction current in A
+I = 100; //current to be measured in A
+T1 = 0.004; //temperature coeficient of copper in Ω/Ω/°C
+T2 = 0.00015; //temperature coeficient of manganin in Ω/Ω/°C
+T =10; //rise in temperature in °C
+
+//calculations
+N = I/(Im); //multiplying power of shunt
+Rs = Rm/(N-1); //resistance of manganin shunt in Ω
+Rc = Rm*(1+(T1*T)); //coil resitance with 10°C in temperature in Ω
+Rsh = Rm1*(1+(T2*T)); //shunt resitance with 10°C in temperature in Ω
+In = (Rsh/((Rc+Rsh)))*100; //new instrument current in A
+r = (In/(Im))*100; //new instrument reading in A
+e = ((r-I)/(I))*100; //percentage error in %
+
+
+//result
+mprintf('percentage error %3.3f percentage",e);
+