w
This commit is contained in:
@@ -207,14 +207,20 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
|
||||
"""
|
||||
|
||||
# NOTE: If for some reason, the card is still acquiring, we need to stop it first
|
||||
# This should never happen as the card is properly stopped during unstage
|
||||
# Can only happen if user manually interferes with the IOC through other means
|
||||
if self.acquiring.get() == ACQUIRING.ACQUIRING:
|
||||
logger.warning(
|
||||
f"MCS Card {self.name} was still acquiring on staging. Stopping acquisition."
|
||||
)
|
||||
self.stop_all.put(1)
|
||||
status = CompareStatus(self.acquiring, ACQUIRING.DONE)
|
||||
status.wait(timeout=10)
|
||||
|
||||
# NOTE: Erase all will result in data emission through mca callback subscriptions
|
||||
# The buffer needs to be cleared as this will otherwise lead to missing
|
||||
# triggers during the scan.
|
||||
# triggers during the scan. Again, this should not happen if unstage is properly called.
|
||||
# But user interference or a restart of the device_server may lead to this situation.
|
||||
if self.current_channel.get() != 0:
|
||||
with suppress_mca_callbacks(self):
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user