Closedown

This commit is contained in:
gac-iss
2020-01-16 13:22:24 +01:00
parent d8582d79a3
commit 41669d4a11
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
i0=ch.psi.pshell.epics.ChannelDouble|X11MA-KEI10:READOUT|Read||true
capture=ch.psi.pshell.epics.ChannelDouble|NAPP-SCIENTA:HDF1:Capture|||
energy=ch.psi.pshell.epics.Positioner|X07DB-OP-MONO:ENERGY X07DB-OP-MONO:ERBK|||true
scienta=ch.psi.pshell.epics.Scienta|NAPP-SCIENTA|||true
spectrum=ch.psi.pshell.imaging.CameraSource|scienta|||true
+5
View File
@@ -5,10 +5,15 @@ regions = [[523.0, 527.0, 0.5], [527.0, 535.0, 0.25], [535.0, 558.0, 0.5]]
caputq("NAPP-SCIENTA:HDF1:Capture",1)
def trigger(position, scan):
scienta.start()
scienta.waitNewImage(-1)
try:
rscan(energy, sensors, regions, latency = 0.0, before_read=trigger)
finally:
caputq("NAPP-SCIENTA:HDF1:Capture",0)
scienta.zeroSupplies()