commit b3564c4d0daa8e5f9504aee66e82049d3444a859 Author: Gerardo Marx Date: Thu Oct 3 17:27:54 2024 -0600 data for lab session 2 diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..2ad382c --- /dev/null +++ b/Readme.md @@ -0,0 +1,49 @@ +# Readme + +This data file (`dataLab.csv`)has been collected using the TCLab board. The data was generated by using: + +```python +import time +import tclab +import numpy as np + +n=600 +t = np.linspace(0,n-1,n) +T1 = np.empty_like(t) +with tclab.TCLab() as lab: + lab.Q1(68) + for i in range(n): + T1[i] = lab.T1 + print(T1[i]) + time.sleep(1) +``` + +Then, temperature measurements are stored with + +```python +import pandas as pd +DF = pd.DataFrame(T1) +DF.to_csv("dataLab.csv", index=False) +``` + +## How to use the data + +To use temperature measurements, you have to load data using: + +```python +import pandas as pd +df = pd.read_csv('dataLab.csv') +y = df['0'] +``` + +If you data is plotted, it should look like the next figure: + +```python +import matplotlib.pyplot as plt +plt.plot(y, '.r') +``` + +![plot](./plot.png) + + + diff --git a/dataLab.csv b/dataLab.csv new file mode 100644 index 0000000..d1db9af --- /dev/null +++ b/dataLab.csv @@ -0,0 +1,601 @@ +0 +24.476 +24.476 +24.54 +24.443 +24.604 +24.701 +24.733 +24.766 +24.766 +24.766 +25.088 +25.088 +25.088 +25.41 +25.41 +25.732 +25.732 +26.022 +26.055 +26.377 +26.377 +26.699 +26.731 +27.021 +27.344 +27.344 +27.666 +27.924 +27.988 +28.311 +28.633 +28.633 +28.955 +29.277 +29.471 +29.6 +29.922 +30.244 +30.47 +30.566 +30.889 +31.211 +31.275 +31.533 +31.855 +32.178 +32.5 +32.5 +32.822 +33.145 +33.306 +33.467 +33.789 +34.111 +34.401 +34.434 +34.756 +35.078 +35.336 +35.4 +35.723 +36.045 +36.238 +36.367 +36.689 +37.012 +37.205 +37.334 +37.656 +37.688 +37.979 +38.301 +38.591 +38.623 +38.945 +39.235 +39.268 +39.59 +39.912 +39.912 +40.234 +40.557 +40.653 +40.879 +41.201 +41.33 +41.523 +41.846 +41.878 +42.168 +42.49 +42.49 +42.813 +42.909 +43.135 +43.457 +43.65 +43.779 +44.102 +44.102 +44.424 +44.649 +44.746 +45.068 +45.068 +45.391 +45.552 +45.713 +46.035 +46.035 +46.357 +46.357 +46.68 +47.002 +47.002 +47.324 +47.324 +47.646 +47.646 +47.969 +47.969 +48.291 +48.291 +48.613 +48.613 +48.936 +48.936 +49.258 +49.258 +49.58 +49.58 +49.902 +49.935 +50.225 +50.225 +50.547 +50.547 +50.869 +50.869 +51.159 +51.191 +51.449 +51.514 +51.643 +51.836 +51.836 +52.158 +52.158 +52.48 +52.48 +52.674 +52.803 +53.028 +53.125 +53.125 +53.447 +53.447 +53.737 +53.77 +53.802 +54.092 +54.092 +54.414 +54.414 +54.543 +54.736 +54.736 +55.059 +55.059 +55.059 +55.381 +55.381 +55.606 +55.703 +55.8 +56.025 +56.025 +56.154 +56.348 +56.348 +56.638 +56.67 +56.67 +56.992 +56.992 +56.992 +57.314 +57.314 +57.314 +57.637 +57.637 +57.637 +57.927 +57.959 +57.959 +58.281 +58.281 +58.281 +58.571 +58.604 +58.604 +58.894 +58.926 +58.926 +59.216 +59.248 +59.248 +59.248 +59.538 +59.57 +59.57 +59.699 +59.893 +59.893 +59.925 +60.215 +60.215 +60.215 +60.376 +60.537 +60.537 +60.537 +60.795 +60.859 +60.859 +60.859 +61.182 +61.182 +61.182 +61.311 +61.504 +61.504 +61.504 +61.729 +61.762 +61.826 +61.826 +61.826 +62.148 +62.148 +62.148 +62.148 +62.406 +62.471 +62.471 +62.471 +62.632 +62.793 +62.793 +62.793 +62.793 +62.986 +63.083 +63.115 +63.115 +63.147 +63.438 +63.438 +63.438 +63.438 +63.438 +63.631 +63.728 +63.76 +63.76 +63.76 +63.792 +64.082 +64.082 +64.082 +64.082 +64.082 +64.275 +64.404 +64.404 +64.404 +64.404 +64.501 +64.727 +64.727 +64.727 +64.727 +64.823 +65.049 +65.049 +65.049 +65.049 +65.049 +65.113 +65.274 +65.371 +65.371 +65.371 +65.371 +65.693 +65.693 +65.693 +65.693 +65.693 +65.726 +66.016 +66.016 +66.016 +66.016 +66.016 +66.016 +66.048 +66.241 +66.338 +66.338 +66.338 +66.338 +66.338 +66.338 +66.37 +66.628 +66.467 +66.66 +66.66 +66.66 +66.66 +66.66 +66.66 +66.789 +66.886 +66.982 +66.982 +66.982 +67.111 +67.208 +67.24 +67.305 +67.305 +67.305 +67.305 +67.337 +67.595 +67.627 +67.627 +67.627 +67.627 +67.627 +67.885 +67.917 +67.949 +67.949 +67.949 +67.949 +67.949 +67.981 +68.014 +68.239 +68.271 +68.271 +68.271 +68.304 +68.465 +68.529 +68.594 +68.594 +68.594 +68.594 +68.594 +68.594 +68.594 +68.594 +68.626 +68.916 +68.884 +68.916 +68.916 +68.916 +68.916 +68.916 +68.916 +68.98 +68.948 +69.013 +69.238 +69.238 +69.238 +69.238 +69.238 +69.238 +69.303 +69.238 +69.561 +69.561 +69.561 +69.561 +69.561 +69.561 +69.561 +69.689 +69.883 +69.883 +69.883 +69.883 +69.883 +69.883 +69.883 +69.883 +69.883 +69.979 +70.076 +70.205 +70.205 +70.205 +70.205 +70.205 +70.205 +70.205 +70.205 +70.205 +70.205 +70.27 +70.205 +70.398 +70.495 +70.302 +70.527 +70.495 +70.527 +70.527 +70.527 +70.527 +70.527 +70.527 +70.656 +70.785 +70.688 +70.85 +70.85 +70.85 +70.85 +70.85 +70.85 +70.85 +70.85 +70.882 +70.85 +71.011 +71.172 +71.172 +71.172 +71.172 +71.172 +71.172 +71.301 +71.301 +71.333 +71.494 +71.494 +71.43 +71.494 +71.494 +71.494 +71.494 +71.494 +71.494 +71.494 +71.494 +71.494 +71.494 +71.784 +71.72 +71.816 +71.816 +71.816 +71.816 +71.816 +71.816 +71.816 +71.816 +71.816 +71.816 +71.849 +71.913 +72.139 +72.139 +72.139 +72.139 +72.139 +72.139 +72.139 +72.139 +72.139 +72.139 +72.139 +72.139 +72.139 +72.171 +72.429 +72.396 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.461 +72.493 +72.461 +72.719 +72.461 +72.558 +72.654 +72.719 +72.783 +72.783 +72.783 +72.783 +72.783 +72.719 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.783 +72.88 +73.073 +73.105 +73.105 +73.105 +73.105 +73.105 +73.105 +73.105 +73.105 +73.105 +73.105 +73.105 +73.105 +73.138 +73.105 +73.331 +73.202 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.428 +73.653 +73.46 +73.75 +73.75 +73.75 +73.75 +73.75 +73.75 +73.75 +73.75 +73.75 +73.75 +73.75 +73.75 +73.75 diff --git a/plot.png b/plot.png new file mode 100644 index 0000000..40e99b7 Binary files /dev/null and b/plot.png differ