Closedown
This commit is contained in:
@@ -2,7 +2,8 @@ current=ch.psi.pshell.epics.ChannelDouble|ARIDI-PCT:CURRENT 6|Read||true
|
||||
sample_x=ch.psi.pshell.epics.Motor|X09LB-ES2-SMP:TRX|||true
|
||||
sample_y=ch.psi.pshell.epics.Motor|X09LB-ES2-SMP:TRY|||true
|
||||
sample_z=ch.psi.pshell.epics.Motor|X09LB-ES2-SMP:TRZ|||true
|
||||
dummy_motor=ch.psi.pshell.device.DummyMotor||||true
|
||||
dummy_x=ch.psi.pshell.device.DummyMotor||||true
|
||||
dummy_y=ch.psi.pshell.device.DummyMotor||||true
|
||||
sample_r=ch.psi.pshell.epics.Motor|X09LB-ES3-SAMPLE:ROT1|||true
|
||||
ccd=ch.psi.pshell.epics.AreaDetector|X09LB-ES2-CCD|||true
|
||||
image=ch.psi.pshell.imaging.CameraSource|ccd|||true
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user