ophyd_async.epics.demo#
Demo EPICS Devices for the tutorial.
Package Contents#
Classes#
A demo movable that moves based on velocity. |
|
A simulated sample stage with X and Y movables. |
|
Energy mode for |
|
A channel for |
|
A demo detector that produces a point values based on X and Y motors. |
Functions#
Start an IOC subprocess for sample stage and sensor. |
API#
- class ophyd_async.epics.demo.DemoMotor(prefix: str, with_pvi: bool = False, name: str = '')[source]#
Bases:
ophyd_async.epics.core.EpicsDevice,ophyd_async.core.StandardReadable,ophyd_async.core.StandardMovableA demo movable that moves based on velocity.
- stop_: Annotated[TriggerableCommand, PvSuffix('~Stop.PROC')]#
None
- movable_logic() MovableLogic#
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.
- class ophyd_async.epics.demo.DemoStage(prefix: str, name='')[source]#
Bases:
ophyd_async.core.StandardReadableA simulated sample stage with X and Y movables.
- class ophyd_async.epics.demo.EnergyMode[source]#
Bases:
ophyd_async.core.StrictEnumEnergy mode for
DemoPointDetectorChannel.- LOW#
‘Low Energy’
Low energy mode
- HIGH#
‘High Energy’
High energy mode
- class ophyd_async.epics.demo.DemoPointDetectorChannel(name: str = '', connector: DeviceConnector | None = None)[source]#
Bases:
ophyd_async.core.StandardReadable,ophyd_async.epics.core.EpicsDeviceA channel for
DemoPointDetectorwith int value based on X and Y Motors.- mode: Annotated[SignalRW[EnergyMode], PvSuffix('Mode'), CONFIG_SIGNAL]#
None
- class ophyd_async.epics.demo.DemoPointDetector(prefix: str, num_channels: int = 3, name: str = '')[source]#
Bases:
ophyd_async.core.StandardReadable,ophyd_async.epics.core.EpicsDevice,bluesky.protocols.TriggerableA demo detector that produces a point values based on X and Y motors.
- start: Annotated[TriggerableCommand, PvSuffix('~Start.PROC')]#
None
- reset: Annotated[TriggerableCommand, PvSuffix('~Reset.PROC')]#
None
- ophyd_async.epics.demo.start_ioc_subprocess(prefix: str, num_channels: int) TestingIOC[source]#
Start an IOC subprocess for sample stage and sensor.
- Parameters:
prefix – The prefix for the IOC PVs.
num_channels – The number of point detector channels to create.