dodal.devices.util.epics_util#
Classes
A device that sets the proc field of a PV when it becomes enabled. |
Functions
|
|
|
Creates a |
|
Creates and initiates an asynchronous chaining of functions which return a status |
- dodal.devices.util.epics_util.epics_signal_put_wait(pv_name: str, wait: float = 3.0) Component[EpicsSignal] [source]#
Creates a
Component
around anEpicsSignal
that waits for a callback on a put.
- dodal.devices.util.epics_util.run_functions_without_blocking(functions_to_chain: Sequence[Callable[[], StatusBase]], timeout: float = 60.0, associated_obj: Device | None = None) Status [source]#
Creates and initiates an asynchronous chaining of functions which return a status
Usage: This function can be used to take a series of status-returning functions and run them all sequentially and in the background by making use of callbacks. It also ensures exceptions on each returned status are propagated
Args: functions_to_chain( list(function - > StatusBase) ): A list of functions which each
return a status object
- associated_obj (Device | None): The device that should be associated with the
returned status
Returns: Status: A status object which is marked as complete once all of the Status objects returned by the unwrapped functions have completed.