Note
Ophyd async is included on a provisional basis until the v1.0 release and may change API on minor release numbers before then
ophyd_async.core.StandardDetector#
- class ophyd_async.core.StandardDetector(controller: DetectorControl, writer: DetectorWriter, config_sigs: Sequence[AsyncReadable] = (), name: str = '')[source]#
Bases:
Device
,Stageable
,AsyncConfigurable
,AsyncReadable
,Triggerable
,Preparable
,Flyable
,Collectable
,WritesStreamAssets
,Generic
[T
]Useful detector base class for step and fly scanning detectors. Aggregates controller and writer logic together.
Constructor
- Args:
controller: Logic for arming and disarming the detector writer: Logic for making the detector write persistent data config_sigs: Signals to read when describe and read configuration are called. Defaults to (). name: Device name. Defaults to “”.
Methods
Connect self and all child Devices.
Arm detector.
Set
self.name=name
and eachself.child.name=name+"-child"
.Attributes
Return the name of the Device
The parent Device if it exists
- property controller: DetectorControl#
- property writer: DetectorWriter#
- prepare(value: TriggerInfo) None [source]#
Arm detector.
Prepare the detector with trigger information. This is determined at and passed in from the plan level.
This currently only prepares detectors for flyscans and stepscans just use the trigger information determined in trigger.
To do: Unify prepare to be use for both fly and step scans.
- Args:
value: TriggerInfo describing how to trigger the detector
- async collect_asset_docs(index: int | None = None) AsyncIterator[Tuple[Literal['stream_resource'], StreamResource] | Tuple[Literal['stream_datum'], StreamDatum]] [source]#
- async connect(mock: bool = False, timeout: float = 10.0, force_reconnect: bool = False)#
Connect self and all child Devices.
Contains a timeout that gets propagated to child.connect methods.
- Parameters:
mock – If True then use
MockSignalBackend
for all Signalstimeout – Time to wait before failing with a TimeoutError.
- property log#