Commit 171c8479 authored by Emmanuel Papillon's avatar Emmanuel Papillon
Browse files

in fscan preset, use ATRIG if accumulation mode is used

parent b916d755
......@@ -33,7 +33,7 @@ def set_accumulation(limadev, acc_max_expo_time=None):
limadev.accumulation.max_expo_time = acc_max_expo_time
acc_max_expo_time = limadev.accumulation.max_expo_time
print(f"{} set in ACCUMULATION mode (acc_max_expo_time= {acc_max_expo_time} sec)")
print(f"{} set in ACCUMULATION mode with acc_max_expo_time= {acc_max_expo_time} sec")
raise RuntimeError(f"Detector {} not configured in accumulation chain")
......@@ -114,11 +114,18 @@ class FScanMuxPreset(ScanPreset):
def set_fscan_master(self, master):
self.limadevs = master.lima_used
self.acc_used = master.inpars.acc_used
self.acc_used = False
def prepare(self, scan):
self.soft_fsh = True
self.opmux.switch("TRIGGER_MODE", "MUSST")
self.opmux.switch("MUSST", "BTRIG")
if self.acc_used:
self.opmux.switch("MUSST", "ATRIG")
self.opmux.switch("MUSST", "BTRIG")
for dev in self.limadevs:
cam_mux = CAM2MUX[]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment