from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PrachCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("prach", core, parent)
[docs]
def get_pc_index(self) -> int:
"""
``CONFigure:NRSub:MEASurement<Instance>:NETWork:PRACh:PCINdex`` \n
Snippet: ``value: int = driver.configure.nrSubMeas.network.prach.get_pc_index()`` \n
No help available
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:NETWork:PRACh:PCINdex?')
return Conversions.str_to_int(response)
[docs]
def set_pc_index(self, prach_conf_index: int) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:NETWork:PRACh:PCINdex`` \n
Snippet: ``driver.configure.nrSubMeas.network.prach.set_pc_index(prach_conf_index = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(prach_conf_index)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:NETWork:PRACh:PCINdex {param}')