blob: 30bbc48cd4e7da7e8121591fc50ebe44f24d3ba5 (
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
25
26
27
28
29
30
31
32
33
34
35
36
|
// To find Apparent and actual resistance
// Modern Electronic Instrumentation And Measurement Techniques
// By Albert D. Helfrick, William D. Cooper
// First Edition Second Impression, 2009
// Dorling Kindersly Pvt. Ltd. India
// Example 1-8 in Page 7
clear; clc; close;
// Given data
I_T = 800*(10^-3); // Reading of the milliammeter in ampere
V_T = 40; // Reading of the voltmeter in volt
sensitivity = 1000; // sensitivity of voltmeter in ohm/volt
scale = 150; // scale of the voltmeter
//Calculations
R_T = V_T / I_T; // formula to calculate total circuit resistance
printf("(a) The apparent circuit resistance neglecting the resistance of milliammeter, R_T = %0.2f ohm\n",R_T);
R_V = sensitivity * scale; // calculating resistance of voltmeter
R_X = (R_T * R_V)/(R_V - R_T); // effective circuit resistance due to loading effect
printf("(b) The actual circuit resistance with the loading effect of voltmeter, R_X = %0.2f ohm\n", R_X);
percentage_error = (R_X - R_T)*100/ R_X;
// %error = (actual-apparent)/ actual
printf("(c) The percentage error due to loading effect of voltmeter = %0.2f%%",percentage_error);
//result
// (a) The apparent circuit resistance neglecting the resistance of milliammeter, R_T = 50.00 ohm
// (b) The actual circuit resistance with the loading effect of voltmeter, R_X = 50.02 ohm
// (c) The percentage error due to loading effect of voltmeter = 0.03%
// The result shown in the textbook is printed incorrectly and does not match with the correct result
|