bluestage on GF

This commit is contained in:
gac-x05la
2024-11-28 10:27:23 +01:00
committed by mohacsi_i
parent 0b98da6e83
commit d5403abfa4
2 changed files with 8 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ class GigaFrostCameraMixin(CustomDetectorMixin):
if self.parent.infoSyncFlag.value == 0:
self.parent.cmdSyncHw.set(1).wait()
# Switch to acquiring
self.parent.cmdStartCamera.set(1).wait()
self.parent.bluestage()
def on_unstage(self) -> None:
"""Specify actions to be executed during unstage.
@@ -545,6 +545,11 @@ class GigaFrostCamera(PSIDetectorBase):
# Commit parameters
self.cmdSetParam.set(1).wait()
def bluestage(self):
""" Bluesky style stage"""
# Switch to acquiring
self.cmdStartCamera.set(1).wait()
def set_acquisition_mode(self, acq_mode):
""" Set acquisition mode

View File

@@ -69,6 +69,7 @@ class StdDaqMixin(CustomDeviceMixin):
message = {"command": "start", "path": file_path, "n_image": num_images}
ii = 0
while True:
self.parent.connect()
reply = self.parent.message(message)
if reply is not None:
@@ -385,7 +386,7 @@ class StdDaqClient(PSIDeviceBase):
return
# If stop_all didn't stop, nuke the whole thing
logger.error(f"[{self.name}] Stop-all command did not finish in time, nuking the stdDAQ")
logger.error(f"[{self.name}] Don't stop, make it rock!!!")
self.nuke()
sleep(timeout)