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
,bluesky.protocols.Movable
,bluesky.protocols.Stoppable
A demo movable that moves based on velocity.
- set_name(name: str, *, child_name_separator: str | None = None) None [source]#
Set
self.name=name
and eachself.child.name=name+"-child"
.- Parameters:
name – New name to set.
child_name_separator – Use this as a separator instead of “-”. Use “_” instead to make the same names as the equivalent ophyd sync device.
- async set(new_position: float, timeout: CalculatableTimeout = CALCULATE_TIMEOUT)[source]#
- class ophyd_async.epics.demo.DemoStage(prefix: str, name='')[source]#
Bases:
ophyd_async.core.StandardReadable
A simulated sample stage with X and Y movables.
- class ophyd_async.epics.demo.EnergyMode[source]#
Bases:
ophyd_async.core.StrictEnum
Energy 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.EpicsDevice
A channel for
DemoPointDetector
with 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.Triggerable
A demo detector that produces a point values based on X and Y motors.
- 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.