summaryrefslogtreecommitdiff
path: root/Electronic_Instrumentation_and_Measurements/Chapter10.ipynb
diff options
context:
space:
mode:
authorhardythe12015-06-03 15:27:17 +0530
committerhardythe12015-06-03 15:27:17 +0530
commitdf60071cf1d1c18822d34f943ab8f412a8946b69 (patch)
treeab059cf19bad4a1233a464ccf5d72cf8b3fb323c /Electronic_Instrumentation_and_Measurements/Chapter10.ipynb
parentfba055ce5aa0955e22bac2413c33493b10ae6532 (diff)
downloadPython-Textbook-Companions-df60071cf1d1c18822d34f943ab8f412a8946b69.tar.gz
Python-Textbook-Companions-df60071cf1d1c18822d34f943ab8f412a8946b69.tar.bz2
Python-Textbook-Companions-df60071cf1d1c18822d34f943ab8f412a8946b69.zip
add books
Diffstat (limited to 'Electronic_Instrumentation_and_Measurements/Chapter10.ipynb')
-rwxr-xr-xElectronic_Instrumentation_and_Measurements/Chapter10.ipynb94
1 files changed, 94 insertions, 0 deletions
diff --git a/Electronic_Instrumentation_and_Measurements/Chapter10.ipynb b/Electronic_Instrumentation_and_Measurements/Chapter10.ipynb
new file mode 100755
index 00000000..66963b37
--- /dev/null
+++ b/Electronic_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