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

class ophyd_async.core.Signal(backend: SignalBackend[T] | None = None, timeout: float | None = 10.0, name: str = '')[source]#

Bases: Device, Generic[T]

A Device with the concept of a value, with R, RW, W and X flavours

Methods

children

connect

set_name

Set self.name=name and each self.child.name=name+"-child".

Attributes

log

name

Return the name of the Device

parent

The parent Device if it exists

source

//PV_PREFIX:SIGNAL, or "" if not set

async connect(mock=False, timeout=10.0, force_reconnect: bool = False, backend: SignalBackend[T] | None = None)[source]#
property source: str#

//PV_PREFIX:SIGNAL, or “” if not set

Type:

Like ca

children() Iterator[Tuple[str, Device]]#
property log#
property name: str#

Return the name of the Device

parent: Device | None = None#

The parent Device if it exists

set_name(name: str)#

Set self.name=name and each self.child.name=name+"-child".

Parameters:

name – New name to set