summaryrefslogtreecommitdiff
path: root/electronic_instrumentation_by_H_S_Kalsi/Chap17.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:40:35 +0530
committerkinitrupti2017-05-12 18:40:35 +0530
commitd36fc3b8f88cc3108ffff6151e376b619b9abb01 (patch)
tree9806b0d68a708d2cfc4efc8ae3751423c56b7721 /electronic_instrumentation_by_H_S_Kalsi/Chap17.ipynb
parent1b1bb67e9ea912be5c8591523c8b328766e3680f (diff)
downloadPython-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.gz
Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.bz2
Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.zip
Revised list of TBCs
Diffstat (limited to 'electronic_instrumentation_by_H_S_Kalsi/Chap17.ipynb')
-rwxr-xr-xelectronic_instrumentation_by_H_S_Kalsi/Chap17.ipynb78
1 files changed, 0 insertions, 78 deletions
diff --git a/electronic_instrumentation_by_H_S_Kalsi/Chap17.ipynb b/electronic_instrumentation_by_H_S_Kalsi/Chap17.ipynb
deleted file mode 100755
index cf85c902..00000000
--- a/electronic_instrumentation_by_H_S_Kalsi/Chap17.ipynb
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "metadata": {
- "name": "",
- "signature": "sha256:8031d2b3be7285338d4c75ced4c49e8240652de917ff83e30f4a9fa6859d2b74"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "heading",
- "level": 1,
- "metadata": {},
- "source": [
- "Chapter 17 Data acquisition system"
- ]
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 17.1 Page no 640"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#Given\n",
- "n=5 #bit\n",
- "a=10\n",
- "b=20\n",
- "c=30\n",
- "\n",
- "#Calculation\n",
- "Wlsb=-(1/2.0**n-1)\n",
- "Wlsb2=(2/2.0**n)\n",
- "Wlsb3=(4/2.0**n)\n",
- "V1=a/(2.0**n-1)\n",
- "V2=b/(2.0**n-1)\n",
- "V3=c/(2.0**n-1)\n",
- "Va=(a*2**4+a*2**3+0*2**2+a*2**1+a*2**0)/(2.0**5-1)\n",
- "Vb=(a*2**4+0*2**3+a*2**2+a*2**1+0*2**0)/(2.0**5-1)\n",
- "#Result\n",
- "print\"(1) The LSB Weight is \", round(Wlsb,2)\n",
- "print\"(2) The 2nd LSB Weight is \", round(Wlsb2,2),\"And 2rd LSB weight is \",Wlsb3\n",
- "print\"(3) Ist LSB causes a change in output voltage is \", round(V1,1)\n",
- "print\" 2nd LSB causes a change in output voltage is \", round(V2,1)\n",
- "print\" 3rdLSB causes a change in output voltage is \", round(V1,1)\n",
- "print\"(4) Output voltage for 11011 is \" ,round(Va,2),\"Volt\"\n",
- "print\" Output voltage for 10110 is \" ,round(Vb,2),\"Volt\""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "(1) The LSB Weight is 0.97\n",
- "(2) The 2nd LSB Weight is 0.06 And 2rd LSB weight is 0.125\n",
- "(3) Ist LSB causes a change in output voltage is 0.3\n",
- " 2nd LSB causes a change in output voltage is 0.6\n",
- " 3rdLSB causes a change in output voltage is 0.3\n",
- "(4) Output voltage for 11011 is 8.71 Volt\n",
- " Output voltage for 10110 is 7.1 Volt\n"
- ]
- }
- ],
- "prompt_number": 23
- }
- ],
- "metadata": {}
- }
- ]
-} \ No newline at end of file