Source code for RsCMPX_WlanMeas.Implementations.Configure.WlanMeas.MultiEval.Compensation.SkipSymbols

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 SkipSymbolsCls: """SkipSymbols commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("skipSymbols", core, parent)
[docs] def set(self, skip_symbols_head: int, skip_symbols_tail: int) -> None: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:COMPensation:SKIPsymbols \n Snippet: driver.configure.wlanMeas.multiEval.compensation.skipSymbols.set(skip_symbols_head = 1, skip_symbols_tail = 1) \n Defines how many head and tail symbols are excluded from OFDM modulation measurements. \n :param skip_symbols_head: Number of heading symbols to be skipped. :param skip_symbols_tail: Number of tailing symbols to be skipped. """ param = ArgSingleList().compose_cmd_string(ArgSingle('skip_symbols_head', skip_symbols_head, DataType.Integer), ArgSingle('skip_symbols_tail', skip_symbols_tail, DataType.Integer)) self._core.io.write(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:COMPensation:SKIPsymbols {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class SkipSymbolsStruct(StructBase): """Response structure. Fields: \n - Skip_Symbols_Head: int: Number of heading symbols to be skipped. - Skip_Symbols_Tail: int: Number of tailing symbols to be skipped.""" __meta_args_list = [ ArgStruct.scalar_int('Skip_Symbols_Head'), ArgStruct.scalar_int('Skip_Symbols_Tail')] def __init__(self): StructBase.__init__(self, self) self.Skip_Symbols_Head: int = None self.Skip_Symbols_Tail: int = None
[docs] def get(self) -> SkipSymbolsStruct: """SCPI: CONFigure:WLAN:MEASurement<Instance>:MEValuation:COMPensation:SKIPsymbols \n Snippet: value: SkipSymbolsStruct = driver.configure.wlanMeas.multiEval.compensation.skipSymbols.get() \n Defines how many head and tail symbols are excluded from OFDM modulation measurements. \n :return: structure: for return value, see the help for SkipSymbolsStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:WLAN:MEASurement<Instance>:MEValuation:COMPensation:SKIPsymbols?', self.__class__.SkipSymbolsStruct())