Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.ListPy.SingleCmw

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SingleCmwCls: """SingleCmw commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("singleCmw", core, parent) # noinspection PyTypeChecker
[docs] def get_cmode(self) -> enums.ParameterSetMode: """SCPI: CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:CMWS:CMODe \n Snippet: value: enums.ParameterSetMode = driver.configure.nrSubMeas.multiEval.listPy.singleCmw.get_cmode() \n No command help available \n :return: connector_mode: No help available """ response = self._core.io.query_str('CONFigure:NRSub: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:NRSub:MEASurement<Instance>:MEValuation:LIST:CMWS:CMODe \n Snippet: driver.configure.nrSubMeas.multiEval.listPy.singleCmw.set_cmode(connector_mode = enums.ParameterSetMode.GLOBal) \n No command help available \n :param connector_mode: No help available """ param = Conversions.enum_scalar_to_str(connector_mode, enums.ParameterSetMode) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIST:CMWS:CMODe {param}')