w
This commit is contained in:
9
debye_bec/device_configs/x01da_pilatus.yaml
Normal file
9
debye_bec/device_configs/x01da_pilatus.yaml
Normal file
@@ -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
|
||||
12
debye_bec/devices/pilatus.py
Normal file
12
debye_bec/devices/pilatus.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user