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

class ophyd.v2.epics.EpicsSignalW(datatype: Type[T], write_pv: Optional[str] = None)#

Bases: SignalW[T], _WithDatatype[T]

Writeable EPICS Signal backed by a single PV

Methods

connect

Connect self and all child Devices.

set

Set the value and return a status saying when it's done

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

datatype

Request that underlying PV connection is made using this Python datatype

write_pv

Write PV.

write_channel

Write Channel.

datatype: Type[T]#

Request that underlying PV connection is made using this Python datatype

write_pv#

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

write_channel: Channel[T]#

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) None#

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.

set(value: T, wait=True) AsyncStatus#

Set the value and return a status saying when it’s done

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