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 NrmseCls:
"""Nrmse commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("nrmse", core, parent)
[docs]
def set(self, enable: bool, limit: float) -> None:
"""SCPI: CONFigure:UWB:MEASurement<Instance>:MEValuation:MODulation:LIMit:PSDU:NRMSe \n
Snippet: driver.configure.uwbMeas.multiEval.modulation.limit.psdu.nrmse.set(enable = False, limit = 1.0) \n
Activates and defines an upper limit for the NRMSE of the PSDU. \n
:param enable: No help available
:param limit: No help available
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('enable', enable, DataType.Boolean), ArgSingle('limit', limit, DataType.Float))
self._core.io.write(f'CONFigure:UWB:MEASurement<Instance>:MEValuation:MODulation:LIMit:PSDU:NRMSe {param}'.rstrip())
# noinspection PyTypeChecker
[docs]
class NrmseStruct(StructBase):
"""Response structure. Fields: \n
- Enable: bool: No parameter help available
- Limit: float: No parameter help available"""
__meta_args_list = [
ArgStruct.scalar_bool('Enable'),
ArgStruct.scalar_float('Limit')]
def __init__(self):
StructBase.__init__(self, self)
self.Enable: bool = None
self.Limit: float = None
[docs]
def get(self) -> NrmseStruct:
"""SCPI: CONFigure:UWB:MEASurement<Instance>:MEValuation:MODulation:LIMit:PSDU:NRMSe \n
Snippet: value: NrmseStruct = driver.configure.uwbMeas.multiEval.modulation.limit.psdu.nrmse.get() \n
Activates and defines an upper limit for the NRMSE of the PSDU. \n
:return: structure: for return value, see the help for NrmseStruct structure arguments."""
return self._core.io.query_struct(f'CONFigure:UWB:MEASurement<Instance>:MEValuation:MODulation:LIMit:PSDU:NRMSe?', self.__class__.NrmseStruct())