This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Constant Variables | |
// Pin receiving the signal that experiment is still running | |
const byte heartPin = 2; | |
// Pin controlling the analog interlock | |
const byte cmdPin = 3; | |
// Time interval the interlock will stay | |
// active after having received the heartbeat | |
// 10 min = 600000 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.optimize import leastsq | |
x_values = np.array([-1.12163752, -1.01270045, -0.90458398, -0.79520288, -0.68504665, | |
0.51738399, 0.62679271, 0.73598531, 0.84455173, 0.95383917, | |
-1.12527093, -1.01615466, -0.90649584, -0.79919983, -0.68616358, | |
0.51407783, 0.62394869, 0.73268909, 0.84366404, 0.9526824]) | |
x_errors = np.array([ 0.00045032, 0.00045026, 0.00045033, 0.00045039, 0.00045036, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.