status

Contents

status#

method

TSL550.status(verbose: bool = False) str[source]#

Query the status of the laser and print its results.

Parameters:
verbosebool, optional

If True, print the string status of each parameter (default False).

Returns:
codestr

A status code for the status of the laser.

The following example shows the laser as on and all operations as complete.

Notes

The status code is a 7-character string status comprising a code and 6 digits (with positions represented as ‘-654321’), interpreted as follows:

Code [-/none]: Laser diode (LD) status
‘-’: ON
none: OFF
6th digit [0/1]: Coherence control
0: OFF
1: ON
5th digit [0/1]: Fine-tuning
0: OFF
1: ON
4th digit [0-5]: Control mode of output power, attenuator, and power
monitor range, according to the following table:

Value

Power control

Attenuator control

Power monitor range control

0

Auto

Hold

Auto

1

Manual

Hold (Manual)

Auto

2

Auto

Auto

Auto

4

Auto

Hold

Hold

5

Manual

Hold (Manual)

Hold

3rd digit [0/1]: Laser diode temperature error
0: No error
1: Error occurred
2nd digit [0/1]: Laser diode current limit error
0: No error
1: Error occurred
1st digit [0-7]: Operation status
0: Operation is completed
1: Wavelength is tuning
2: Laser diode current is setting (LD is on state and power control is Auto)
3: Wavelength is tuning and LD current is setting
4: Attenuator is setting
5: Wavelength is setting and attenuator is setting
6: LD current is setting and attenuator is setting
7: Wavelength is tuning, LD current is setting, and attenuator is setting

Examples

>>> laser.status()
'-011000'