sweep_status#
method
- TSL550.sweep_status()[source]#
Gets the current condition of the sweeping function.
The status code corresponds to the following:0: Stop (TSL550.SWEEP_OFF)1: Executing (TSL550.SWEEP_RUNNING)2: Pause (TSL550.SWEEP_PAUSED)3: Awaiting Trigger (TSL550.SWEEP_TRIGGER_WAIT)This means that the sweep has been set to start onan external trigger and that trigger has not yetbeen received.4: Setting to sweep start wavelength (TSL550.SWEEP_JUMP)This means that the laser is transitioning betweenthe end of one sweep and the start of the next inone-way sweep mode.- Returns
- statusint
The status code.
Examples
>>> laser.sweep_status() 0 >>> laser.sweep_status() == laser.SWEEP_OFF True