Kernel: Python 2 (SageMath)
In [7]:
AnalyzeFourPointCond
Notebook for analyzing four-point conductance measurements. This notebook only plots the temperature versus time.
Import and set up the notebook.
In [0]:
In [8]:
Get Data File
In [9]:
0, readArduino-201804171428.csv
1, test.csv
2, readArduino-201804191455.csv
3, readArduino-201804121033-Original.csv
4, readArduino-201804121033-Fixed.csv
Enter data file number:
# readArduino.py
# Tue Apr 17 14:28:30 2018
# wired R
Read Data
In [10]:
ERROR!
ERROR!
ERROR!
ERROR!
on line 13
There are 13 lines in the file
There are 1 data points
Last temperature is 24.77
The last I data are [ 0. 0.34 0.69 1.03 1.37 1.71 2.06 2.4 0. 0. 0. 0. 0.
0. 0. 0. ]
The last V data are [-0.83 -0.8 -0.68 -0.64 -0.49 -0.38 -0.3 -0.15 0. 0. 0. 0. 0.
0. 0. 0. ]
The last temperature is 24.77 C
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-10-c46b9bf1ccfa> in <module>()
53 print "The last V data are {}".format(V)
54 print "The last temperature is {} C".format(temperature[-1])
---> 55 print "The last resistance is {:.2f} +/- {:.2f} Ohms".format(resistance[-1], resUncert[-1])
IndexError: index -1 is out of bounds for axis 0 with size 0
Plotting Data Nicely
The cool down happens very fast so the thremistor is cooling much faster than the resistor. So I want to separate the data into two batches, the cool down data, then the data we care about when the temperature slowly went back up.
First I will plot the temperature versus time data. Then work on an algorithm to find when the temperature starts up.
In [5]:
0 28 48
<matplotlib.text.Text at 0x7f0d280be7d0>
In [0]:
In [6]:
<matplotlib.legend.Legend at 0x7f0d285d3210>
In [7]:
3090
3081
In [0]: