ophyd_async.tango.demo#

Demo Tango Devices for the tutorial.

Package Contents#

Classes#

DemoMotor

A demo movable that moves based on velocity.

DemoStage

A simulated sample stage with X and Y movables.

EnergyMode

Energy mode for DemoPointDetectorChannel.

DemoPointDetectorChannel

A channel for DemoPointDetector with int value based on X and Y Motors.

DemoPointDetector

A demo detector that produces a point values based on X and Y motors.

Data#

API#

ophyd_async.tango.demo.DEVICE_SERVERS#

None

class ophyd_async.tango.demo.DemoMotor(trl: str = '', support_events: bool = False, name: str = '', auto_fill_signals: bool = True, connector: DeviceConnector | None = None)[source]#

Bases: ophyd_async.tango.core.TangoDevice, ophyd_async.core.StandardReadable, ophyd_async.core.StandardMovable[float]

A demo movable that moves based on velocity.

readback: Annotated[SignalR[float], TangoPolling(0.1, 0.001, 0.001), HINTED_SIGNAL]#

None

velocity: Annotated[SignalRW[float], TangoPolling(0.1, 0.001, 0.001), CONFIG_SIGNAL]#

None

setpoint: Annotated[SignalRW[float], TangoPolling(0.1, 0.001, 0.001)]#

None

state: Annotated[SignalR[DevStateEnum], TangoPolling(0.1)]#

None

stop_: TriggerableCommand#

None

logic() → MovableLogic#

The logic object that describes how this device moves.

Subclasses must implement this as a @cached_property returning a MovableLogic.

A Device that is movable and flyable (e.g. Motor) implements this once with a logic object that inherits both MovableLogic and FlyableLogic.

class ophyd_async.tango.demo.DemoStage(x_trl: str, y_trl: str, name='')[source]#

Bases: ophyd_async.core.StandardReadable

A simulated sample stage with X and Y movables.

class ophyd_async.tango.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.tango.demo.DemoPointDetectorChannel(trl: str = '', support_events: bool = False, name: str = '', auto_fill_signals: bool = True, connector: DeviceConnector | None = None)[source]#

Bases: ophyd_async.tango.core.TangoDevice, ophyd_async.core.StandardReadable

A channel for DemoPointDetector with int value based on X and Y Motors.

value: Annotated[SignalR[int], TangoPolling(0.1, 0.1, 0.1), HINTED_UNCACHED_SIGNAL]#

None

mode: Annotated[SignalRW[EnergyMode], TangoPolling(0.1, 0.1, 0.1), CONFIG_SIGNAL]#

None

class ophyd_async.tango.demo.DemoPointDetector(trl: str, channel_trls: list[str], name: str = '')[source]#

Bases: ophyd_async.tango.core.TangoDevice, ophyd_async.core.StandardReadable, bluesky.protocols.Triggerable

A demo detector that produces a point values based on X and Y motors.

acquire_time: Annotated[SignalRW[float], CONFIG_SIGNAL]#

None

start: TriggerableCommand#

None

acquiring: SignalR[bool]#

None

reset: TriggerableCommand#

None

async trigger()[source]#