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

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

Bases: SignalBackend[T]

An simulated backend to a Signal, created with Signal.connect(sim=True)

Methods

connect

get_datakey

get_reading

get_setpoint

For a simulated backend, the setpoint and readback values are the same.

get_value

put

set_callback

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]#
async put(value: T | None, wait=True, timeout=None)[source]#
async get_datakey(source: str) DataKey[source]#
async get_reading() Reading[source]#
async get_value() T[source]#
async get_setpoint() T[source]#

For a simulated backend, the setpoint and readback values are the same.

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