Script execution

This commit is contained in:
2017-03-23 10:02:52 +01:00
parent cca64856b7
commit 0208edf83d
+19
View File
@@ -0,0 +1,19 @@
rel_x = pico_bpm6_new_x.read()
class XAxis(ReadableArray):
def read(self):
start = pico_bpm6_new.getTimestamp()
#return to_array([x + start for x in rel_x], 'd')
return [x + start for x in rel_x]
def getSize(self):
return len(rel_x) #only reads if cache is None
x_axis = XAxis()
setup_plotting(line_plots = [pico_bpm6_new, x_axis])
tscan([pico_bpm6_new, x_axis], 10, 0.5)