26 lines
670 B
Python
26 lines
670 B
Python
def trigger_pilatus(position, scan):
|
|
count_time = get_count_time()
|
|
open_shutter()
|
|
try:
|
|
if count_time>0:
|
|
print "\n\nTRIGGER"
|
|
pixel.set_expose(count_time)
|
|
print "."
|
|
pixel.start()
|
|
print ".."
|
|
pixel.wait_finished(30.0)
|
|
print "..."
|
|
finally:
|
|
close_shutter()
|
|
print "EXIT"
|
|
|
|
|
|
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, 4, 0.5 , before_read=trigger_pilatus)
|
|
|