ModuleHandler#

class ModuleHandler(session: Session)[source]#

Bases: object

Modules of LabOne.

Handler for all additional so called modules by LabOne. A LabOne module is bound to a user session but creates a independent session to the Data Server. This has the advantage that they do not interfere with the user session. It also means that creating a session causes additional resources allocation, both at the client and the data server. New modules should therefore only be instantiated with care.

Toolkit holds a lazy generated instance of all modules. This ensures that not more than one modules of each type gets created by accident and that the access to the modules is optimized.

Of course there are many use cases where more than one module of a single type is required. This class therefore also exposes a create function for each LabOne module. These functions create a unmanaged instance of that module (unmanaged means toolkit does not hold an instance of that module).

Parameters:
  • session (Session) – Active user session

  • server_host – Host address of the session

  • server_port – Port of the session

Methods

create_awg_module()

Create an instance of the AwgModule.

create_daq_module()

Create an instance of the DataAcquisitionModule.

create_device_settings_module()

Create an instance of the DeviceSettingsModule.

create_impedance_module()

Create an instance of the ImpedanceModule.

create_mds_module()

Create an instance of the MultiDeviceSyncModule.

create_pid_advisor_module()

Create an instance of the PidAdvisorModule.

create_precompensation_advisor_module()

Create an instance of the PrecompensationAdvisorModule.

create_qa_module()

Create an instance of the QuantumAnalyzerModule.

create_scope_module()

Create an instance of the ScopeModule.

create_shfqa_sweeper()

Create an instance of the SHFQASweeper.

create_sweeper_module()

Create an instance of the SweeperModule.

Attributes

awg

Managed instance of the awg module.

daq

Managed instance of the daq module.

device_settings

Managed instance of the device settings module.

impedance

Managed instance of the impedance module.

mds

Managed instance of the multi device sync module.

pid_advisor

Managed instance of the pid advisor module.

precompensation_advisor

Managed instance of the precompensation advisor module.

qa

Managed instance of the quantum analyzer module.

scope

Managed instance of the scope module.

shfqa_sweeper

Managed instance of the shfqa sweeper implementation.

sweeper

Managed instance of the sweeper module.