Closedown

This commit is contained in:
gac-x09lb
2022-10-03 09:58:59 +02:00
parent 75e32049b3
commit 6fea09eff5
2 changed files with 23 additions and 1 deletions

View File

@@ -2,3 +2,24 @@
# Deployment specific global definitions - executed after startup.py
###################################################################################################
def is_beam_ok():
return True
def wait_beam():
if not is_beam_ok():
print "Waiting for beam..."
while not beam_ok:
time.sleep(0.1)
print "Beam ok"
def before_readout():
wait_beam()
trig_ccd()
def after_readout(rec, scan):
if not is_beam_ok():
rec.invalidate()
def after_scan():
pass