Source code for RsCma.Implementations.Configure.AfRf.Measurement.MultiEval.Tones.Dialing.ToStart

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal.Types import DataType
from ........Internal.StructBase import StructBase
from ........Internal.ArgStruct import ArgStruct
from ........Internal.ArgSingleList import ArgSingleList
from ........Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ToStartCls: """ToStart commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("toStart", core, parent)
[docs] def set(self, enable: bool, timeout: float) -> None: """SCPI: CONFigure:AFRF:MEASurement<Instance>:MEValuation:TONes:DIALing:TOSTart \n Snippet: driver.configure.afRf.measurement.multiEval.tones.dialing.toStart.set(enable = False, timeout = 1.0) \n Configures a timeout for the detection of the first tone during a dialing sequence analysis. \n :param enable: OFF | ON Enables the timeout :param timeout: Time interval during which the first tone must be detected Range: 0.8 s to 86400 s, Unit: s """ param = ArgSingleList().compose_cmd_string(ArgSingle('enable', enable, DataType.Boolean), ArgSingle('timeout', timeout, DataType.Float)) self._core.io.write(f'CONFigure:AFRF:MEASurement<Instance>:MEValuation:TONes:DIALing:TOSTart {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class ToStartStruct(StructBase): """Response structure. Fields: \n - Enable: bool: OFF | ON Enables the timeout - Timeout: float: Time interval during which the first tone must be detected Range: 0.8 s to 86400 s, Unit: s""" __meta_args_list = [ ArgStruct.scalar_bool('Enable'), ArgStruct.scalar_float('Timeout')] def __init__(self): StructBase.__init__(self, self) self.Enable: bool = None self.Timeout: float = None
[docs] def get(self) -> ToStartStruct: """SCPI: CONFigure:AFRF:MEASurement<Instance>:MEValuation:TONes:DIALing:TOSTart \n Snippet: value: ToStartStruct = driver.configure.afRf.measurement.multiEval.tones.dialing.toStart.get() \n Configures a timeout for the detection of the first tone during a dialing sequence analysis. \n :return: structure: for return value, see the help for ToStartStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:AFRF:MEASurement<Instance>:MEValuation:TONes:DIALing:TOSTart?', self.__class__.ToStartStruct())