summaryrefslogtreecommitdiff
path: root/Principles_Of_Electronic_Instrumentation/Pinciples_of_electronic_Instrumentation_Ch13.ipynb
blob: a9e4798110cff7b05369d82d91efcb4857749990 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 13: Shielding And Grounding"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example13_1,pg 405"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# find diagnostic ratio\n",
      "\n",
      "import math\n",
      "#Variable declaration\n",
      "t1=0.1*10**-6             #time span for voltage\n",
      "t2=1*10**-6               #time span for current\n",
      "\n",
      "#voltage switching\n",
      "V1=0.5                    #level-1\n",
      "V2=5.0                    #level-2\n",
      "\n",
      "#current switching\n",
      "I1=0                      #level-1\n",
      "I2=10*10**-3              #level-2\n",
      "\n",
      "\n",
      "#Calculations\n",
      "DR=(((V2-V1)/t1)/((I2-I1)/t2))\n",
      "\n",
      "#Result\n",
      "print(\"dissipation ratio:\")\n",
      "print(\"DR = %.f ohm\\n\"%DR)\n",
      "print(\"DR is quite large indicating noise interference by capacitive coupling.\")"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "dissipation ratio:\n",
        "DR = 4500 ohm\n",
        "\n",
        "DR is quite large indicating noise interference by capacitive coupling.\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example13_2,pg 509"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# find diagnostic ratio\n",
      "\n",
      "import math\n",
      "#variable declaration\n",
      "t1=1*10**-6                #time span for voltage\n",
      "t2=1*10**-6                #time span for current\n",
      "\n",
      "#voltage switching\n",
      "V1=0.5                     #level-1\n",
      "V2=1.0                     #level-2\n",
      "\n",
      "#current switching\n",
      "I1=1*10**-3                #level-1\n",
      "I2=10*10**-3               #level-2\n",
      "\n",
      "#Calculations\n",
      "DR=(((V2-V1)/t1)/((I2-I1)/t2))\n",
      "\n",
      "#Result\n",
      "print(\"pseudoimpedance:\")\n",
      "print(\"DR = %.f ohm\\n\"%(math.floor(DR)))\n",
      "print(\"DR is not quite large indicating noise interference by inductive coupling.\")\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "pseudoimpedance:\n",
        "DR = 55 ohm\n",
        "\n",
        "DR is not quite large indicating noise interference by inductive coupling.\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example13_3,pg 510"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# find ground loop current\n",
      "\n",
      "import math\n",
      "#Variable declaration\n",
      "Vi=12.0                    #input DC voltage\n",
      "Vo=3.182                   #output voltage\n",
      "Rg=130*10**3               #grounding resistance \n",
      "R2=1*10**3                 #output resistance\n",
      "R1=6.8*10**3               #divider chain\n",
      "\n",
      "#Calculations\n",
      "Ig=(Vo-((2*R2*Vi)/(R1+R2)))/Rg\n",
      "\n",
      "#Result\n",
      "print(\"grounding loop current:\")\n",
      "print(\"Ig = %.1f micro-A\"%(Ig*10**6))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "grounding loop current:\n",
        "Ig = 0.8 micro-A\n"
       ]
      }
     ],
     "prompt_number": 8
    }
   ],
   "metadata": {}
  }
 ]
}