summaryrefslogtreecommitdiff
path: root/Electronic_Instrumentation_And_Measurements_by_J.B.Gupta/Chapter_10.ipynb
blob: ee2c5bbc92809c1c176760f49aaeb216828ef4ce (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
 "metadata": {
  "name": "",
  "signature": "sha256:e3beb8b0630c35bb63d0b674a53a03c2bc95fc955abe45777c3c8a090f6bed5e"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter - 10 : Instrument Calibration and Recorders"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example :  10.1 - Page No : 284\n",
      " "
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given data\n",
      "FullScale= 25 # in volt\n",
      "\n",
      "VR= 5 # voltmeter reading in volt\n",
      "Error= -0.25 # in volt\n",
      "Error_Reading= Error/VR*100 # % of reading\n",
      "print \"Error percentage of reading    = %0.f %% of reading\" %Error_Reading \n",
      "Error_FullScale= Error/FullScale*100 # % of full scale\n",
      "print \"Error percentage of full scale = %0.f %% of full-scale\" %Error_FullScale\n",
      "\n",
      "VR= 10 # voltmeter reading in volt\n",
      "Error= 0.25 # in volt\n",
      "Error_Reading= Error/VR*100 # % of reading\n",
      "print \"Error percentage of reading    = %0.1f %% of reading\" %Error_Reading \n",
      "Error_FullScale= Error/FullScale*100 # % of full scale\n",
      "print \"Error percentage of full scale = %0.f %% of full-scale\" %Error_FullScale\n",
      "\n",
      "VR= 20 # voltmeter reading in volt\n",
      "Error= -0.4 # in volt\n",
      "Error_Reading= Error/VR*100 # % of reading\n",
      "print \"Error percentage of reading    = %0.f %% of reading\" %Error_Reading \n",
      "Error_FullScale= Error/FullScale*100 # % of full scale\n",
      "print \"Error percentage of full scale = %0.1f %% of full-scale\" %Error_FullScale"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Error percentage of reading    = -5 % of reading\n",
        "Error percentage of full scale = -1 % of full-scale\n",
        "Error percentage of reading    = 2.5 % of reading\n",
        "Error percentage of full scale = 1 % of full-scale\n",
        "Error percentage of reading    = -2 % of reading\n",
        "Error percentage of full scale = -1.6 % of full-scale\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example :  10.2 - Page No : 286"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " #Given data\n",
      "Pm=1250 # in watt\n",
      "V=255 # in volt\n",
      "I=4.8 # in amp\n",
      "P=V*I #/ in watt\n",
      "AbsoluteError= Pm-P # in watt\n",
      "print \"Absolute Error = %0.f watt\" %AbsoluteError \n",
      "PerError= AbsoluteError/Pm*100 # in %\n",
      "print \"Percentage Error = %0.2f %%\" %PerError"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Absolute Error = 26 watt\n",
        "Percentage Error = 2.08 %\n"
       ]
      }
     ],
     "prompt_number": 4
    }
   ],
   "metadata": {}
  }
 ]
}