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.motion.Motor#

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

Bases: StandardReadable, Movable, Stoppable

Device that moves a motor record

Methods

children

connect

Connect self and all child Devices.

describe

describe_configuration

move

Commandline only synchronous move of a Motor

read

read_configuration

set

set_name

set_readable_signals

param read:

Signals to make up read()

stage

stop

unstage

Attributes

name

Return the name of the Device

parent

The parent Device if it exists

move(new_position: float, timeout: float | None = None)[source]#

Commandline only synchronous move of a Motor

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_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