w
This commit is contained in:
@@ -264,6 +264,7 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS):
|
||||
# This value has been choosen empirically after testing with the HW. It's
|
||||
# also just called once per scan and has been found to improve stability of the HW.
|
||||
time.sleep(0.2)
|
||||
logger.info("DDG1 configured for upcoming scan.")
|
||||
|
||||
def _prepare_mcs_on_trigger(self, mcs: MCSCardCSAXS) -> None:
|
||||
"""
|
||||
@@ -354,6 +355,7 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS):
|
||||
|
||||
|
||||
"""
|
||||
logger.info("Polling DDG1 event status register...")
|
||||
self.state.proc_status.put(1, use_complete=True)
|
||||
|
||||
# NOTE: Important sleep that has been empirically determined after testing for a long time
|
||||
@@ -415,6 +417,7 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS):
|
||||
# Callback to cancel the status if the device is stopped
|
||||
def cancel_cb(status: CompareStatus) -> None:
|
||||
"""Callback to cancel the status if the device is stopped."""
|
||||
logger.info("DDG1 end of burst detected, stopping polling loop.")
|
||||
if status.done:
|
||||
self._stop_polling()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user