Source code for RsCmwLteMeas.Implementations.Configure.MultiEval.Result.EvMagnitude.EvmSymbol

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
from ...... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class EvmSymbolCls: """EvmSymbol commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("evmSymbol", core, parent)
[docs] def set(self, enable: bool, symbol: int, low_high: enums.LowHigh) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:RESult:EVMagnitude:EVMSymbol \n Snippet: driver.configure.multiEval.result.evMagnitude.evmSymbol.set(enable = False, symbol = 1, low_high = enums.LowHigh.HIGH) \n Enables or disables the measurement of EVM vs modulation symbol results and configures the scope of the measurement. \n :param enable: OFF | ON OFF: Do not measure the results. ON: Measure the results. :param symbol: decimal SC-FDMA symbol to be evaluated Range: 0 to 6 :param low_high: LOW | HIGH Low or high EVM window position """ param = ArgSingleList().compose_cmd_string(ArgSingle('enable', enable, DataType.Boolean), ArgSingle('symbol', symbol, DataType.Integer), ArgSingle('low_high', low_high, DataType.Enum, enums.LowHigh)) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:RESult:EVMagnitude:EVMSymbol {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class EvmSymbolStruct(StructBase): """Response structure. Fields: \n - Enable: bool: OFF | ON OFF: Do not measure the results. ON: Measure the results. - Symbol: int: decimal SC-FDMA symbol to be evaluated Range: 0 to 6 - Low_High: enums.LowHigh: LOW | HIGH Low or high EVM window position""" __meta_args_list = [ ArgStruct.scalar_bool('Enable'), ArgStruct.scalar_int('Symbol'), ArgStruct.scalar_enum('Low_High', enums.LowHigh)] def __init__(self): StructBase.__init__(self, self) self.Enable: bool = None self.Symbol: int = None self.Low_High: enums.LowHigh = None
[docs] def get(self) -> EvmSymbolStruct: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:RESult:EVMagnitude:EVMSymbol \n Snippet: value: EvmSymbolStruct = driver.configure.multiEval.result.evMagnitude.evmSymbol.get() \n Enables or disables the measurement of EVM vs modulation symbol results and configures the scope of the measurement. \n :return: structure: for return value, see the help for EvmSymbolStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:RESult:EVMagnitude:EVMSymbol?', self.__class__.EvmSymbolStruct())