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 an instance of the AwgModule.
Create an instance of the DataAcquisitionModule.
Create an instance of the DeviceSettingsModule.
Create an instance of the ImpedanceModule.
Create an instance of the MultiDeviceSyncModule.
Create an instance of the PidAdvisorModule.
Create an instance of the PrecompensationAdvisorModule.
Create an instance of the QuantumAnalyzerModule.
Create an instance of the ScopeModule.
Create an instance of the SHFQASweeper.
Create an instance of the SweeperModule.
Attributes
Managed instance of the awg module.
Managed instance of the daq module.
Managed instance of the device settings module.
Managed instance of the impedance module.
Managed instance of the multi device sync module.
Managed instance of the pid advisor module.
Managed instance of the precompensation advisor module.
Managed instance of the quantum analyzer module.
Managed instance of the scope module.
Managed instance of the shfqa sweeper implementation.
Managed instance of the sweeper module.