photons.equipment.laser_superk module
SuperK Fianium laser from NKT Photonics.
- class photons.equipment.laser_superk.ID60(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntEnumRegister IDs for “SK Fianium” (Module type 0x0060).
- INLET_TEMPERATURE = 17
- EMISSION = 48
- MODE = 49
- INTERLOCK = 50
- PULSE_PICKER_RATIO = 52
- WATCHDOG_INTERVAL = 54
- POWER_LEVEL = 55
- CURRENT_LEVEL = 56
- NIM_DELAY = 57
- SERIAL_NUMBER = 101
- STATUS_BITS = 102
- SYSTEM_TYPE = 107
- USER_TEXT = 108
- class photons.equipment.laser_superk.ID88(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntEnumRegister IDs for “SuperK G3 Mainboard” (Module type 0x0088).
- INLET_TEMPERATURE = 17
- EMISSION = 48
- MODE = 49
- INTERLOCK = 50
- DATETIME = 51
- PULSE_PICKER_RATIO = 52
- WATCHDOG_INTERVAL = 54
- CURRENT_LEVEL = 55
- PULSE_PICKER_NIM_DELAY = 57
- MAINBOARD_NIM_DELAY = 58
- USER_CONFIG = 59
- MAX_PULSE_PICKER_RATIO = 61
- STATUS_BITS = 102
- ERROR_CODE = 103
- USER_TEXT = 141
- class photons.equipment.laser_superk.ID61(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntEnumRegister IDs for “SuperK Front panel” (Module type 0x61).
- PANEL_LOCK = 61
- DISPLAY_TEXT = 114
- ERROR_FLASH = 141
- class photons.equipment.laser_superk.ID89(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntEnumRegister IDs for “SuperK G3 Front Panel” (Module type 0x0089).
According to the NKT engineers, there are no front-panel registers available. This means that the PANEL_LOCK, DISPLAY_TEXT and ERROR_FLASH do not exist.
- class photons.equipment.laser_superk.OperatingModes(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntEnumThe operating modes for a SuperK Fianium laser.
- CONSTANT_CURRENT = 0
- CONSTANT_POWER = 1
- MODULATED_CURRENT = 2
- MODULATED_POWER = 3
- POWER_LOCK = 4
- class photons.equipment.laser_superk.SuperK(record, **kwargs)[source]
Bases:
BaseEquipmentSuperK Fianium laser from NKT Photonics.
- Parameters:
record (
EquipmentRecord) – The equipment record.**kwargs – Keyword arguments. Can be specified as attributes of an XML element in a configuration file (with the tag of the element equal to the alias of record).
- class OperatingModes(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntEnumThe operating modes for a SuperK Fianium laser.
- CONSTANT_CURRENT = 0
- CONSTANT_POWER = 1
- MODULATED_CURRENT = 2
- MODULATED_POWER = 3
- POWER_LOCK = 4
- DEVICE_ID = 15
- FRONT_PANEL_ID = 1
- MODULE_TYPE_0x60 = 96
- MODULE_TYPE_0x88 = 136
-
level_changed:
SignalInstance
-
emission_changed:
SignalInstance
-
mode_changed:
SignalInstance
- enable_modulated_current_mode()[source]
Set the laser to be in modulated current mode.
- Return type:
- enable_power_lock_mode()[source]
Set the laser to be power lock (external feedback) mode.
- Return type:
- ensure_interlock_ok()[source]
Make sure that the interlock is okay.
Raises an exception if it is not okay, and it cannot be reset.
- Return type:
- get_current_level()[source]
Returns the constant/modulated current level of the laser.
- Return type:
- get_feedback_level()[source]
Get the power lock (external feedback) level of the laser.
- Return type:
- is_power_lock_mode()[source]
Whether the laser in power lock (external feedback) mode.
- Return type:
- lock_front_panel(lock)[source]
Lock the front panel so that the level cannot be changed manually.
- Parameters:
lock (
bool) – Whether to lock (True) or unlock (False) the front panel.- Return type:
- Returns:
Whether the request to (un)lock the front panel was successful. A laser with a module type 0x88 does not permit the front panel to be (un)locked and therefore this method will always return False for this laser.
- set_operating_mode(mode)[source]
Set the operating mode of the laser.
- Parameters:
mode (
int|str|OperatingModes) – The operating mode. Can be anOperatingModesvalue or member name.- Return type:
- set_user_text(text)[source]
Set the custom user-text value.
- Parameters:
text (
str) – The text to write to the laser’s firmware. Only ASCII characters are allowed. The maximum number of characters is 20 for the laser with module type 0x60 and 240 characters for module type 0x88. The laser with module type 0x60 can display the text on the front panel (if selected from the menu option).- Return type:
- Returns:
The text that was actually stored in the laser’s firmware.
- class photons.equipment.laser_superk.Signaler(device)[source]
Bases:
QObjectQt Signaler for callbacks that are received from the DLL.
-
device_status_changed:
SignalInstance
-
register_status_changed:
SignalInstance
-
port_status_changed:
SignalInstance
-
device_status_changed: