wavelength

wavelength#

method

TSL550.wavelength(val: float = None) float[source]#

Sets the output wavelength, and returns nothing.

If a value is not specified, returns the currently set wavelength. The wavelength value is in nanometers. The minimum step size is 0.0001 nm.

Parameters:
valfloat, optional

The wavelength the laser will be set to in nanometers.

Returns:
float

The currently set wavelength, in nanometers.

Examples

You can get the current wavelength by calling without arguments.

>>> laser.wavelength()
1630.0

The following sets the output wavelength to 1560.123 nanometers.

>>> laser.wavelength(1560.123)