Script execution
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user