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‘-’: ONnone: OFF6th digit [0/1]: Coherence control0: OFF1: ON5th digit [0/1]: Fine-tuning0: OFF1: ON4th digit [0-5]: Control mode of output power, attenuator, and powermonitor 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 error0: No error1: Error occurred2nd digit [0/1]: Laser diode current limit error0: No error1: Error occurred1st digit [0-7]: Operation status0: Operation is completed1: Wavelength is tuning2: Laser diode current is setting (LD is on state and power control is Auto)3: Wavelength is tuning and LD current is setting4: Attenuator is setting5: Wavelength is setting and attenuator is setting6: LD current is setting and attenuator is setting7: Wavelength is tuning, LD current is setting, and attenuator is settingExamples
>>> laser.status() '-011000'