DAMARIS can now run scripts immediatly upon startup.

This is the first step towards a simple queing implementation.
This commit is contained in:
Markus Rosenstihl
2018-03-16 17:03:44 +01:00
parent 328d50fc43
commit 8991e61600
5 changed files with 55 additions and 38 deletions

11
tests/exp_test.py Normal file
View 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
View File

@ -0,0 +1,4 @@
def result():
for num,ts in enumerate(results):
data["ts %i"%num] = ts
print ts