diff --git a/config/devices.properties b/config/devices.properties index 911e7e5..a81e1a8 100644 --- a/config/devices.properties +++ b/config/devices.properties @@ -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 diff --git a/script/templates/EnergyScan.py b/script/templates/EnergyScan.py index 50bd7e2..72b3621 100644 --- a/script/templates/EnergyScan.py +++ b/script/templates/EnergyScan.py @@ -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() \ No newline at end of file