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.epics.demo.Sensor#

class ophyd_async.epics.demo.Sensor(prefix: str, name='')[source]#

Bases: StandardReadable

A demo sensor that produces a scalar value based on X and Y Movers

Methods

children

connect

Connect self and all child Devices.

describe

describe_configuration

read

read_configuration

set_name

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

set_readable_signals

param read:

Signals to make up read()

stage

unstage

Attributes

name

Return the name of the Device

parent

The parent Device if it exists

async connect(sim: bool = False, timeout: float = 10.0)#

Connect self and all child Devices.

Contains a timeout that gets propagated to child.connect methods.

Parameters:
  • sim – If True then connect in simulation mode.

  • timeout – Time to wait before failing with a TimeoutError.

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

set_readable_signals(read: Sequence[SignalR] = (), config: Sequence[SignalR] = (), read_uncached: Sequence[SignalR] = ())#
Parameters:
  • read – Signals to make up read()

  • conf – Signals to make up read_configuration()

  • read_uncached – Signals to make up read() that won’t be cached