sweep_set_mode#
method
- TSL550.sweep_set_mode(continuous: bool = True, twoway: bool = True, trigger: bool = False, const_freq_step: bool = False) None[source]#
Set the mode of the sweep.
Valid sweep operation modes are:1: Continuous operation, One-way2: Continuous operation, Two-way3: Step operation, One-way4: Step operation, Two-way5: Step operation, One-way (constant frequency interval)6: Step operation, Two-way (constant frequency interval)7: Continuous operation, One-way. Operation is started by trigger signal.8: Continuous operation, Two-way. Operation is started by trigger signal.9: Step operation, One-way. Operation is started by trigger signal.10: Step operation, Two-way. Operation is started by trigger signal.11: Step operation, One-way (constant frequency interval). Operation is started by trigger signal.12: Step operation, Two-way (constant frequency interval). Operation is started by trigger signal.- Parameters:
- continuousbool, optional
Continuous (
True, default) or stepwise (False).- twowaybool, optional
Two-way (
True, default) or one-directional with reset (False).- triggerbool, optional
Start on external trigger (defaults to
False).- const_freq_stepbool, optional
Constant frequency interval, requires stepwise mode (defaults to
False).
- Raises:
- AttributeError
If the sweep configuration is invalid.