SuperK¤
Communicate with a SuperK laser from NKT Photonics.
SuperK
(NKT)
¤
SuperK(equipment: Equipment)
flowchart LR
msl.equipment_resources.nkt.superk.SuperK[SuperK]
msl.equipment_resources.nkt.nkt.NKT[NKT]
msl.equipment.schema.Interface[Interface]
msl.equipment_resources.nkt.nkt.NKT --> msl.equipment_resources.nkt.superk.SuperK
msl.equipment.schema.Interface --> msl.equipment_resources.nkt.nkt.NKT
click msl.equipment_resources.nkt.superk.SuperK href "" "msl.equipment_resources.nkt.superk.SuperK"
click msl.equipment_resources.nkt.nkt.NKT href "" "msl.equipment_resources.nkt.nkt.NKT"
click msl.equipment.schema.Interface href "" "msl.equipment.schema.Interface"
Communicate with a SuperK laser from NKT Photonics.
SuperK EXTREME and SuperK FIANIUM are supported.
Regular-expression patterns that are used to select this Resource when connect() is called.
manufacturer=r"^NKT"
model=r"SuperK"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
equipment
|
Equipment
|
An Equipment instance. |
required |
A Connection instance supports the following properties
for the SuperK class plus all the properties of the NKT class.
Connection Properties:
| Name | Type | Description |
|---|---|---|
ensure_interlock_ok |
bool
|
Whether to make sure the interlock status is okay after connecting.
Default: |
scan_timeout |
float
|
The maximum number of seconds to wait for a reply when scanning for the
SuperK mainboard module. Default: |
Source code in packages/resources/src/msl/equipment_resources/nkt/superk.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
lock_front_panel
property
writable
¤
lock_front_panel: bool
Lock the front panel so that the current or power level cannot be changed.
Not all SuperK lasers support front-panel locking. If the laser does not support this feature, setting this property does nothing.
nim_delay
property
writable
¤
nim_delay: int
Get/set the NIM trigger delay (in picoseconds).
The range is 0 - 9200 ps with an average step size of approximately 9 ps.
operating_mode
property
writable
¤
operating_mode: ExtremeOperatingMode | FianiumOperatingMode
Get/set the operating mode.
output
property
writable
¤
output: float
Get/set the output level, or modulation setpoint, as a percentage.
The operating mode that the laser is currently in automatically handles whether the output level is for internal power/current or external feedback.
timeout
property
writable
¤
timeout: float | None
The timeout, in seconds, for read_register and write_register operations.
A value <0 will set the timeout to be None (blocking mode).
user_setup
property
writable
¤
user_setup: UserSetup
Get/set the laser's user setup.
Only valid for the SuperK FIANIUM.
user_text
property
writable
¤
user_text: str
Get/set the user text.
The text to read/write from/to the laser's firmware. Only ASCII characters are allowed. The maximum number of characters is 20 for SuperK EXTREME (module type 60h) and 240 characters for SuperK FIANIUM (module type 0088h). SuperK EXTREME will also display the text on the front panel.
ExtremeOperatingMode
(IntEnum)
¤
flowchart LR
msl.equipment_resources.nkt.superk.SuperK.ExtremeOperatingMode[ExtremeOperatingMode]
click msl.equipment_resources.nkt.superk.SuperK.ExtremeOperatingMode href "" "msl.equipment_resources.nkt.superk.SuperK.ExtremeOperatingMode"
The operating mode of a SuperK EXTREME system.
Attributes:
| Name | Type | Description |
|---|---|---|
CONSTANT_CURRENT |
int
|
|
CONSTANT_POWER |
int
|
|
MODULATED_CURRENT |
int
|
|
MODULATED_POWER |
int
|
|
EXTERNAL_FEEDBACK |
int
|
|
FianiumOperatingMode
(IntEnum)
¤
flowchart LR
msl.equipment_resources.nkt.superk.SuperK.FianiumOperatingMode[FianiumOperatingMode]
click msl.equipment_resources.nkt.superk.SuperK.FianiumOperatingMode href "" "msl.equipment_resources.nkt.superk.SuperK.FianiumOperatingMode"
The operating mode of a SuperK FIANIUM system.
Attributes:
| Name | Type | Description |
|---|---|---|
INTERNAL_POWER |
int
|
|
EXTERNAL_FEEDBACK |
int
|
|
disconnect
¤
disconnect() -> None
Disconnect from the NKT equipment.
Source code in packages/resources/src/msl/equipment_resources/nkt/nkt.py
240 241 242 243 244 245 | |
ensure_interlock_ok
¤
ensure_interlock_ok() -> None
Make sure that the interlock is okay.
Raises MSLConnectionError if it is not okay and it cannot be reset.
Source code in packages/resources/src/msl/equipment_resources/nkt/superk.py
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |
read_register
¤
read_register(
module: int,
register: int,
dtype: (
Literal[
"i8",
"u8",
"h8",
"i16",
"u16",
"h16",
"i32",
"u32",
"h32",
"f32",
"f64",
"string",
]
| None
) = None,
) -> bytes | str | int | float
Read the register value of the device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
module
|
int
|
Module address (device ID). |
required |
register
|
int
|
Register address. |
required |
dtype
|
Literal['i8', 'u8', 'h8', 'i16', 'u16', 'h16', 'i32', 'u32', 'h32', 'f32', 'f64', 'string'] | None
|
The data type to return the value in. If not specified, returns the value as bytes. |
None
|
Returns:
| Type | Description |
|---|---|
bytes | str | int | float
|
The register value. |
Source code in packages/resources/src/msl/equipment_resources/nkt/nkt.py
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | |
scan_modules
¤
Scan for available modules that can be communicated with.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
int
|
The address to start the scan at. |
1
|
stop
|
int
|
The address to stop the scan at. |
160
|
timeout
|
float
|
The maximum number of seconds to wait for a reply from a potential module. |
0.05
|
Returns:
| Type | Description |
|---|---|
list[Module]
|
The modules that are available. |
Source code in packages/resources/src/msl/equipment_resources/nkt/nkt.py
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 | |
write_register
¤
write_register(
module: int,
register: int,
value: bytes | str | float,
dtype: (
Literal[
"i8",
"u8",
"h8",
"i16",
"u16",
"h16",
"i32",
"u32",
"h32",
"f32",
"f64",
]
| None
) = None,
) -> None
Write a value to a register of the device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
module
|
int
|
Module address (device ID). |
required |
register
|
int
|
Register address. |
required |
value
|
bytes | str | float
|
The value to write. |
required |
dtype
|
Literal['i8', 'u8', 'h8', 'i16', 'u16', 'h16', 'i32', 'u32', 'h32', 'f32', 'f64'] | None
|
The data type to convert |
None
|
Source code in packages/resources/src/msl/equipment_resources/nkt/nkt.py
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 | |