Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Prach.Modulation

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class ModulationCls: """Modulation commands group definition. 3 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("modulation", core, parent) @property def ewLength(self): """ewLength commands group. 1 Sub-classes, 1 commands.""" if not hasattr(self, '_ewLength'): from .EwLength import EwLengthCls self._ewLength = EwLengthCls(self._core, self._cmd_group) return self._ewLength # noinspection PyTypeChecker
[docs] def get_ew_position(self) -> enums.LowHigh: """SCPI: CONFigure:NRSub:MEASurement<Instance>:PRACh:MODulation:EWPosition \n Snippet: value: enums.LowHigh = driver.configure.nrSubMeas.prach.modulation.get_ew_position() \n Specifies the position of the EVM window used for calculation of the trace results. \n :return: evm_window_pos: No help available """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:PRACh:MODulation:EWPosition?') return Conversions.str_to_scalar_enum(response, enums.LowHigh)
[docs] def set_ew_position(self, evm_window_pos: enums.LowHigh) -> None: """SCPI: CONFigure:NRSub:MEASurement<Instance>:PRACh:MODulation:EWPosition \n Snippet: driver.configure.nrSubMeas.prach.modulation.set_ew_position(evm_window_pos = enums.LowHigh.HIGH) \n Specifies the position of the EVM window used for calculation of the trace results. \n :param evm_window_pos: No help available """ param = Conversions.enum_scalar_to_str(evm_window_pos, enums.LowHigh) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:MODulation:EWPosition {param}')
def clone(self) -> 'ModulationCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = ModulationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group