This commit is contained in:
2026-06-19 14:17:51 +02:00
parent 0c431c1c10
commit 8b32e35915
@@ -599,11 +599,17 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS):
# an acquisition regularly with a WaitTimeoutError, the timeout can be increased but it should
# be investigated why the EPICS interface is slow to respond.
try:
current_time = time.time()
while time.time() - current_time < 3 and mcs.acquiring.get() != ACQUIRING.ACQUIRING:
time.sleep(0.1)
logger.warning(
f"MCS card is not in acquiring state, current state: {mcs.acquiring.get()}"
)
if mcs.acquiring.get() != ACQUIRING.ACQUIRING:
logger.warning(
f"MCS card is not in acquiring state, current state: {mcs.acquiring.get()}"
)
status_mcs.wait(timeout=3)
status_mcs.wait(timeout=3)
except Exception as exc:
logger.warning(f"MCS did not go to Acquiring within 3s. Retrying erase_start {exc}")
mcs.erase_start.put(1)