from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ScountCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("scount", core, parent)
[docs]
def get_modulation(self) -> int:
"""
``CONFigure:NRSub:MEASurement<Instance>:PRACh:SCOunt:MODulation`` \n
Snippet: ``value: int = driver.configure.nrSubMeas.prach.scount.get_modulation()`` \n
Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per
single shot.
:return: statistic_count: numeric
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:PRACh:SCOunt:MODulation?')
return Conversions.str_to_int(response)
[docs]
def set_modulation(self, statistic_count: int) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:PRACh:SCOunt:MODulation`` \n
Snippet: ``driver.configure.nrSubMeas.prach.scount.set_modulation(statistic_count = 1)`` \n
Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per
single shot.
:param statistic_count: numeric
"""
param = Conversions.decimal_value_to_str(statistic_count)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:SCOunt:MODulation {param}')
[docs]
def get_pdynamics(self) -> int:
"""
``CONFigure:NRSub:MEASurement<Instance>:PRACh:SCOunt:PDYNamics`` \n
Snippet: ``value: int = driver.configure.nrSubMeas.prach.scount.get_pdynamics()`` \n
Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per
single shot.
:return: statistic_count: numeric
"""
response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:PRACh:SCOunt:PDYNamics?')
return Conversions.str_to_int(response)
[docs]
def set_pdynamics(self, statistic_count: int) -> None:
"""
``CONFigure:NRSub:MEASurement<Instance>:PRACh:SCOunt:PDYNamics`` \n
Snippet: ``driver.configure.nrSubMeas.prach.scount.set_pdynamics(statistic_count = 1)`` \n
Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per
single shot.
:param statistic_count: numeric
"""
param = Conversions.decimal_value_to_str(statistic_count)
self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:PRACh:SCOunt:PDYNamics {param}')