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.SignalBackend#

class ophyd.v2.core.SignalBackend(*args, **kwds)#

Bases: Generic[T]

A read/write/monitor backend for a Signals

Methods

connect

Connect to underlying hardware

get_descriptor

Metadata like source, dtype, shape, precision, units

get_reading

The current value, timestamp and severity

get_value

The current value

put

Put a value to the PV, if wait then wait for completion for up to timeout

set_callback

Observe changes to the current value, timestamp and severity

Attributes

datatype

Datatype of the signal value

source

Like ca://PV_PREFIX:SIGNAL

datatype: Type[T] | None = None#

Datatype of the signal value

source: str = ''#

Like ca://PV_PREFIX:SIGNAL

abstract async connect()#

Connect to underlying hardware

abstract async put(value: T | None, wait=True, timeout=None)#

Put a value to the PV, if wait then wait for completion for up to timeout

abstract async get_descriptor() Descriptor#

Metadata like source, dtype, shape, precision, units

abstract async get_reading() Reading#

The current value, timestamp and severity

abstract async get_value() T#

The current value

abstract set_callback(callback: Callable[[Reading, T], None] | None) None#

Observe changes to the current value, timestamp and severity