From d457e0e2773349c6437feafecc615e0793fa6daa Mon Sep 17 00:00:00 2001 From: gac-x01da Date: Wed, 3 Sep 2025 13:24:18 +0200 Subject: [PATCH] w --- debye_bec/device_configs/x01da_pilatus.yaml | 9 +++++++++ debye_bec/devices/pilatus.py | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 debye_bec/device_configs/x01da_pilatus.yaml create mode 100644 debye_bec/devices/pilatus.py diff --git a/debye_bec/device_configs/x01da_pilatus.yaml b/debye_bec/device_configs/x01da_pilatus.yaml new file mode 100644 index 0000000..261cfa9 --- /dev/null +++ b/debye_bec/device_configs/x01da_pilatus.yaml @@ -0,0 +1,9 @@ + pilatus: + readoutPriority: async + description: Pilatus + deviceClass: debye_bec.devices.pilatus.PilatusDetector + deviceConfig: + prefix: "X01DA-ES2-PIL:" + onFailure: retry + enabled: true + softwareTrigger: false \ No newline at end of file diff --git a/debye_bec/devices/pilatus.py b/debye_bec/devices/pilatus.py new file mode 100644 index 0000000..4645d74 --- /dev/null +++ b/debye_bec/devices/pilatus.py @@ -0,0 +1,12 @@ +from ophyd import Component as Cpt +from ophyd.areadetector.cam import ADBase, PilatusDetectorCam +from ophyd.areadetector.plugins import HDF5Plugin_V22 as HDF5Plugin + +class PilatusDetector(ADBase): + cam = Cpt(PilatusDetectorCam, 'cam1:') + hdf = Cpt(HDF5Plugin, 'HDF1:') + + def __init__(self, *, name: str, prefix: str = "", **kwargs): + super().__init__(name=name, prefix=prefix, **kwargs) + + self.wait_for_connection(all_signals=True, timeout=30) \ No newline at end of file