ophyd_async.epics.motor#
Support for EPICS motor record.
https://github.com/epics-modules/motor
Module Contents#
Classes#
Device that moves a motor record. |
|
Mock behaviour that instantly moves readback to setpoint. |
|
In Set mode, determine what to do when the motor setpoint is written. |
|
Determine what to do when the motor setpoint is written. |
API#
- exception ophyd_async.epics.motor.MotorLimitsError[source]#
Bases:
ExceptionException for invalid motor limits.
- class ophyd_async.epics.motor.Motor(prefix: str, name='')[source]#
Bases:
ophyd_async.core.StandardMovable[float],ophyd_async.core.StandardFlyable[ophyd_async.core.FlyMotorInfo,ophyd_async.epics.motor.MotorFlyCtx],ophyd_async.core.StandardReadableDevice that moves a motor record.
- movable_logic() MotorFlyableMovableLogic#
The logic object that describes how this device moves.
This is intentionally public so that mock helpers (e.g.
InstantMovableMock) and subclasses can access thesetpointandreadbacksignals directly. Subclasses must implement this as a@cached_propertythat returns aMovableLogicinstance.
- flyable_logic() MotorFlyableMovableLogic#
The logic object that describes how this device flies.
A static flyer (e.g.
Motor) provides this as a@cached_propertythat builds aFlyableLogicfrom its signals. An ephemeral flyer created byFlyableLogic.with_devicehas it set directly on the instance.
- class ophyd_async.epics.motor.InstantMotorMock(name: str = '', parent: DeviceMock | None = None)[source]#
Bases:
ophyd_async.core.DeviceMock[Motor]Mock behaviour that instantly moves readback to setpoint.
- class ophyd_async.epics.motor.OffsetMode[source]#
Bases:
ophyd_async.core.StrictEnumIn Set mode, determine what to do when the motor setpoint is written.
- VARIABLE#
‘Variable’
Change the offset so the readback matches the setpoint.
- FROZEN#
‘Frozen’
Tell the controller to change the readback without changing the offset.
- class ophyd_async.epics.motor.UseSetMode[source]#
Bases:
ophyd_async.core.StrictEnumDetermine what to do when the motor setpoint is written.
- USE#
‘Use’
Tell the controller to move to the setpoint.
- SET#
‘Set’
Change offset (in record or in controller) when setpoint is written.