sweep_frequency#
method
- TSL550.sweep_frequency(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_frequency(),sweep_end_frequency(),sweep_delay(),sweep_speed(),sweep_step_time(),sweep_set_mode(), andsweep_start().- Parameters:
- startfloat
The starting frequency in terahertz.
- stopfloat
The ending frequency in terahertz.
- 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
numbertimes.- 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_sizeparameter (in terahertz) (default True).- step_sizefloat, optional
The step size for stepwise sweeps (in terahertz) (default 1).
- twowaybool, optional
If the twoway parameter is True then one sweep is considered to be going from the start frequency to the stop frequency 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 frequency 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: