summaryrefslogtreecommitdiff
path: root/Elelectronics_Instrumentation_and_Measurements/Chapter10.ipynb
diff options
context:
space:
mode:
authorhardythe12015-05-05 14:21:39 +0530
committerhardythe12015-05-05 14:21:39 +0530
commitfba055ce5aa0955e22bac2413c33493b10ae6532 (patch)
treebe70ef4fccd07c9c88de778014219201b4ea971f /Elelectronics_Instrumentation_and_Measurements/Chapter10.ipynb
parent67068710030ddd6b6c809518c34af2e04e0bf7ca (diff)
downloadPython-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.tar.gz
Python-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.tar.bz2
Python-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.zip
add books
Diffstat (limited to 'Elelectronics_Instrumentation_and_Measurements/Chapter10.ipynb')
-rwxr-xr-xElelectronics_Instrumentation_and_Measurements/Chapter10.ipynb94
1 files changed, 94 insertions, 0 deletions
diff --git a/Elelectronics_Instrumentation_and_Measurements/Chapter10.ipynb b/Elelectronics_Instrumentation_and_Measurements/Chapter10.ipynb
new file mode 100755
index 00000000..66963b37
--- /dev/null
+++ b/Elelectronics_Instrumentation_and_Measurements/Chapter10.ipynb
@@ -0,0 +1,94 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:c81ea1dd6c9cc1e2e41ac05c3336a82a69ef851ca3e89f18fcee6fcbfb433811"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter10 - Special Oscilloscopes"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.11.1 - page10-18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# sampling rate\n",
+ "#Given data :\n",
+ "N=10.0 #number of cycles\n",
+ "f1=1*10**3 #in Hz\n",
+ "f2=100*10**3 # in Hz\n",
+ "sampling_period1=N/f1 # in seconds\n",
+ "sampling_frequency1=1/sampling_period1 # in Hz\n",
+ "print \"sampling frequency of 1 kHz signal is \", sampling_frequency1, \" samples/second\"\n",
+ "sampling_period2=N/f2 # in seconds\n",
+ "sampling_frequency2=1/sampling_period2 # in Hz\n",
+ "print \"sampling frequency of 100 kHz signal is \", sampling_frequency2,\" samples/second\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "sampling frequency of 1 kHz signal is 100.0 samples/second\n",
+ "sampling frequency of 100 kHz signal is 10000.0 samples/second\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example10.13.1 - page10-22"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# sampling rate\n",
+ "#Given data :\n",
+ "N=10.0 #number of cycles\n",
+ "f=1*10**3 #in Hz\n",
+ "sampling_period=N/f # in seconds\n",
+ "sampling_rate=1/sampling_period # in Hz\n",
+ "print \"sampling rate is \",sampling_rate,\" samples/second\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "sampling rate is 100.0 samples/second\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file