ophyd_async.tango.demo
#
Package Contents#
Classes#
Tango counting device. |
|
Tango moving device. |
|
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
- 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
- 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. Whensuccess
is true, bluesky is stopping the device as planned and the device should stop “normally”. Whensuccess
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.