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.SignalR#
- class ophyd_async.core.SignalR(backend: SignalBackend[T] | None = None, timeout: float | None = 10.0, name: str = '')[source]#
Bases:
Signal
[T
],AsyncReadable
,AsyncStageable
,Subscribable
Signal that can be read from and monitored
Methods
Remove a subscription.
Return a single item dict with the descriptor in it
The current value
Return a single item dict with the reading in it
Set
self.name=name
and eachself.child.name=name+"-child"
.Start caching this signal
Subscribe to updates in the reading
Subscribe to updates in value of a device
Stop caching this signal
Attributes
Return the name of the Device
The parent Device if it exists
//PV_PREFIX:SIGNAL, or "" if not set
- async read(cached: bool | None = None) Dict[str, Reading] [source]#
Return a single item dict with the reading in it
- subscribe(function: Callable[[Dict[str, Reading]], None]) None [source]#
Subscribe to updates in the reading
- async connect(mock=False, timeout=10.0, force_reconnect: bool = False, backend: SignalBackend[T] | None = None)#
- property log#