WIP
This commit is contained in:
@@ -5,6 +5,7 @@ Created on Wed Dec 6 11:33:54 2023
|
||||
@author: mohacsi_i
|
||||
"""
|
||||
import time
|
||||
import numpy as np
|
||||
from ophyd import Component, EpicsSignal, EpicsSignalRO, Kind
|
||||
from ophyd.status import SubscriptionStatus, DeviceStatus
|
||||
from ophyd_devices.interfaces.base_classes.psi_device_base import PSIDeviceBase
|
||||
@@ -19,13 +20,6 @@ from bec_lib.logger import bec_logger
|
||||
logger = bec_logger.logger
|
||||
|
||||
|
||||
class PcoEdgeCameraMixin(CustomPrepare):
|
||||
"""Mixin class to setup the Helge camera bae class.
|
||||
|
||||
This class will be called by the custom_prepare_cls attribute of the detector class.
|
||||
"""
|
||||
|
||||
|
||||
class PcoEdge5M(PSIDeviceBase, PcoEdgeBase):
|
||||
"""Ophyd baseclass for Helge camera IOCs
|
||||
|
||||
@@ -377,7 +371,8 @@ class PcoEdge5M(PSIDeviceBase, PcoEdgeBase):
|
||||
|
||||
def on_complete(self) -> DeviceStatus | None:
|
||||
"""Called to inquire if a device has completed a scans."""
|
||||
return self.acq_done()
|
||||
# return self.acq_done()
|
||||
return None
|
||||
|
||||
def on_kickoff(self) -> DeviceStatus | None:
|
||||
"""Start data transfer
|
||||
@@ -395,5 +390,11 @@ class PcoEdge5M(PSIDeviceBase, PcoEdgeBase):
|
||||
if __name__ == "__main__":
|
||||
|
||||
# Drive data collection
|
||||
cam = PcoEdge5M("X02DA-CCDCAM2:", name="mcpcam")
|
||||
cam = PcoEdge5M(
|
||||
"X02DA-CCDCAM2:",
|
||||
name="mcpcam",
|
||||
std_daq_ws="ws://129.129.95.111:8081",
|
||||
std_daq_rest="http://129.129.95.111:5010",
|
||||
std_daq_live="tcp://129.129.95.111:20010",
|
||||
)
|
||||
cam.wait_for_connection()
|
||||
|
||||
Reference in New Issue
Block a user