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.SignalRW#
- class ophyd_async.core.SignalRW(backend: SignalBackend[T] | None = None, timeout: float | None = 10.0, name: str = '')[source]#
Bases:
SignalR
[T
],SignalW
[T
],Locatable
Signal that can be both read and set
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 the value and return a status saying when it's done
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 connect(mock=False, timeout=10.0, force_reconnect: bool = False, backend: SignalBackend[T] | None = None)#
- property log#
- async read(cached: bool | None = None) Dict[str, Reading] #
Return a single item dict with the reading in it
- set(value: ~ophyd_async.core._utils.T, wait=True, timeout: float | None | ~typing.Type[~ophyd_async.core._utils.CalculateTimeout] = <class 'ophyd_async.core._utils.CalculateTimeout'>) AsyncStatus #
Set the value and return a status saying when itβs done
- set_name(name: str)#
Set
self.name=name
and eachself.child.name=name+"-child"
.- Parameters:
name β New name to set