summaryrefslogtreecommitdiff
path: root/backup/Electronic_Instrumentation_and_Measurements_version_backup/Chapter11_1.ipynb
blob: d9ae373cee9a5eb882a2e43ad0e0cfe73b8616b1 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:ce9c4ba63f9ce316e76597a7788141e75bacb70902db486d65612d29b6d08c96"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 11 - Instrument Calibration"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 11.3.1 - page11-7"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# percentage of the reading and percentage of full scale\n",
      "#Given data :\n",
      "a=10 #scale reading\n",
      "b=70 # full scale\n",
      "error1=-(0.5/10)*100  # in %\n",
      "print \"step 1\"\n",
      "print \"error of reading \", error1, \" %\"\n",
      "error2=-(0.5/100)*100 # in %\n",
      "print \"error of full scale is \", error2, \" %\"\n",
      "print \"step 2\"\n",
      "error3=(2.5/70)*100 # in %\n",
      "print \"error of reading is \", round(error3,2), \" %\"\n",
      "error4=(2.5/100)*100 # in %\n",
      "print \"error of full scale is\", error4, \" %\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "step 1\n",
        "error of reading  -5.0  %\n",
        "error of full scale is  -0.5  %\n",
        "step 2\n",
        "error of reading is  3.57  %\n",
        "error of full scale is 2.5  %\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 11.3.2 - page11-9"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " # wattmeter error and correction figure\n",
      "#Given data :\n",
      "P1=120.0 # in W\n",
      "V=114.0 #in volts\n",
      "I=1 #in A\n",
      "P=V*I \n",
      "error1=P-P1 # in W\n",
      "print \"correction figure is \", error1, \" W\"\n",
      "error2=(error1/P1)*100  # in %\n",
      "print \"wattmeter error is \",error2,\" %\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "correction figure is  -6.0  W\n",
        "wattmeter error is  -5.0  %\n"
       ]
      }
     ],
     "prompt_number": 7
    }
   ],
   "metadata": {}
  }
 ]
}