from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AfCls:
"""Af commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("af", core, parent)
[docs] def get_scount(self) -> int:
"""SCPI: CONFigure:AFRF:MEASurement<Instance>:MEValuation:AF:SCOunt \n
Snippet: value: int = driver.configure.afRf.measurement.multiEval.af.get_scount() \n
Specifies the number of measurement intervals per measurement cycle for AF results. One measurement interval delivers a
single 'Current' value per result. \n
:return: statistic_count: Range: 1 to 1000
"""
response = self._core.io.query_str('CONFigure:AFRF:MEASurement<Instance>:MEValuation:AF:SCOunt?')
return Conversions.str_to_int(response)
[docs] def set_scount(self, statistic_count: int) -> None:
"""SCPI: CONFigure:AFRF:MEASurement<Instance>:MEValuation:AF:SCOunt \n
Snippet: driver.configure.afRf.measurement.multiEval.af.set_scount(statistic_count = 1) \n
Specifies the number of measurement intervals per measurement cycle for AF results. One measurement interval delivers a
single 'Current' value per result. \n
:param statistic_count: Range: 1 to 1000
"""
param = Conversions.decimal_value_to_str(statistic_count)
self._core.io.write(f'CONFigure:AFRF:MEASurement<Instance>:MEValuation:AF:SCOunt {param}')