sweep_wavelength

sweep_wavelength#

method

TSL550.sweep_wavelength(start: float, stop: float, duration: float, number: int = 1, delay: float = 0, continuous: bool = True, step_size: float = 1, twoway: bool = False, trigger: bool = False) None[source]#

Conduct a sweep between two wavelengths.

A convenience function that combines sweep_start_wavelength(), sweep_end_wavelength(), sweep_delay(), sweep_speed(), sweep_step_time(), sweep_set_mode(), and sweep_start().

Parameters:
startfloat

The starting wavelength in nanometers.

stopfloat

The ending wavelength in nanometers.

durationfloat

In continuous mode, the duration is interpreted as the time for one sweep. In stepwise mode, it is used as the dwell time for each step. In both cases it has units of seconds and should be specified in 100 microsecond intervals.

numberint, optional

The sweep is repeated number times (default 1).

delayfloat, optional

If delay (in seconds) is specified, there is a pause of that duration between each sweep (default 0).

continuousbool, optional

If the parameter continuous is False, then the sweep will be conducted in steps of fixed size as set by the step_size parameter (in nanometres) (default True).

step_sizefloat, optional

The step size for stepwise sweeps (in nanometres) (default 1).

twowaybool, optional

If the twoway parameter is True then one sweep is considered to be going from the start wavelength to the stop wavelength and then back to the start; if it is False then one sweep consists only of going from the start to the top, and the laser will simply jump back to the start wavelength at the start of the next sweep (default False).

triggerbool, optional

If the trigger parameter is False then the sweep will execute immediately. If it is true, the laser will wait for an external trigger before starting (default False).

Notes

An illustration of the different sweep modes:

Sweep modes graphic by wavelength