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.epics.EpicsSignalX#

class ophyd.v2.epics.EpicsSignalX(write_pv: Optional[str] = None, write_value: Any = 0, wait=True)#

Bases: Signal

Executable EPICS Signal that puts a set value to a PV on execute()

Methods

connect

Connect self and all child Devices.

execute

Execute the Signal, putting write_value to write_pv

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

write_pv

Write PV.

write_value

What value to write to the PV on execute()

wait

Whether to wait for the put to callback before returning from set()

write_channel

Write Channel.

write_pv#

Write PV. Can be prefixed by passing prefix in connect()

write_value#

What value to write to the PV on execute()

wait#

Whether to wait for the put to callback before returning from set()

write_channel: Channel#

Write Channel. A connected instance will be set in connect()

property source: str#

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

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.

async execute() None#

Execute the Signal, putting write_value to write_pv

property name: str#

Return the name of the Device

parent: Optional[Device] = 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, do nothing if blank or name is all set