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.epics.demo.demo_ad_sim_detector.DemoADSimDetector#
- class ophyd_async.epics.demo.demo_ad_sim_detector.DemoADSimDetector(drv: ADBase, hdf: NDFileHDF, directory_provider: DirectoryProvider, name: str = '', config_sigs: Sequence[SignalR] = ())[source]#
Bases:
StandardDetectorMethods
Checks configuration signals are named and connected.
childrenCollect stream datum documents for all indices written.
completeConnect self and all child Devices.
describedescribe_collectdescribe_configurationget_indexkickoffArm detector
Read the detector
read_configurationSet
self.name=nameand eachself.child.name=name+"-child".Disarm the detector, stop filewriting, and open file for writing.
Arm the detector and wait for it to finish.
Stop data writing.
Attributes
controllerReturn the name of the Device
parentThe parent Device if it exists
writer- async check_config_sigs()#
Checks configuration signals are named and connected.
- async collect_asset_docs(index: int | None = None) AsyncIterator[Tuple[Literal['stream_resource'], StreamResource] | Tuple[Literal['stream_datum'], StreamDatum]]#
Collect stream datum documents for all indices written.
The index is optional, and provided for flyscans, however this needs to be retrieved for stepscans.
- async connect(sim: bool = False, timeout: float = 10.0)#
Connect self and all child Devices.
Contains a timeout that gets propagated to child.connect methods.
- Parameters:
sim – If True then connect in simulation mode.
timeout – Time to wait before failing with a TimeoutError.
- prepare(value: T) AsyncStatus#
Arm detector