secop_ophyd.devices.acquisition.control#
Devices that run acquisition cycles: Acquisition and AcquisitionController.
Module Contents#
Classes#
Fly logic of a SECoP acquisition: |
|
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. |
|
Annotation for the channel devices of an acquisition controller: the role of the channel and the SECoP module it is. |
|
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:
preparesets the goals and runs the controller’s ‘prepare’ command,kickoffsends ‘go’, andcompletewaits until the cycle has ended.- async on_prepare(value: secop_ophyd.devices.acquisition.control.PrepareT_) 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.SECoPAcquisitionChannelDeviceSECoP 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, andread()then gives ‘value’ (and the result of ‘get_data’).prepare()takes an AcquisitionGoal (or None), andcollect_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.SECoPDeviceSECoP 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.tfor the role “t”), and are no module devices of the node.channelsmaps each role to its channel device.trigger()runs one cycle, andread()then gives the result of every channel.prepare()takes the goals of the channels by role ({"t": AcquisitionGoal(goal=10, enable=True)}) or None, andcollect_pages()hands over one stream per channel, named after the channel. See _AcquisitionControl for the details of a cycle.Initialization
- 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#