21 lines
560 B
Python
21 lines
560 B
Python
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()
|
|
|
|
|
|
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)
|
|
|