Files
dev/script/test/test2.py
2020-03-13 14:03:25 +01:00

19 lines
401 B
Python
Executable File

"""
Line Scan with 2 writables and triggering
"""
index=0
def BeforeReadout():
global index
# print "Frame = " + str(index)
index=index+1
#log("trigger " + index)
caput("TESTIOC:TESTBO:MyBO","On")
caput("TESTIOC:TESTBO:MyBO","Off")
a= lscan((inp), (sin,out,arr), START, STOP, STEPS, 0.1, before_read=BeforeReadout)
set_exec_pars(then="print 'OK'")