secop_ophyd.devices.acquisition.channel#

Device for the interface class AcquisitionChannel, and the buffer of the updates it collects.

Module Contents#

Classes#

AcquisitionGoal

When an acquisition channel ends a cycle: the value given to SECoPAcquisitionDevice.prepare.

SECoPAcquisitionChannelDevice

SECoP device for a module with the interface class “AcquisitionChannel”: one measured quantity of a data acquisition, whose cycles its SECoPAcquisitionControllerDevice runs. A channel listed by a controller is a child device of that controller, named by its role.

API#

class secop_ophyd.devices.acquisition.channel.AcquisitionGoal[source]#

When an acquisition channel ends a cycle: the value given to SECoPAcquisitionDevice.prepare.

Parameters:
  • goal – written to the ‘goal’ parameter: the cycle ends when ‘value’ reaches it. None leaves ‘goal’ unchanged.

  • enable – written to the ‘goal_enable’ parameter: whether the goal ends the cycle at all. None leaves ‘goal_enable’ unchanged. A module with a ‘goal’ but no ‘goal_enable’ always has its goal active.

goal: Any = None#
enable: bool | None = None#
class secop_ophyd.devices.acquisition.channel.SECoPAcquisitionChannelDevice(sri: str = '', name: str = '', connector: secop_ophyd.devices.connector.SECoPDeviceConnector | None = None, loglevel=logging.INFO, logdir: str | None = None)[source]#

Bases: secop_ophyd.devices.readable.SECoPReadableDevice

SECoP device for a module with the interface class “AcquisitionChannel”: one measured quantity of a data acquisition, whose cycles its SECoPAcquisitionControllerDevice runs. A channel listed by a controller is a child device of that controller, named by its role.

read() gives its ‘value’, and the result of ‘get_data’ if the module has that command. While its controller flies, the channel buffers every update of ‘value’ (unless it has ‘get_data’), for the controller’s collect_pages().

SECoPAcquisitionDevice is a controller and a channel in one module.

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']#
async read() → dict[str, bluesky.protocols.Reading][source]#

The readings of the module, and the result of ‘get_data’ if the module has that command.

async describe() → dict[str, bluesky.protocols.DataKey][source]#