Source code for RsCMPX_Gprf.Implementations.Configure.Gprf.Measurement.Spectrum.FreqSweep.Swt

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SwtCls: """Swt commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("swt", core, parent)
[docs] def get_auto(self) -> bool: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:FSWeep:SWT:AUTO \n Snippet: value: bool = driver.configure.gprf.measurement.spectrum.freqSweep.swt.get_auto() \n No command help available \n :return: sweep_time_auto: No help available """ response = self._core.io.query_str('CONFigure:GPRF:MEASurement<Instance>:SPECtrum:FSWeep:SWT:AUTO?') return Conversions.str_to_bool(response)
[docs] def set_auto(self, sweep_time_auto: bool) -> None: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:FSWeep:SWT:AUTO \n Snippet: driver.configure.gprf.measurement.spectrum.freqSweep.swt.set_auto(sweep_time_auto = False) \n No command help available \n :param sweep_time_auto: No help available """ param = Conversions.bool_to_str(sweep_time_auto) self._core.io.write(f'CONFigure:GPRF:MEASurement<Instance>:SPECtrum:FSWeep:SWT:AUTO {param}')
[docs] def get_value(self) -> float: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:FSWeep:SWT \n Snippet: value: float = driver.configure.gprf.measurement.spectrum.freqSweep.swt.get_value() \n No command help available \n :return: sweep_time: No help available """ response = self._core.io.query_str('CONFigure:GPRF:MEASurement<Instance>:SPECtrum:FSWeep:SWT?') return Conversions.str_to_float(response)
[docs] def set_value(self, sweep_time: float) -> None: """SCPI: CONFigure:GPRF:MEASurement<Instance>:SPECtrum:FSWeep:SWT \n Snippet: driver.configure.gprf.measurement.spectrum.freqSweep.swt.set_value(sweep_time = 1.0) \n No command help available \n :param sweep_time: No help available """ param = Conversions.decimal_value_to_str(sweep_time) self._core.io.write(f'CONFigure:GPRF:MEASurement<Instance>:SPECtrum:FSWeep:SWT {param}')