photons.equipment.widgets.laser_superk module

Widget for a SuperK Fianium laser from NKT Photonics.

class photons.equipment.widgets.laser_superk.Watchdog(connection, qu)[source]

Bases: Worker

Handle NKTDLL callbacks.

emission_changed: SignalInstance
level_changed: SignalInstance
mode_changed: SignalInstance
process()[source]

The expensive or blocking operation to process. :rtype: None

Attention

You must override this method.

class photons.equipment.widgets.laser_superk.SuperKWidget(connection, *, parent=None)[source]

Bases: BaseEquipmentWidget

Widget for a SuperK Fianium laser from NKT Photonics.

Parameters:
  • connection (SuperK) – The connection to the laser.

  • parent (QWidget) – The parent widget.

connection: SuperK
closeEvent(event)[source]

Stop the Watchdog thread and close the Widget.

Return type:

None

notification_handler(*args, **kwargs)[source]

Handle notifications emitted by the SuperK Service.

Return type:

None

on_mode_changed(text)[source]

Change the operating mode.

Return type:

None

on_level_editing_finished()[source]

Set the level when the DoubleSpinBox loses focus.

Return type:

None

on_level_changed(level)[source]

Update the value of the DoubleSpinBox without emitting the signal.

Return type:

None

on_device_status_changed(status)[source]

Called by the DeviceStatusCallback from the DLL.

Return type:

None

on_emission_changed(state)[source]

Update the ToggleSwitch without emitting the signal.

Return type:

None

on_user_text_changed(text)[source]

Set the user text.

Return type:

None

update_mode(mode)[source]

Update the ComboBox without emitting the signal.

Return type:

None