from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ModulationCls:
"""
| Commands in total: 3
| Subgroups: 1
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("modulation", core, parent)
@property
def ewLength(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_ewLength'):
from .EwLength import EwLengthCls
self._ewLength = EwLengthCls(self._core, self._cmd_group)
return self._ewLength
[docs]
def get_ssymbol(self) -> int:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:MODulation:SSYMbol`` \n
Snippet: ``value: int = driver.configure.nrSubMeas.srs.modulation.get_ssymbol()`` \n
Selects the OFDM symbol to be evaluated for single-symbol modulation result diagrams. The symbols are labeled 0 to <n>-1,
where <n> is the number of SRS symbols in the slot,
as defined via method ``RsCMPX_NrFr1Meas.configure.nrSubMeas.srs.sresource.rmapping.set()`` .
:return: selected_symbol: numeric
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:SRS:MODulation:SSYMbol?')
return Conversions.str_to_int(response)
[docs]
def set_ssymbol(self, selected_symbol: int) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:MODulation:SSYMbol`` \n
Snippet: ``driver.configure.nrSubMeas.srs.modulation.set_ssymbol(selected_symbol = 1)`` \n
Selects the OFDM symbol to be evaluated for single-symbol modulation result diagrams. The symbols are labeled 0 to <n>-1,
where <n> is the number of SRS symbols in the slot,
as defined via method ``RsCMPX_NrFr1Meas.configure.nrSubMeas.srs.sresource.rmapping.set()`` .
:param selected_symbol: numeric
"""
param = Conversions.decimal_value_to_str(selected_symbol)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:SRS:MODulation:SSYMbol {param}')
# noinspection PyTypeChecker
[docs]
def get_ew_position(self) -> enums.LowHigh:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:MODulation:EWPosition`` \n
Snippet: ``value: enums.LowHigh = driver.configure.nrSubMeas.srs.modulation.get_ew_position()`` \n
Specifies the position of the EVM window used for calculation of the trace results.
:return: evm_window_pos: LOW | HIGH
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:SRS:MODulation:EWPosition?')
return Conversions.str_to_scalar_enum(response, enums.LowHigh)
[docs]
def set_ew_position(self, evm_window_pos: enums.LowHigh) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:SRS:MODulation:EWPosition`` \n
Snippet: ``driver.configure.nrSubMeas.srs.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.
:param evm_window_pos: LOW | HIGH
"""
param = Conversions.enum_scalar_to_str(evm_window_pos, enums.LowHigh)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:SRS: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