summaryrefslogtreecommitdiff
path: root/3871/CH6/EX6.9/Ex6_9.sce
blob: 1c7e59fa02bd620a66a2ac868799ff2fa7c061e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===========================================================================
//chapter 6 example 9
clc;clear all;

//variable declaration
Rm    = 25;               //instrument resistance in Ω
V     = 25*10^-3;       //full-scale deflection voltage in V
V1    = 10;              //voltage to be measured in V
t     = 10;   
alphac  = 0.004;
alpham  = 0.00015;

//calculations
Im    = V/(Rm);      //full-scale deflection in mA
R     = (V1/(Im))-Rm;   //external resistance in Ω
Rt    = Rm+R;
Rm1 = Rm*(1+(alphac*t));     //instrument resistance with 10°C  rise in temperature in Ω
R1   = R*(1+(alpham*t));    //series resistance with 10°C  rise in temperature in Ω
R2   = Rm1+R1;             //total resistance in the voltmeter circuit in Ω
V2   = V1*(Rt/(R2));   //reading of voltmeter at 10°C rise in temerature in V
er   = ((V2-V1)/(V1))*100;   //percentage error in %

//reult
mprintf('percentage error = %3.2f percentage",er);