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

class ophyd.v2.core.Signal(*args, **kwargs)#

Bases: Device

Signals are like ophyd Signals, but async

Methods

connect

Connect self and all child Devices.

set_name

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

Attributes

name

Return the name of the Device

parent

The parent Device if it exists

source

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

property name: str#

Return the name of the Device

set_name(name: str = '')#

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

Parameters:
name:

New name to set, do nothing if blank or name is all set

abstract property source: str#

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

abstract async connect(prefix: str = '', sim=False)#

Connect self and all child Devices.

Parameters:
prefix:

Device specific prefix that can be used to nest Devices one within another. For example a PV prefix.

sim:

If True then connect in simulation mode.

parent: Optional[Device] = None#

The parent Device if it exists