ModuleHandler#

class ModuleHandler(session: Session, tk_modules: ModuleHandler)[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

  • tk_modules (ModuleHandler) – Underlying toolkit module handler

Methods

create_awg_module()

Create a QCoDeS instance of the AWGModule.

create_daq_module()

Create a QCoDeS instance of the DAQModule.

create_device_settings_module()

Create a QCoDeS instance of the DeviceSettingsModule.

create_impedance_module()

Create a QCoDeS instance of the ImpedanceModule.

create_mds_module()

Create a QCoDeS instance of the PIDAdvisorModule.

create_pid_advisor_module()

Create a QCoDeS instance of the PIDAdvisorModule.

create_precompensation_advisor_module()

Create a QCoDeS instance of the PrecompensationAdvisorModule.

create_qa_module()

Create a QCoDeS instance of the AwgModule.

create_scope_module()

Create a QCoDeS instance of the AwgModule.

create_shfqa_sweeper()

Create an instance of the SHFQASweeper.

create_sweeper_module()

Create a QCoDeS instance of the SweeperModule.

Attributes

awg

Managed instance of the zhinst.core.AwgModule.

daq

Managed instance of the zhinst.core.DataAcquisitionModule.

device_settings

Managed instance of the zhinst.core.DeviceSettingsModule.

impedance

Managed instance of the zhinst.core.ImpedanceModule.

mds

Managed instance of the zhinst.core.MultiDeviceSyncModule.

pid_advisor

Managed instance of the zhinst.core.PidAdvisorModule.

precompensation_advisor

Managed instance of the zhinst.core.PrecompensationAdvisorModule.

qa

Managed instance of the zhinst.core.QuantumAnalyzerModule.

scope

Managed instance of the zhinst.core.ScopeModule.

shfqa_sweeper

Managed instance of the zhinst.core.SweeperModule.

sweeper

Managed instance of the zhinst.core.SweeperModule.