w
This commit is contained in:
@@ -207,7 +207,8 @@ class Pilatus(PSIDeviceBase, ADBase):
|
||||
self.cam.array_callbacks.set(1).wait(5) # Enable array callbacks
|
||||
self.hdf.enable.set(1).wait(5) # Enable HDF5 plugin
|
||||
# Camera settings
|
||||
self.cam.num_exposures.set(n_images).wait(5)
|
||||
self.cam.num_exposures.set(1).wait(5)
|
||||
self.cam.num_images.set(n_images).wait(5)
|
||||
self.cam.acquire_time.set(detector_exp_time).wait(5)
|
||||
self.cam.acquire_period.set(PILATUS_ACQUIRE_TIME).wait(5)
|
||||
# HDF5 settings
|
||||
@@ -237,6 +238,9 @@ class Pilatus(PSIDeviceBase, ADBase):
|
||||
# TODO should we fetch the image counter value, or rather use our own count
|
||||
# TODO check logic for xas scans!
|
||||
if self.scan_info.msg.scan_type == "step":
|
||||
logger.warning(
|
||||
f"Triggering image {self.cam.array_counter.get()} and num_ images {self.cam.num_images_counter.get()}"
|
||||
)
|
||||
img_counter = self.cam.array_counter.get()
|
||||
status = CompareStatus(self.cam.array_counter, img_counter + 1)
|
||||
self.trigger_shot.put(1)
|
||||
|
||||
Reference in New Issue
Block a user