secop_ophyd.devices.readable#

Device for the interface class Readable, and the SECoP status codes: waiting for a module to leave BUSY.

Module Contents#

Classes#

SECoPReadableMock

Mock behaviour for SECoP Readable modules: start IDLE.

SECoPReadableDevice

Standard readable SECoP device, corresponding to a SECoP module with the interface class “Readable”

Data#

API#

secop_ophyd.devices.readable.DISABLED = 0#
secop_ophyd.devices.readable.IDLE = 100#
secop_ophyd.devices.readable.STANDBY = 130#
secop_ophyd.devices.readable.PREPARED = 150#
secop_ophyd.devices.readable.WARN = 200#
secop_ophyd.devices.readable.WARN_STANDBY = 230#
secop_ophyd.devices.readable.WARN_PREPARED = 250#
secop_ophyd.devices.readable.NSTABLE = 270#
secop_ophyd.devices.readable.BUSY = 300#
secop_ophyd.devices.readable.DISABLING = 310#
secop_ophyd.devices.readable.INITIALIZING = 320#
secop_ophyd.devices.readable.PREPARING = 340#
secop_ophyd.devices.readable.STARTING = 360#
secop_ophyd.devices.readable.RAMPING = 370#
secop_ophyd.devices.readable.STABILIZING = 380#
secop_ophyd.devices.readable.FINALIZING = 390#
secop_ophyd.devices.readable.ERROR = 400#
secop_ophyd.devices.readable.ERROR_STANDBY = 430#
secop_ophyd.devices.readable.ERROR_PREPARED = 450#
secop_ophyd.devices.readable.UNKNOWN = 401#
secop_ophyd.devices.readable.STATUS_CODES = None#
class secop_ophyd.devices.readable.SECoPReadableMock(name: str = '', parent: ophyd_async.core._device.DeviceMock | None = None)[source]#

Bases: ophyd_async.core.DeviceMock[SECoPReadableDevice]

Mock behaviour for SECoP Readable modules: start IDLE.

Initialization

async connect(device: secop_ophyd.devices.readable.SECoPReadableDevice) → None[source]#
class secop_ophyd.devices.readable.SECoPReadableDevice(sri: str = '', name: str = '', connector: secop_ophyd.devices.connector.SECoPDeviceConnector | None = None, loglevel=logging.INFO, logdir: str | None = None)[source]#

Bases: secop_ophyd.devices.base.SECoPDevice, bluesky.protocols.Triggerable, bluesky.protocols.Subscribable

Standard readable SECoP device, corresponding to a SECoP module with the interface class “Readable”

Initialization

Initializes the SECoPReadableDevice

Parameters:
  • secclient (AsyncSecopClient) – SECoP client providing communication to the SEC Node

  • module_name (str) – Name of the SEC Node module that is represented by this device

hinted_signals: list[str] = ['value']#
mandatory_parameters: list[str] = ['value', 'status']#
async wait_for_idle()[source]#

asynchronously waits until module is IDLE again. this is helpful, for running commands that are not done immediately

observe_status_change(monitored_status_code: int)[source]#

Plan stub: block until the module’s status code differs from monitored_status_code.

trigger() → ophyd_async.core.AsyncStatus[source]#
subscribe_reading(function: ophyd_async.core._utils.Callback[dict[str, bluesky.protocols.Reading]]) → None[source]#

Subscribe to updates in the reading. Only supported for an atomic (non-composite) ‘value’ parameter.

subscribe = None#
clear_sub(function: ophyd_async.core._utils.Callback) → None[source]#

Remove a subscription.