diff --git a/script/test/TestPilatus.py b/script/test/TestPilatus.py new file mode 100644 index 0000000..530dfea --- /dev/null +++ b/script/test/TestPilatus.py @@ -0,0 +1,21 @@ +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(10.0) + finally: + close_shutter() + + +detectors = [pixel, pixel.image_filename, image.intensity,image.corrected_intensity, image.matrix] + +pixel.set_path("tmp", "gobbo") +pixel.set_threshold(40, 500, 8000, 100000) +pixel.show() +pixel.assert_ready() + +tscan (detectors, 5, 1.0 , before_read=trigger_pilatus) + \ No newline at end of file