from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SingleCmw:
"""SingleCmw commands group definition. 1 total commands, 0 Sub-groups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._base = CommandsGroup("singleCmw", core, parent)
# noinspection PyTypeChecker
[docs] def get_cmode(self) -> enums.ParameterSetMode:
"""SCPI: CONFigure:GSM:MEASurement<Instance>:MEValuation:LIST:CMWS:CMODe \n
Snippet: value: enums.ParameterSetMode = driver.configure.multiEval.listPy.singleCmw.get_cmode() \n
Specifies how the input connector is selected for GSM list mode measurements with the R&S CMWS. \n
:return: connector_mode: GLOBal | LIST GLOBal: The same input connector is used for all segments. It is selected in the same way as without list mode, for example via ROUTe:GSM:MEASi:SCENario:SALone. LIST: The input connector is configured individually for each segment. See method RsCmwGsmMeas.Configure.MultiEval.ListPy.Segment.SingleCmw.Connector.set.
"""
response = self._core.io.query_str('CONFigure:GSM:MEASurement<Instance>:MEValuation:LIST:CMWS:CMODe?')
return Conversions.str_to_scalar_enum(response, enums.ParameterSetMode)
[docs] def set_cmode(self, connector_mode: enums.ParameterSetMode) -> None:
"""SCPI: CONFigure:GSM:MEASurement<Instance>:MEValuation:LIST:CMWS:CMODe \n
Snippet: driver.configure.multiEval.listPy.singleCmw.set_cmode(connector_mode = enums.ParameterSetMode.GLOBal) \n
Specifies how the input connector is selected for GSM list mode measurements with the R&S CMWS. \n
:param connector_mode: GLOBal | LIST GLOBal: The same input connector is used for all segments. It is selected in the same way as without list mode, for example via ROUTe:GSM:MEASi:SCENario:SALone. LIST: The input connector is configured individually for each segment. See method RsCmwGsmMeas.Configure.MultiEval.ListPy.Segment.SingleCmw.Connector.set.
"""
param = Conversions.enum_scalar_to_str(connector_mode, enums.ParameterSetMode)
self._core.io.write(f'CONFigure:GSM:MEASurement<Instance>:MEValuation:LIST:CMWS:CMODe {param}')