secop_ophyd.devices.acquisition.control#

Devices that run acquisition cycles: Acquisition and AcquisitionController.

Module Contents#

Classes#

SECoPAcquisitionLogic

Fly logic of a SECoP acquisition: prepare sets the goals and runs the controller’s ‘prepare’ command, kickoff sends ‘go’, and complete waits until the cycle has ended.

SECoPAcquisitionDevice

SECoP device for a module with the interface class “Acquisition”: a data acquisition with a single channel, in one module. The legacy interface class “Triggerable” maps here too.

AcquisitionChannelType

Annotation for the channel devices of an acquisition controller: the role of the channel and the SECoP module it is.

SECoPAcquisitionControllerDevice

SECoP device for a module with the interface class “AcquisitionController”: the control of a data acquisition whose measured quantities are separate “AcquisitionChannel” modules.

Data#

API#

secop_ophyd.devices.acquisition.control.PrepareT_ = 'TypeVar(...)'#
class secop_ophyd.devices.acquisition.control.SECoPAcquisitionLogic[source]#

Bases: ophyd_async.core.FlyableLogic[secop_ophyd.devices.acquisition.control.PrepareT_, None]

Fly logic of a SECoP acquisition: prepare sets the goals and runs the controller’s ‘prepare’ command, kickoff sends ‘go’, and complete waits until the cycle has ended.

device: _AcquisitionControl[PrepareT_] = None#
async on_prepare(value: secop_ophyd.devices.acquisition.control.PrepareT_) → None[source]#
async on_kickoff(ctx: None) → None[source]#
async on_complete(ctx: None) → None[source]#
async on_stage() → None[source]#
async on_unstage() → None[source]#
class secop_ophyd.devices.acquisition.control.SECoPAcquisitionDevice(*args, **kwargs)[source]#

Bases: secop_ophyd.devices.acquisition.control._AcquisitionControl[secop_ophyd.devices.acquisition.channel.AcquisitionGoal | None], secop_ophyd.devices.acquisition.channel.SECoPAcquisitionChannelDevice

SECoP device for a module with the interface class “Acquisition”: a data acquisition with a single channel, in one module. The legacy interface class “Triggerable” maps here too.

It runs like a SECoPAcquisitionControllerDevice whose only channel is the module itself: trigger() runs one cycle, and read() then gives ‘value’ (and the result of ‘get_data’). prepare() takes an AcquisitionGoal (or None), and collect_pages() hands over one stream, named after the device.

Initialization

class secop_ophyd.devices.acquisition.control.AcquisitionChannelType(role: str, module: str)[source]#

Annotation for the channel devices of an acquisition controller: the role of the channel and the SECoP module it is.

Initialization

class secop_ophyd.devices.acquisition.control.SECoPAcquisitionControllerDevice(sri: str = '', name: str = '', connector: secop_ophyd.devices.connector.SECoPDeviceConnector | None = None, loglevel=logging.INFO, logdir: str | None = None)[source]#

Bases: secop_ophyd.devices.acquisition.control._AcquisitionControl[collections.abc.Mapping[str, secop_ophyd.devices.acquisition.channel.AcquisitionGoal]| None], secop_ophyd.devices.base.SECoPDevice

SECoP device for a module with the interface class “AcquisitionController”: the control of a data acquisition whose measured quantities are separate “AcquisitionChannel” modules.

The channels listed in the module property ‘acquisition_channels’ are child devices of the controller, named by their role there (control.t for the role “t”), and are no module devices of the node. channels maps each role to its channel device.

trigger() runs one cycle, and read() then gives the result of every channel. prepare() takes the goals of the channels by role ({"t": AcquisitionGoal(goal=10, enable=True)}) or None, and collect_pages() hands over one stream per channel, named after the channel. See _AcquisitionControl for the details of a cycle.

Initialization

hinted_signals: list[str] = []#
mandatory_parameters: list[str] = ['status']#
wait_for_idle = None#
property channels: dict[str, secop_ophyd.devices.acquisition.channel.SECoPAcquisitionChannelDevice]#

The channel devices by role.

secop_ophyd.devices.acquisition.control.SECoPTriggerableDevice = None#