update 20180605 1200
This commit is contained in:
parent
fa874ba9b3
commit
eeba0459c5
|
@ -33,3 +33,4 @@ data/raspi-i2c/i2c
|
|||
data/m03_poticalib/poticalib_ana.py
|
||||
data/m02_adccalib_48/adccalib_48.py
|
||||
data/m04_cycledepends/cycledepends.csv
|
||||
data/m04_cycledepends/cycledepends.py
|
||||
|
|
40
README.md
40
README.md
|
@ -28,22 +28,38 @@
|
|||
- Calibration
|
||||
- [x] characterize adcbehaviour
|
||||
- [x] plot resulting fitted incline of $\Delta $V vs. num. of readcycles
|
||||
- [ ] write reasoning for using a given `sampleTicks` value
|
||||
- smallest gain error
|
||||
- smallest offset
|
||||
- hightst samplerate
|
||||
- [x] see if v_pin same as v_keith_pin
|
||||
- on dV of **small enough** -> adc circuit working correctly -> calib
|
||||
- [ ] reasoning for using a given `sampleTicks` value
|
||||
- smallest gain error -> inconsistent
|
||||
- smallest offset -> inconsistent
|
||||
- hightst samplerate -> `sampleTicks = 1`
|
||||
- pin plot -> `sampleTicks = 0` is no go
|
||||
- pin plot -> `sampleTicks` in `1-7`
|
||||
- [x] polynomials
|
||||
- [x] polynomials rw-able
|
||||
- [x] 10I calc
|
||||
- ADC vs. Keithley
|
||||
- [ ] 48V
|
||||
- redo after selection of `sampleTicks` value
|
||||
- [ ] 10V
|
||||
- [x] 1.8V
|
||||
- [ ] differences between PIts?
|
||||
- if yes then we need a `PITDB`
|
||||
- if not then we can hardset those values
|
||||
- [ ] ADC vs. Keithley
|
||||
- [ ] redo after selection of `sampleTicks` value
|
||||
- [ ] 48V
|
||||
- [ ] 10V
|
||||
- [ ] 1.8V
|
||||
- [ ] calibrate based on fit
|
||||
- [ ] 48V
|
||||
- [ ] 10V
|
||||
- [ ] 1.8V
|
||||
- ADC vs. EL
|
||||
- [ ] 48I
|
||||
- [ ] 10I
|
||||
- [ ] 1.8I
|
||||
- [ ] without calib
|
||||
- [ ] 48I
|
||||
- [ ] 10I
|
||||
- [ ] 1.8I
|
||||
- [ ] with calib
|
||||
- [ ] 48I
|
||||
- [ ] 10I
|
||||
- [ ] 1.8I
|
||||
- Temp
|
||||
- [ ] accuracy
|
||||
- [ ] position in system
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
time/s,v_ps/v,dv_ps/v,v_pit48/v,dv_pit48/v,v_keith/v,v_set/v,cycles
|
||||
time,v_ps,dv_ps,v_pit48,dv_pit48,v_keith,v_set,cycles
|
||||
14.897,43.034,0.011,38.931,0.243,43.112,43.000,000
|
||||
18.963,43.038,0.008,42.409,0.084,43.112,43.000,001
|
||||
23.282,43.032,0.005,42.156,0.074,43.113,43.000,002
|
||||
|
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,170 @@
|
|||
#cycledepends, generated: May 30 2018 13:11:39
|
||||
time,v_ps,dv_ps,v_pit48,dv_pit48,v_keith,v_set,cycles
|
||||
15.329,43.039,0.012,38.964,0.025,43.115,43.000,000
|
||||
19.389,43.045,0.009,42.327,0.061,43.114,43.000,001
|
||||
23.445,43.054,0.007,42.172,0.094,43.114,43.000,002
|
||||
27.493,43.054,0.004,41.968,0.049,43.115,43.000,003
|
||||
31.547,43.047,0.009,41.822,0.099,43.115,43.000,004
|
||||
36.811,43.049,0.014,41.861,0.172,43.113,43.000,005
|
||||
41.045,43.045,0.009,41.753,0.164,43.113,43.000,006
|
||||
45.096,43.045,0.007,41.938,0.161,43.114,43.000,007
|
||||
59.159,43.524,0.008,39.378,0.015,43.590,43.500,000
|
||||
63.206,43.523,0.011,42.793,0.045,43.589,43.500,001
|
||||
67.445,43.525,0.005,42.666,0.106,43.590,43.500,002
|
||||
71.508,43.521,0.010,42.429,0.099,43.590,43.500,003
|
||||
75.554,43.523,0.005,42.294,0.141,43.589,43.500,004
|
||||
82.035,43.523,0.006,42.181,0.156,43.590,43.500,005
|
||||
87.457,43.525,0.004,42.197,0.137,43.589,43.500,006
|
||||
91.646,43.524,0.003,42.272,0.128,43.588,43.500,007
|
||||
105.947,44.003,0.011,39.836,0.022,44.076,44.000,000
|
||||
109.997,44.005,0.008,43.265,0.056,44.075,44.000,001
|
||||
114.045,44.008,0.007,43.143,0.119,44.074,44.000,002
|
||||
118.123,44.009,0.007,42.895,0.094,44.076,44.000,003
|
||||
122.448,44.002,0.006,42.752,0.081,44.074,44.000,004
|
||||
126.490,44.008,0.003,42.713,0.124,44.075,44.000,005
|
||||
130.547,44.007,0.012,42.663,0.154,44.075,44.000,006
|
||||
134.600,44.005,0.007,42.705,0.075,44.076,44.000,007
|
||||
148.848,44.503,0.003,40.305,0.018,44.571,44.500,000
|
||||
152.902,44.500,0.009,43.761,0.050,44.569,44.500,001
|
||||
156.957,44.496,0.010,43.574,0.088,44.570,44.500,002
|
||||
161.013,44.498,0.007,43.582,0.306,44.569,44.500,003
|
||||
165.349,44.504,0.005,43.234,0.104,44.570,44.500,004
|
||||
171.949,44.500,0.005,43.223,0.083,44.570,44.500,005
|
||||
177.449,44.498,0.006,43.185,0.174,44.569,44.500,006
|
||||
182.949,44.503,0.010,43.185,0.172,44.569,44.500,007
|
||||
197.461,45.004,0.005,40.771,0.022,45.076,45.000,000
|
||||
201.650,45.008,0.008,44.236,0.036,45.076,45.000,001
|
||||
205.691,45.003,0.006,44.106,0.104,45.076,45.000,002
|
||||
209.738,45.008,0.003,43.803,0.310,45.076,45.000,003
|
||||
213.962,45.008,0.004,43.632,0.145,45.077,45.000,004
|
||||
218.150,45.007,0.008,43.701,0.113,45.077,45.000,005
|
||||
222.551,45.013,0.010,43.706,0.179,45.076,45.000,006
|
||||
226.599,45.006,0.006,43.739,0.083,45.075,45.000,007
|
||||
240.676,45.503,0.008,41.198,0.031,45.571,45.500,000
|
||||
247.191,45.504,0.006,44.760,0.032,45.571,45.500,001
|
||||
253.667,45.502,0.008,44.583,0.077,45.572,45.500,002
|
||||
258.946,45.501,0.005,44.379,0.208,45.571,45.500,003
|
||||
263.463,45.495,0.007,44.197,0.071,45.571,45.500,004
|
||||
271.144,45.499,0.008,44.186,0.063,45.571,45.500,005
|
||||
275.353,45.496,0.006,44.123,0.125,45.570,45.500,006
|
||||
280.853,45.494,0.004,44.150,0.063,45.570,45.500,007
|
||||
295.153,46.011,0.008,41.701,0.037,46.079,46.000,000
|
||||
299.210,46.007,0.005,45.248,0.058,46.079,46.000,001
|
||||
303.266,46.013,0.007,45.119,0.056,46.079,46.000,002
|
||||
307.465,46.004,0.004,44.854,0.178,46.078,46.000,003
|
||||
311.653,46.008,0.010,44.666,0.060,46.078,46.000,004
|
||||
315.703,46.010,0.006,44.661,0.087,46.078,46.000,005
|
||||
319.750,46.007,0.006,44.553,0.112,46.079,46.000,006
|
||||
323.966,46.009,0.004,44.661,0.103,46.079,46.000,007
|
||||
338.067,46.513,0.008,42.205,0.029,46.589,46.500,000
|
||||
342.118,46.518,0.009,45.767,0.046,46.589,46.500,001
|
||||
346.194,46.513,0.007,45.560,0.052,46.588,46.500,002
|
||||
350.239,46.517,0.008,45.342,0.074,46.588,46.500,003
|
||||
354.555,46.510,0.009,45.182,0.079,46.587,46.500,004
|
||||
358.606,46.512,0.008,45.105,0.161,46.587,46.500,005
|
||||
362.671,46.512,0.008,45.074,0.122,46.588,46.500,006
|
||||
366.717,46.516,0.011,45.127,0.157,46.588,46.500,007
|
||||
380.956,47.008,0.006,42.627,0.029,47.077,47.000,000
|
||||
385.003,47.006,0.007,46.247,0.033,47.076,47.000,001
|
||||
389.050,47.004,0.003,46.101,0.056,47.076,47.000,002
|
||||
393.097,47.001,0.005,45.805,0.101,47.075,47.000,003
|
||||
397.456,47.004,0.005,45.640,0.167,47.077,47.000,004
|
||||
401.511,47.003,0.005,45.654,0.081,47.076,47.000,005
|
||||
405.571,47.004,0.006,45.610,0.195,47.076,47.000,006
|
||||
409.637,47.000,0.008,45.695,0.099,47.077,47.000,007
|
||||
423.857,47.491,0.005,43.105,0.047,47.563,47.500,000
|
||||
427.906,47.494,0.006,46.713,0.035,47.564,47.500,001
|
||||
431.954,47.487,0.004,46.539,0.049,47.563,47.500,002
|
||||
436.000,47.488,0.007,46.252,0.069,47.563,47.500,003
|
||||
440.358,47.487,0.007,46.131,0.212,47.564,47.500,004
|
||||
444.400,47.487,0.010,46.123,0.073,47.564,47.500,005
|
||||
448.445,47.490,0.008,46.026,0.136,47.564,47.500,006
|
||||
452.510,47.491,0.007,46.106,0.069,47.563,47.500,007
|
||||
466.970,48.004,0.006,43.568,0.037,48.080,48.000,000
|
||||
471.160,48.008,0.010,47.243,0.049,48.080,48.000,001
|
||||
475.211,48.004,0.007,47.039,0.033,48.080,48.000,002
|
||||
479.257,48.006,0.007,46.768,0.089,48.080,48.000,003
|
||||
484.520,48.005,0.007,46.603,0.185,48.080,48.000,004
|
||||
488.972,48.006,0.010,46.630,0.096,48.080,48.000,005
|
||||
493.159,48.006,0.007,46.619,0.090,48.080,48.000,006
|
||||
497.205,48.006,0.008,46.666,0.119,48.080,48.000,007
|
||||
511.265,48.499,0.006,44.073,0.057,48.576,48.500,000
|
||||
515.343,48.502,0.010,47.720,0.021,48.577,48.500,001
|
||||
519.561,48.501,0.012,47.557,0.032,48.577,48.500,002
|
||||
523.601,48.500,0.010,47.226,0.049,48.576,48.500,003
|
||||
566.360,48.498,0.009,47.063,0.139,48.577,48.500,004
|
||||
572.856,48.503,0.005,47.030,0.205,48.576,48.500,005
|
||||
576.974,48.504,0.005,47.030,0.221,48.576,48.500,006
|
||||
581.163,48.501,0.007,47.085,0.053,48.577,48.500,007
|
||||
596.563,48.989,0.006,44.481,0.027,49.061,49.000,000
|
||||
600.611,48.983,0.004,48.183,0.029,49.061,49.000,001
|
||||
604.663,48.990,0.005,48.010,0.049,49.063,49.000,002
|
||||
609.974,48.988,0.010,47.770,0.048,49.061,49.000,003
|
||||
615.475,48.984,0.007,47.483,0.126,49.061,49.000,004
|
||||
826.471,48.989,0.007,47.494,0.185,49.062,49.000,005
|
||||
830.871,48.989,0.007,47.590,0.078,49.062,49.000,006
|
||||
836.372,48.982,0.012,47.532,0.110,49.061,49.000,007
|
||||
850.672,49.502,0.007,45.044,0.053,49.581,49.500,000
|
||||
854.726,49.499,0.009,48.674,0.045,49.580,49.500,001
|
||||
858.788,49.509,0.006,48.537,0.045,49.580,49.500,002
|
||||
862.984,49.505,0.009,48.244,0.057,49.581,49.500,003
|
||||
867.172,49.508,0.006,48.087,0.049,49.581,49.500,004
|
||||
872.672,49.507,0.010,48.043,0.074,49.581,49.500,005
|
||||
876.723,49.504,0.007,48.106,0.147,49.581,49.500,006
|
||||
880.788,49.502,0.010,48.092,0.139,49.581,49.500,007
|
||||
894.886,49.998,0.007,45.480,0.060,50.075,50.000,000
|
||||
899.074,49.994,0.012,49.188,0.065,50.075,50.000,001
|
||||
903.115,49.995,0.004,49.000,0.054,50.074,50.000,002
|
||||
907.185,49.995,0.010,48.741,0.040,50.075,50.000,003
|
||||
913.674,50.001,0.006,48.583,0.063,50.074,50.000,004
|
||||
918.946,50.000,0.008,48.537,0.077,50.074,50.000,005
|
||||
923.485,50.004,0.007,48.600,0.094,50.074,50.000,006
|
||||
927.675,49.995,0.005,48.465,0.113,50.074,50.000,007
|
||||
941.975,50.486,0.007,45.974,0.058,50.565,50.500,000
|
||||
946.026,50.486,0.015,49.668,0.064,50.565,50.500,001
|
||||
950.084,50.485,0.016,49.486,0.033,50.565,50.500,002
|
||||
954.131,50.483,0.010,49.243,0.048,50.565,50.500,003
|
||||
958.476,50.483,0.005,49.058,0.051,50.565,50.500,004
|
||||
965.076,50.485,0.013,49.017,0.104,50.565,50.500,005
|
||||
969.120,50.485,0.009,48.964,0.090,50.565,50.500,006
|
||||
973.217,50.486,0.003,49.047,0.038,50.565,50.500,007
|
||||
987.276,50.975,0.008,46.445,0.062,51.052,51.000,000
|
||||
992.577,50.969,0.005,50.197,0.040,51.053,51.000,001
|
||||
996.651,50.971,0.004,49.952,0.040,51.052,51.000,002
|
||||
1000.732,50.971,0.003,49.648,0.047,51.052,51.000,003
|
||||
1004.778,50.973,0.006,49.568,0.076,51.051,51.000,004
|
||||
1009.078,50.973,0.008,49.461,0.061,51.052,51.000,005
|
||||
1013.128,50.974,0.009,49.417,0.106,51.052,51.000,006
|
||||
1017.176,50.971,0.013,49.475,0.064,51.051,51.000,007
|
||||
1031.238,51.483,0.010,46.923,0.086,51.563,51.500,000
|
||||
1035.478,51.492,0.010,50.675,0.098,51.565,51.500,001
|
||||
1039.541,51.481,0.009,50.443,0.061,51.564,51.500,002
|
||||
1043.587,51.484,0.008,50.172,0.074,51.564,51.500,003
|
||||
1047.657,51.490,0.009,50.001,0.050,51.564,51.500,004
|
||||
1051.979,51.482,0.009,49.999,0.038,51.564,51.500,005
|
||||
1056.034,51.487,0.006,49.930,0.118,51.565,51.500,006
|
||||
1060.086,51.486,0.005,50.051,0.108,51.565,51.500,007
|
||||
1074.201,51.962,0.008,47.353,0.041,52.041,52.000,000
|
||||
1078.380,51.959,0.005,51.102,0.071,52.042,52.000,001
|
||||
1082.427,51.960,0.008,50.923,0.053,52.042,52.000,002
|
||||
1086.497,51.956,0.009,50.652,0.051,52.040,52.000,003
|
||||
1090.555,51.951,0.011,50.479,0.029,52.041,52.000,004
|
||||
1094.880,51.956,0.009,50.440,0.054,52.041,52.000,005
|
||||
1098.955,51.966,0.006,50.443,0.056,52.041,52.000,006
|
||||
1103.016,51.964,0.009,50.506,0.076,52.041,52.000,007
|
||||
1117.076,52.443,0.005,47.817,0.113,52.527,52.500,000
|
||||
1121.492,52.443,0.009,51.601,0.098,52.527,52.500,001
|
||||
1127.970,52.446,0.008,51.400,0.063,52.528,52.500,002
|
||||
1132.492,52.448,0.006,51.102,0.041,52.527,52.500,003
|
||||
1136.692,52.438,0.008,50.926,0.072,52.527,52.500,004
|
||||
1140.737,52.441,0.011,50.926,0.055,52.526,52.500,005
|
||||
1144.784,52.447,0.007,50.928,0.080,52.526,52.500,006
|
||||
1148.993,52.445,0.006,50.876,0.112,52.526,52.500,007
|
||||
1165.582,52.977,0.006,48.297,0.035,53.062,53.000,000
|
||||
1169.683,52.977,0.007,52.090,0.089,53.061,53.000,001
|
||||
1173.739,52.982,0.009,51.886,0.086,53.061,53.000,002
|
||||
1177.785,52.977,0.009,51.607,0.045,53.062,53.000,003
|
||||
1181.994,52.983,0.008,51.513,0.053,53.061,53.000,004
|
||||
1186.184,52.980,0.008,51.433,0.035,53.061,53.000,005
|
||||
1190.249,52.980,0.006,51.378,0.096,53.059,53.000,006
|
||||
1194.294,52.975,0.010,51.455,0.089,53.062,53.000,007
|
|
|
@ -0,0 +1,170 @@
|
|||
# cycledepends, v48[1]=1, generated: Jun 05 2018 11:05:19
|
||||
time,t_core,v_ps,dv_ps,v_pit48,dv_pit48,v_keith,v_set,cycles
|
||||
15.051,28.8,43.035,0.007,1.465,0.014,1.523,43.000,000
|
||||
19.201,29.2,43.041,0.009,1.524,0.001,1.524,43.000,001
|
||||
23.602,30.1,43.035,0.007,1.521,0.012,1.523,43.000,002
|
||||
28.001,30.1,43.037,0.003,1.538,0.009,1.524,43.000,003
|
||||
32.402,30.1,43.037,0.013,1.531,0.002,1.523,43.000,004
|
||||
37.012,30.5,43.039,0.008,1.529,0.003,1.524,43.000,005
|
||||
43.612,29.2,43.034,0.006,1.527,0.003,1.524,43.000,006
|
||||
48.013,29.5,43.036,0.006,1.524,0.004,1.524,43.000,007
|
||||
63.441,27.9,43.519,0.007,1.476,0.012,1.540,43.500,000
|
||||
67.607,29.5,43.521,0.003,1.547,0.014,1.540,43.500,001
|
||||
72.003,30.1,43.514,0.004,1.543,0.008,1.541,43.500,002
|
||||
96.930,29.8,43.514,0.008,1.550,0.004,1.540,43.500,003
|
||||
101.123,30.1,43.516,0.009,1.548,0.004,1.541,43.500,004
|
||||
105.280,30.5,43.518,0.007,1.547,0.003,1.541,43.500,005
|
||||
109.423,30.1,43.520,0.012,1.545,0.003,1.541,43.500,006
|
||||
114.015,29.5,43.514,0.008,1.547,0.004,1.541,43.500,007
|
||||
128.268,28.8,43.999,0.009,1.493,0.005,1.558,44.000,000
|
||||
132.504,29.2,43.998,0.009,1.554,0.004,1.558,44.000,001
|
||||
136.905,29.8,44.001,0.005,1.561,0.005,1.558,44.000,002
|
||||
143.505,29.8,44.000,0.008,1.566,0.002,1.558,44.000,003
|
||||
149.005,30.5,43.998,0.007,1.566,0.001,1.558,44.000,004
|
||||
153.405,30.5,44.000,0.007,1.565,0.003,1.558,44.000,005
|
||||
158.016,30.1,43.999,0.007,1.561,0.002,1.558,44.000,006
|
||||
162.205,28.8,44.005,0.004,1.558,0.002,1.558,44.000,007
|
||||
176.506,28.5,44.495,0.007,1.514,0.002,1.575,44.500,000
|
||||
183.106,29.2,44.495,0.007,1.574,0.003,1.575,44.500,001
|
||||
187.506,30.1,44.498,0.012,1.578,0.003,1.575,44.500,002
|
||||
191.907,29.5,44.498,0.007,1.584,0.002,1.575,44.500,003
|
||||
196.518,29.8,44.496,0.008,1.584,0.002,1.575,44.500,004
|
||||
200.707,30.5,44.492,0.011,1.583,0.004,1.575,44.500,005
|
||||
205.106,29.8,44.499,0.006,1.579,0.002,1.575,44.500,006
|
||||
209.507,29.2,44.498,0.011,1.575,0.007,1.575,44.500,007
|
||||
225.018,27.5,45.001,0.008,1.528,0.002,1.593,45.000,000
|
||||
229.518,29.5,44.997,0.003,1.594,0.004,1.593,45.000,001
|
||||
233.708,30.1,44.996,0.007,1.597,0.003,1.593,45.000,002
|
||||
238.108,29.8,45.001,0.005,1.601,0.002,1.593,45.000,003
|
||||
242.508,30.1,44.998,0.005,1.602,0.002,1.593,45.000,004
|
||||
246.908,30.5,45.001,0.006,1.599,0.004,1.593,45.000,005
|
||||
252.408,29.8,44.995,0.004,1.598,0.005,1.593,45.000,006
|
||||
257.020,29.2,44.994,0.005,1.594,0.006,1.593,45.000,007
|
||||
271.233,29.2,45.488,0.009,1.545,0.003,1.610,45.500,000
|
||||
275.509,29.2,45.492,0.010,1.610,0.002,1.610,45.500,001
|
||||
279.910,30.1,45.483,0.013,1.615,0.002,1.611,45.500,002
|
||||
284.521,29.8,45.493,0.005,1.619,0.001,1.611,45.500,003
|
||||
288.710,30.1,45.490,0.010,1.619,0.002,1.610,45.500,004
|
||||
293.110,30.5,45.494,0.007,1.615,0.002,1.610,45.500,005
|
||||
298.610,29.8,45.495,0.005,1.615,0.004,1.610,45.500,006
|
||||
303.010,29.2,45.493,0.009,1.614,0.004,1.611,45.500,007
|
||||
317.522,28.5,46.001,0.006,1.563,0.003,1.628,46.000,000
|
||||
321.722,29.5,46.001,0.005,1.628,0.003,1.628,46.000,001
|
||||
326.111,30.5,45.999,0.006,1.632,0.002,1.628,46.000,002
|
||||
330.511,29.8,45.997,0.007,1.637,0.002,1.628,46.000,003
|
||||
334.911,30.5,46.006,0.006,1.639,0.002,1.628,46.000,004
|
||||
341.511,30.5,46.000,0.008,1.637,0.006,1.628,46.000,005
|
||||
347.012,29.5,46.002,0.008,1.635,0.007,1.628,46.000,006
|
||||
351.412,29.2,45.995,0.006,1.631,0.003,1.629,46.000,007
|
||||
365.712,28.5,46.510,0.007,1.580,0.003,1.646,46.500,000
|
||||
370.112,29.2,46.509,0.009,1.646,0.002,1.646,46.500,001
|
||||
374.512,30.1,46.508,0.005,1.651,0.001,1.646,46.500,002
|
||||
380.012,29.8,46.508,0.009,1.657,0.003,1.646,46.500,003
|
||||
384.412,30.1,46.510,0.004,1.656,0.005,1.646,46.500,004
|
||||
389.024,30.5,46.510,0.009,1.654,0.005,1.646,46.500,005
|
||||
393.213,30.5,46.509,0.006,1.649,0.004,1.646,46.500,006
|
||||
397.613,28.8,46.510,0.006,1.650,0.005,1.646,46.500,007
|
||||
411.914,28.5,46.995,0.011,1.597,0.002,1.664,47.000,000
|
||||
416.525,29.2,46.996,0.008,1.665,0.001,1.664,47.000,001
|
||||
420.714,30.1,46.996,0.008,1.669,0.002,1.664,47.000,002
|
||||
425.114,29.8,46.997,0.007,1.671,0.001,1.664,47.000,003
|
||||
429.514,30.1,47.000,0.005,1.670,0.005,1.664,47.000,004
|
||||
433.914,30.1,47.001,0.003,1.677,0.005,1.664,47.000,005
|
||||
438.525,30.5,46.999,0.005,1.669,0.003,1.664,47.000,006
|
||||
442.715,29.5,46.995,0.007,1.668,0.003,1.664,47.000,007
|
||||
457.015,28.5,47.479,0.007,1.613,0.003,1.681,47.500,000
|
||||
461.415,29.2,47.477,0.007,1.682,0.001,1.681,47.500,001
|
||||
468.015,30.1,47.477,0.012,1.688,0.002,1.681,47.500,002
|
||||
472.416,29.8,47.481,0.015,1.691,0.002,1.681,47.500,003
|
||||
477.026,30.5,47.475,0.014,1.692,0.008,1.681,47.500,004
|
||||
481.215,30.5,47.480,0.012,1.688,0.004,1.681,47.500,005
|
||||
485.616,30.5,47.482,0.006,1.687,0.004,1.681,47.500,006
|
||||
490.016,29.5,47.481,0.010,1.680,0.007,1.681,47.500,007
|
||||
505.416,28.2,47.997,0.007,1.631,0.002,1.699,48.000,000
|
||||
510.028,29.8,47.994,0.006,1.701,0.001,1.699,48.000,001
|
||||
514.217,30.1,47.998,0.009,1.704,0.001,1.699,48.000,002
|
||||
518.617,29.8,47.997,0.005,1.710,0.003,1.699,48.000,003
|
||||
525.218,30.5,47.995,0.008,1.707,0.006,1.699,48.000,004
|
||||
529.617,30.1,47.998,0.004,1.706,0.004,1.699,48.000,005
|
||||
535.117,30.1,47.998,0.008,1.703,0.003,1.699,48.000,006
|
||||
539.518,29.2,48.002,0.009,1.705,0.005,1.699,48.000,007
|
||||
554.029,28.8,48.490,0.010,1.647,0.001,1.717,48.500,000
|
||||
558.218,29.2,48.493,0.008,1.718,0.002,1.717,48.500,001
|
||||
562.618,30.1,48.496,0.009,1.723,0.002,1.717,48.500,002
|
||||
567.018,29.8,48.491,0.004,1.727,0.006,1.717,48.500,003
|
||||
571.419,30.5,48.490,0.006,1.723,0.006,1.717,48.500,004
|
||||
576.030,30.5,48.493,0.004,1.724,0.004,1.717,48.500,005
|
||||
580.220,30.5,48.495,0.007,1.720,0.003,1.717,48.500,006
|
||||
584.620,29.2,48.496,0.005,1.719,0.004,1.717,48.500,007
|
||||
598.919,28.8,48.979,0.011,1.664,0.001,1.734,49.000,000
|
||||
603.530,29.5,48.975,0.004,1.735,0.001,1.734,49.000,001
|
||||
607.720,30.1,48.975,0.010,1.740,0.001,1.734,49.000,002
|
||||
612.120,30.1,48.973,0.008,1.741,0.004,1.734,49.000,003
|
||||
616.521,30.1,48.975,0.007,1.745,0.002,1.734,49.000,004
|
||||
622.021,30.8,48.983,0.010,1.740,0.005,1.734,49.000,005
|
||||
627.520,30.5,48.973,0.006,1.738,0.002,1.734,49.000,006
|
||||
631.920,29.2,48.977,0.006,1.735,0.004,1.734,49.000,007
|
||||
649.521,28.5,49.492,0.010,1.682,0.002,1.752,49.500,000
|
||||
653.921,29.8,49.496,0.008,1.753,0.001,1.752,49.500,001
|
||||
658.532,30.5,49.489,0.007,1.760,0.003,1.752,49.500,002
|
||||
662.721,30.1,49.494,0.008,1.762,0.007,1.752,49.500,003
|
||||
667.122,29.8,49.495,0.009,1.760,0.002,1.752,49.500,004
|
||||
671.521,30.5,49.496,0.006,1.762,0.004,1.752,49.500,005
|
||||
675.922,30.5,49.490,0.009,1.757,0.003,1.752,49.500,006
|
||||
680.534,29.8,49.493,0.006,1.756,0.006,1.752,49.500,007
|
||||
747.424,29.5,49.984,0.003,1.698,0.002,1.770,50.000,000
|
||||
752.036,29.8,49.989,0.008,1.771,0.001,1.770,50.000,001
|
||||
756.224,30.8,49.985,0.010,1.777,0.003,1.770,50.000,002
|
||||
760.624,30.1,49.986,0.010,1.780,0.004,1.770,50.000,003
|
||||
765.025,30.1,49.991,0.007,1.782,0.004,1.770,50.000,004
|
||||
769.424,30.5,49.979,0.006,1.779,0.003,1.770,50.000,005
|
||||
774.036,30.5,49.988,0.007,1.773,0.002,1.770,50.000,006
|
||||
778.225,29.2,49.983,0.004,1.771,0.003,1.770,50.000,007
|
||||
792.525,28.8,50.479,0.006,1.714,0.001,1.787,50.500,000
|
||||
796.925,29.5,50.478,0.006,1.788,0.001,1.787,50.500,001
|
||||
801.537,30.5,50.476,0.009,1.793,0.004,1.787,50.500,002
|
||||
805.726,29.8,50.478,0.007,1.798,0.007,1.787,50.500,003
|
||||
810.126,30.1,50.477,0.011,1.798,0.004,1.787,50.500,004
|
||||
814.527,30.8,50.480,0.007,1.794,0.003,1.787,50.500,005
|
||||
818.926,30.5,50.479,0.005,1.792,0.006,1.787,50.500,006
|
||||
823.538,29.5,50.475,0.006,1.789,0.005,1.787,50.500,007
|
||||
837.753,28.8,50.966,0.006,1.730,0.001,1.804,51.000,000
|
||||
842.027,29.5,50.964,0.006,1.806,0.001,1.804,51.000,001
|
||||
846.592,30.5,50.968,0.007,1.810,0.003,1.804,51.000,002
|
||||
851.039,30.1,50.965,0.007,1.813,0.006,1.804,51.000,003
|
||||
855.228,30.1,50.970,0.008,1.812,0.003,1.804,51.000,004
|
||||
859.628,30.5,50.965,0.006,1.815,0.004,1.804,51.000,005
|
||||
864.028,30.8,50.966,0.008,1.810,0.007,1.804,51.000,006
|
||||
868.428,29.2,50.962,0.005,1.809,0.006,1.804,51.000,007
|
||||
884.040,28.2,51.476,0.004,1.747,0.001,1.823,51.500,000
|
||||
888.229,29.8,51.479,0.006,1.823,0.002,1.823,51.500,001
|
||||
892.629,30.5,51.477,0.008,1.828,0.005,1.823,51.500,002
|
||||
897.039,30.1,51.477,0.007,1.835,0.006,1.823,51.500,003
|
||||
902.530,30.5,51.475,0.006,1.834,0.004,1.823,51.500,004
|
||||
906.929,30.8,51.475,0.007,1.830,0.003,1.823,51.500,005
|
||||
911.540,30.8,51.475,0.004,1.825,0.004,1.823,51.500,006
|
||||
915.729,29.8,51.472,0.010,1.825,0.003,1.823,51.500,007
|
||||
931.130,28.2,51.951,0.010,1.765,0.001,1.839,52.000,000
|
||||
935.530,29.8,51.954,0.007,1.841,0.002,1.839,52.000,001
|
||||
939.931,30.5,51.954,0.004,1.847,0.005,1.839,52.000,002
|
||||
944.542,30.5,51.948,0.005,1.850,0.007,1.839,52.000,003
|
||||
948.731,30.5,51.955,0.007,1.851,0.004,1.839,52.000,004
|
||||
953.131,30.8,51.954,0.007,1.848,0.005,1.839,52.000,005
|
||||
957.531,30.8,51.948,0.003,1.846,0.004,1.840,52.000,006
|
||||
961.931,29.5,51.951,0.005,1.841,0.005,1.839,52.000,007
|
||||
976.231,29.2,52.440,0.008,1.780,0.002,1.857,52.500,000
|
||||
980.632,29.5,52.434,0.007,1.858,0.001,1.857,52.500,001
|
||||
985.032,30.5,52.435,0.010,1.864,0.004,1.857,52.500,002
|
||||
989.432,30.5,52.436,0.007,1.866,0.002,1.857,52.500,003
|
||||
994.043,30.5,52.438,0.011,1.865,0.002,1.857,52.500,004
|
||||
1000.593,30.8,52.434,0.006,1.867,0.008,1.857,52.500,005
|
||||
1007.154,29.8,52.435,0.007,1.862,0.003,1.857,52.500,006
|
||||
1011.433,29.8,52.436,0.011,1.858,0.006,1.857,52.500,007
|
||||
1027.044,28.2,52.969,0.004,1.799,0.001,1.876,53.000,000
|
||||
1031.233,29.8,52.975,0.008,1.877,0.001,1.876,53.000,001
|
||||
1035.634,30.1,52.969,0.005,1.885,0.006,1.876,53.000,002
|
||||
1040.034,30.1,52.973,0.010,1.885,0.002,1.875,53.000,003
|
||||
1044.433,30.1,52.970,0.006,1.885,0.005,1.876,53.000,004
|
||||
1049.045,30.8,52.966,0.007,1.884,0.006,1.876,53.000,005
|
||||
1053.289,30.8,52.965,0.008,1.878,0.004,1.876,53.000,006
|
||||
1057.634,29.2,52.971,0.004,1.878,0.003,1.876,53.000,007
|
|
|
@ -0,0 +1,5 @@
|
|||
\newcommand{\val}[2]{%
|
||||
\IfEqCase{#1}{%
|
||||
{ 0 }{ \SI{ -0.0016790748810628826+-7.332339429588327e-05 }{ }}
|
||||
}[\PackageError{unc_tolatex}{undefinded value: #1}{}]%
|
||||
}
|
|
@ -1,12 +1,15 @@
|
|||
#! /Usr/bin/python3
|
||||
#! /usr/bin/python4
|
||||
|
||||
import scipy.optimize as opt
|
||||
#import scipy.optimize as opt
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import matplotlib.pyplot as plt
|
||||
import VisTools.plotting as vt
|
||||
import uncertainties as unc
|
||||
import uncertainties.unumpy as unp
|
||||
import VisTools.tex as vtt
|
||||
#import uncertainties as unc
|
||||
#import uncertainties.unumpy as unp
|
||||
|
||||
append = "_20180605"
|
||||
|
||||
plt.ioff()
|
||||
plt.style.use('bmh')
|
||||
|
@ -14,27 +17,27 @@ fig, axarr = plt.subplots(
|
|||
2,
|
||||
1,
|
||||
figsize=(10, 8),
|
||||
gridspec_kw = {'height_ratios':[4,1]}
|
||||
gridspec_kw={'height_ratios':[4, 1]},
|
||||
sharex="col"
|
||||
)
|
||||
plt.subplots_adjust(hspace=.5)
|
||||
data = pd.read_csv("./" + __file__[:-3].split("_")[1] + ".csv", comment="#")
|
||||
plt.subplots_adjust(hspace=.1)
|
||||
data = pd.read_csv("./" + __file__[:-3].split("_")[1] + append + ".csv", comment="#")
|
||||
|
||||
fits = np.array([])
|
||||
errs = np.array([])
|
||||
colors = np.array([])
|
||||
|
||||
data['dv_pit48/v'] /= 2
|
||||
data['Dv'] = data['v_pit48/v'] - data['v_set/v']
|
||||
data['Dvk'] = data['v_keith/v'] - data['v_set/v']
|
||||
data['dv_pit48'] /= 2
|
||||
data['Dv'] = data['v_pit48'] - data['v_keith']
|
||||
print(data)
|
||||
# fit to abs dist
|
||||
linfnc = lambda x,m,c: x*m+c
|
||||
linfnc = lambda x, m, c: x*m+c
|
||||
|
||||
def plot_and_linfit(col: str,fil, l: str):
|
||||
p = axarr[0].errorbar(
|
||||
data[fil]['v_set/v'],
|
||||
def plot_and_linfit(col: str, fil, l: str):
|
||||
plot = axarr[0].errorbar(
|
||||
data[fil]['v_set'],
|
||||
data[fil][col],
|
||||
alpha = 0.3,
|
||||
alpha=0.3,
|
||||
label=None,
|
||||
fmt='.',
|
||||
antialiased=True
|
||||
|
@ -42,52 +45,51 @@ def plot_and_linfit(col: str,fil, l: str):
|
|||
|
||||
vals = vt.lm_plot(
|
||||
data[fil],
|
||||
'v_set/v',
|
||||
'v_set',
|
||||
col,
|
||||
None,
|
||||
'dv_pit48/v',
|
||||
'dv_pit48',
|
||||
l,
|
||||
fig=axarr[0],
|
||||
color = p[0].get_color()
|
||||
color=plot[0].get_color()
|
||||
)
|
||||
|
||||
return vals, p
|
||||
return vals, plot
|
||||
|
||||
for i in range(8):
|
||||
val, p = plot_and_linfit(
|
||||
'Dv',
|
||||
data.cycles == i,
|
||||
'$f_{}={{m:.3f}}\\cdot x{{c:+.3f}}V$'.format(i))
|
||||
'Dv',
|
||||
data.cycles == i,
|
||||
'$f_{}={{m:.5f}}\\cdot x{{c:+.5f}}V$'.format(i))
|
||||
fits = np.append(fits, val[0])
|
||||
#errs = np.append(errs, np.sqrt(pcov[0][0]))
|
||||
#colors = np.append(colors, p[0].get_color() )
|
||||
colors = np.append(colors, p[0].get_color() )
|
||||
|
||||
plot_and_linfit('Dvk', data.cycles == 0, 'reference measurement')
|
||||
#plot_and_linfit('Dvk', data.cycles == 0, 'reference measurement')
|
||||
|
||||
print(fits[0].n)
|
||||
for i in range(8):
|
||||
axarr[1].errorbar(
|
||||
i,
|
||||
fits[i].n,
|
||||
yerr = fits[i].s,
|
||||
fmt='.',
|
||||
#c = colors[i],
|
||||
data[data.cycles==i]['v_set'],
|
||||
data[data.cycles==i]['t_core'],
|
||||
#fmt='.',
|
||||
alpha=.3,
|
||||
c = colors[i],
|
||||
label="$f_{}: T_{{mean}}={:.1f}$".format(i, np.mean(data[data.cycles==i]['t_core']))
|
||||
)
|
||||
|
||||
axarr[0].set_xlabel('V$_{set}$/V')
|
||||
axarr[1].set_xlabel('V$_{set}$')
|
||||
#axarr[0].set_title("PowerIt ADC Calibration: dependency on measurement cycles")
|
||||
axarr[0].set_ylabel('$\Delta$V$_{IN}$ / V')
|
||||
axarr[0].set_ylabel(r'$\Delta$V$_{IN}$ / V')
|
||||
|
||||
axarr[1].set_xlabel('scaler value')
|
||||
axarr[1].set_ylabel('$m = \Delta$Gain')
|
||||
#axarr[1].set_xlabel('scaler value')
|
||||
axarr[1].set_ylabel(r'$T / \degree C$')
|
||||
axarr[0].legend(
|
||||
bbox_to_anchor=(0, -.29,1, 1),
|
||||
loc="lower left",
|
||||
mode="expand",
|
||||
borderaxespad=0,
|
||||
ncol=3)
|
||||
bbox_to_anchor=(.3, -.29, 1, 1),
|
||||
ncol=1)
|
||||
plt.savefig(
|
||||
"./" + __file__[:-3].split("_")[1] + ".pdf",
|
||||
dpi=1000,
|
||||
"./" + __file__[:-3].split("_")[1] + append + ".pdf",
|
||||
dpi=1000,
|
||||
bbox_inches='tight')
|
||||
|
||||
vtt.unc_tolatex(fits[0], "0")
|
||||
|
|
|
@ -0,0 +1,97 @@
|
|||
#! /usr/bin/python4
|
||||
|
||||
#import scipy.optimize as opt
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import matplotlib.pyplot as plt
|
||||
import VisTools.plotting as vt
|
||||
import VisTools.tex as vtt
|
||||
#import uncertainties as unc
|
||||
#import uncertainties.unumpy as unp
|
||||
|
||||
append = ""#"_20180529"
|
||||
|
||||
plt.ioff()
|
||||
plt.style.use('bmh')
|
||||
fig, axarr = plt.subplots(
|
||||
2,
|
||||
1,
|
||||
figsize=(10, 8),
|
||||
gridspec_kw={'height_ratios':[4, 1]}
|
||||
)
|
||||
plt.subplots_adjust(hspace=.5)
|
||||
data = pd.read_csv("./" + __file__[:-3].split("_")[1] + append + ".csv", comment="#")
|
||||
|
||||
fits = np.array([])
|
||||
errs = np.array([])
|
||||
colors = np.array([])
|
||||
|
||||
data['dv_pit48'] /= 2
|
||||
data['Dv'] = data['v_pit48'] - data['v_set']
|
||||
data['Dvk'] = data['v_keith'] - data['v_set']
|
||||
print(data)
|
||||
# fit to abs dist
|
||||
linfnc = lambda x, m, c: x*m+c
|
||||
|
||||
def plot_and_linfit(col: str, fil, l: str):
|
||||
plot = axarr[0].errorbar(
|
||||
data[fil]['v_set'],
|
||||
data[fil][col],
|
||||
alpha=0.3,
|
||||
label=None,
|
||||
fmt='.',
|
||||
antialiased=True
|
||||
)
|
||||
|
||||
vals = vt.lm_plot(
|
||||
data[fil],
|
||||
'v_set',
|
||||
col,
|
||||
None,
|
||||
'dv_pit48',
|
||||
l,
|
||||
fig=axarr[0],
|
||||
color=plot[0].get_color()
|
||||
)
|
||||
|
||||
return vals, plot
|
||||
|
||||
for i in range(8):
|
||||
val, p = plot_and_linfit(
|
||||
'Dv',
|
||||
data.cycles == i,
|
||||
'$f_{}={{m:.3f}}\\cdot x{{c:+.3f}}V$'.format(i))
|
||||
fits = np.append(fits, val[0])
|
||||
#errs = np.append(errs, np.sqrt(pcov[0][0]))
|
||||
colors = np.append(colors, p[0].get_color() )
|
||||
|
||||
plot_and_linfit('Dvk', data.cycles == 0, 'reference measurement')
|
||||
|
||||
print(fits[0].n)
|
||||
for i in range(8):
|
||||
axarr[1].errorbar(
|
||||
i,
|
||||
fits[i].n,
|
||||
yerr=fits[i].s,
|
||||
fmt='.',
|
||||
#c = colors[i],
|
||||
)
|
||||
|
||||
axarr[0].set_xlabel('V$_{set}$')
|
||||
#axarr[0].set_title("PowerIt ADC Calibration: dependency on measurement cycles")
|
||||
axarr[0].set_ylabel(r'$\Delta$V$_{IN}$ / V')
|
||||
|
||||
axarr[1].set_xlabel('scaler value')
|
||||
axarr[1].set_ylabel(r'$m = \Delta$Gain')
|
||||
axarr[0].legend(
|
||||
bbox_to_anchor=(0, -.29, 1, 1),
|
||||
loc="lower left",
|
||||
mode="expand",
|
||||
borderaxespad=0,
|
||||
ncol=3)
|
||||
plt.savefig(
|
||||
"./" + __file__[:-3].split("_")[1] + append + ".pdf",
|
||||
dpi=1000,
|
||||
bbox_inches='tight')
|
||||
|
||||
vtt.unc_tolatex(fits[0], "0")
|
|
@ -9,6 +9,7 @@
|
|||
\usepackage{enumitem,amssymb}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{svg}
|
||||
\usepackage{pdflscape}
|
||||
|
||||
\definecolor{myteal}{HTML}{228c9c}
|
||||
%\DeclareTColorBox{blockbox}{ O{width=\textwidth} }{boxrule=0mm, colframe=myteal, valign lower=bottom, on line, lower separated=false, height=.6\textheight, #1}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
\documentclass[notitlepage]{scrreprt}
|
||||
\documentclass[notitlepage, a4]{scrreprt}
|
||||
\input{preamble}
|
||||
|
||||
\pretitle{\begin{center}\huge\bfseries}
|
||||
|
@ -20,10 +20,17 @@
|
|||
|
||||
\tableofcontents
|
||||
\include{./tabs/registerbuffer}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\hspace*{-.16\columnwidth}
|
||||
\includegraphics[width=1.3\columnwidth]{./data/m04_cycledepends/cycledepends_20180529.pdf}
|
||||
\caption{plotted difference from set input voltage, and fitted linearly, May 29th 2018, $\approx$32\si\degree C}
|
||||
\end{figure}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\hspace*{-.16\columnwidth}
|
||||
\includegraphics[width=1.3\columnwidth]{./data/m04_cycledepends/cycledepends.pdf}
|
||||
\caption{plotted difference from set input voltage, and fitted linearly, May 30th 2018, $\approx$25\si\degree C}
|
||||
\end{figure}
|
||||
\include{parts/intro}
|
||||
%\include{parts/tasks}
|
||||
|
|
Loading…
Reference in New Issue