bluestage on GF
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user