Script execution

This commit is contained in:
gac-x04sa
2018-11-06 11:05:12 +01:00
parent 3e3a0ce067
commit f2441476d3
+21
View File
@@ -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)