secop_ophyd.devices.acquisition.channel#
Device for the interface class AcquisitionChannel, and the buffer of the updates it collects.
Module Contents#
Classes#
When an acquisition channel ends a cycle: the value given to SECoPAcquisitionDevice.prepare. |
|
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.
- 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.SECoPReadableDeviceSECoP 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’scollect_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
- 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]#