From 7bc77cb1ed33745c720952c92b3b2747c5cbf2df Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 11:01:52 +0530 Subject: Added new code --- 3871/CH6/EX6.8/Ex6_8.sce | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 3871/CH6/EX6.8/Ex6_8.sce (limited to '3871/CH6/EX6.8/Ex6_8.sce') 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); + -- cgit