From 63220effbce3ea7e48d5aedfb21cfb9a3c4aac26 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Tue, 6 Nov 2018 12:35:43 +0100 Subject: [PATCH] Closedown --- script/local.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/script/local.py b/script/local.py index e33d2ad..9cd2439 100644 --- a/script/local.py +++ b/script/local.py @@ -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