DAMARIS can now run scripts immediatly upon startup.
This is the first step towards a simple queing implementation.
This commit is contained in:
11
tests/exp_test.py
Normal file
11
tests/exp_test.py
Normal file
@ -0,0 +1,11 @@
|
||||
def test():
|
||||
e=Experiment()
|
||||
e.ttl_pulse(length=1e-6, value=1)
|
||||
e.wait(1e-3)
|
||||
e.ttl_pulse(length=1e-6,value=1)
|
||||
e.record(samples=1024,frequency=1e6,sensitivity=1)
|
||||
return e
|
||||
|
||||
def experiment():
|
||||
for i in range(1):
|
||||
yield test()
|
4
tests/res_test.py
Normal file
4
tests/res_test.py
Normal file
@ -0,0 +1,4 @@
|
||||
def result():
|
||||
for num,ts in enumerate(results):
|
||||
data["ts %i"%num] = ts
|
||||
print ts
|
Reference in New Issue
Block a user