Note
Ophyd.v2 is included on a provisional basis until the v2.0 release and may change API on minor release numbers before then
ophyd.v2.core.SignalR#
- class ophyd.v2.core.SignalR(backend: SignalBackend[T], timeout: float | None = 10.0)#
Bases:
Signal
[T
],Readable
,Stageable
,Subscribable
Signal that can be read from and monitored
Methods
Remove a subscription.
Connect self and all child Devices.
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
Like ca://PV_PREFIX:SIGNAL, or "" if not set
- async read(cached: bool | None = None) Dict[str, Reading] #
Return a single item dict with the reading in it
- async describe() Dict[str, Descriptor] #
Return a single item dict with the descriptor in it
- subscribe(function: Callable[[Dict[str, Reading]], None]) None #
Subscribe to updates in the reading
- async connect(sim=False)#
Connect self and all child Devices.
- Parameters:
- sim:
If True then connect in simulation mode.