Closedown

This commit is contained in:
gac-x04sa
2018-11-06 12:35:43 +01:00
parent d7d3034dd9
commit 63220effbc

View File

@@ -139,6 +139,17 @@ def set_bg_roi(x1, y1, x2, y2):
# Scan callbacks
###################################################################################################
def trigger_pilatus(position, scan):
count_time = get_count_time()
open_shutter()
try:
if count_time>0:
pixel.set_expose(count_time)
pixel.start()
pixel.wait_finished(30.0)
finally:
close_shutter()
count_id = None
image_filename = None