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