from typing import List
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 ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class FreqError:
"""FreqError commands group definition. 1 total commands, 0 Sub-groups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._base = CommandsGroup("freqError", core, parent)
# noinspection PyTypeChecker
[docs] class FreqErrorStruct(StructBase):
"""Structure for setting input parameters. Fields: \n
- Value: float: No parameter help available
- Selection: List[bool]: No parameter help available"""
__meta_args_list = [
ArgStruct.scalar_float('Value'),
ArgStruct('Selection', DataType.BooleanList, None, False, False, 3)]
def __init__(self):
StructBase.__init__(self, self)
self.Value: float = None
self.Selection: List[bool] = None
[docs] def set(self, structure: FreqErrorStruct, qamOrder=repcap.QamOrder.Default) -> None:
"""SCPI: CONFigure:GSM:MEASurement<Instance>:MEValuation:LIMit:QAM<ModOrder>:FERRor \n
Snippet: driver.configure.multiEval.limit.qam.freqError.set(value = [PROPERTY_STRUCT_NAME](), qamOrder = repcap.QamOrder.Default) \n
Defines and activates upper limits for the frequency error. \n
:param structure: for set value, see the help for FreqErrorStruct structure arguments.
:param qamOrder: optional repeated capability selector. Default value: Nr16 (settable in the interface 'Qam')"""
qamOrder_cmd_val = self._base.get_repcap_cmd_value(qamOrder, repcap.QamOrder)
self._core.io.write_struct(f'CONFigure:GSM:MEASurement<Instance>:MEValuation:LIMit:QAM{qamOrder_cmd_val}:FERRor', structure)
[docs] def get(self, qamOrder=repcap.QamOrder.Default) -> FreqErrorStruct:
"""SCPI: CONFigure:GSM:MEASurement<Instance>:MEValuation:LIMit:QAM<ModOrder>:FERRor \n
Snippet: value: FreqErrorStruct = driver.configure.multiEval.limit.qam.freqError.get(qamOrder = repcap.QamOrder.Default) \n
Defines and activates upper limits for the frequency error. \n
:param qamOrder: optional repeated capability selector. Default value: Nr16 (settable in the interface 'Qam')
:return: structure: for return value, see the help for FreqErrorStruct structure arguments."""
qamOrder_cmd_val = self._base.get_repcap_cmd_value(qamOrder, repcap.QamOrder)
return self._core.io.query_struct(f'CONFigure:GSM:MEASurement<Instance>:MEValuation:LIMit:QAM{qamOrder_cmd_val}:FERRor?', self.__class__.FreqErrorStruct())