from typing import List
from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EwLengthCls:
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ewLength", core, parent)
@property
def pformat(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_pformat'):
from .Pformat import PformatCls
self._pformat = PformatCls(self._core, self._cmd_group)
return self._pformat
[docs]
def get_value(self) -> List[int]:
"""
``CONFigure:NRSub:MEASurement<Instance>:PRACh:MODulation:EWLength`` \n
Snippet: ``value: List[int] = driver.configure.nrSubMeas.prach.modulation.ewLength.get_value()`` \n
Specifies the EVM window length in samples for all preamble formats.
"""
response = self._core.io.query_bin_or_ascii_int_list('CONFigure:NRSub:MEASurement<Instance>:PRACh:MODulation:EWLength?')
return response
[docs]
def set_value(self, evm_window_length: List[int]) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:PRACh:MODulation:EWLength`` \n
Snippet: ``driver.configure.nrSubMeas.prach.modulation.ewLength.set_value(evm_window_length = [1, 2, 3])`` \n
Specifies the EVM window length in samples for all preamble formats.
"""
param = Conversions.list_to_csv_str(evm_window_length)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:MODulation:EWLength {param}')
def clone(self) -> 'EwLengthCls':
"""
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 = EwLengthCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group