ophyd_async.tango.demo#

Package Contents#

Classes#

TangoCounter

Tango counting device.

TangoMover

Tango moving device.

TangoDetector

For use with tango detector devices.

API#

class ophyd_async.tango.demo.TangoCounter(trl: str | None = None, device_proxy: DeviceProxy | None = None, name: str = '')[source]#

Bases: ophyd_async.tango.core.TangoReadable

Tango counting device.

counts: Annotated[SignalR[int], HINTED_SIGNAL, TangoPolling(1.0, 0.1, 0.1)]#

None

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

None

start: SignalX#

None

reset_: SignalX#

None

async trigger() None[source]#
async reset() None[source]#
class ophyd_async.tango.demo.TangoMover(trl: str | None = '', name='')[source]#

Bases: ophyd_async.tango.core.TangoReadable, bluesky.protocols.Movable, bluesky.protocols.Stoppable

Tango moving device.

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

None

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

None

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

None

stop_: SignalX#

None

async set(value: float, timeout: CalculatableTimeout = CALCULATE_TIMEOUT)[source]#
stop(success: bool = True) AsyncStatus[source]#

Safely stop a device that may or may not be in motion.

The argument success is a boolean. When success is true, bluesky is stopping the device as planned and the device should stop “normally”. When success is false, something has gone wrong and the device may wish to take defensive action to make itself safe.

This can be a standard function or an async function.

class ophyd_async.tango.demo.TangoDetector(mover_trl: str, counter_trls: list[str], name='')[source]#

Bases: ophyd_async.core.StandardReadable

For use with tango detector devices.

set(value)[source]#
stop(success: bool = True) AsyncStatus[source]#
async trigger()[source]#