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

class ophyd_async.core.SoftSignalBackend(datatype: Type[T] | None, initial_value: T | None = None, metadata: SignalMetadata = None)[source]#

Bases: SignalBackend[T]

An backend to a soft Signal, for test signals see MockSignalBackend.

Methods

connect

Connection isn't required for soft signals.

get_datakey

get_reading

get_setpoint

For a soft signal, the setpoint and readback values are the same.

get_value

put

set_callback

set_value

Method to bypass asynchronous logic.

source

Attributes

datatype

Datatype of the signal value

datatype: Type[T] | None = None#

Datatype of the signal value

source(name: str) str[source]#
async connect(timeout: float = 10.0) None[source]#

Connection isn’t required for soft signals.

async put(value: T | None, wait=True, timeout=None)[source]#
set_value(value: T)[source]#

Method to bypass asynchronous logic.

async get_datakey(source: str) DataKey[source]#
async get_reading() Reading[source]#
async get_value() T[source]#
async get_setpoint() T[source]#

For a soft signal, the setpoint and readback values are the same.

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