Source code for RsCmwBluetoothMeas.Implementations.Configure.MultiEval.ListPy.Segment.Scount.Sacp

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class SacpCls: """Sacp commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("sacp", core, parent)
[docs] def set(self, spec_acp_stat_cnt: int, segment=repcap.Segment.Default) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:SCOunt:SACP \n Snippet: driver.configure.multiEval.listPy.segment.scount.sacp.set(spec_acp_stat_cnt = 1, segment = repcap.Segment.Default) \n Defines the statistic count in the segment. The last mnemonic denotes the measurement type: statistical modulation measurement, statistical power measurement, spectrum ACP measurement (BR, LE) , spectrum gated ACP measurement (EDR) , spectrum 20 dB bandwidth (occupied bandwidth) measurement (BR) . \n :param spec_acp_stat_cnt: numeric Statistic count Range: 1 to 1000 :param segment: optional repeated capability selector. Default value: S1 (settable in the interface 'Segment') """ param = Conversions.decimal_value_to_str(spec_acp_stat_cnt) segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:SCOunt:SACP {param}')
[docs] def get(self, segment=repcap.Segment.Default) -> int: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:SCOunt:SACP \n Snippet: value: int = driver.configure.multiEval.listPy.segment.scount.sacp.get(segment = repcap.Segment.Default) \n Defines the statistic count in the segment. The last mnemonic denotes the measurement type: statistical modulation measurement, statistical power measurement, spectrum ACP measurement (BR, LE) , spectrum gated ACP measurement (EDR) , spectrum 20 dB bandwidth (occupied bandwidth) measurement (BR) . \n :param segment: optional repeated capability selector. Default value: S1 (settable in the interface 'Segment') :return: spec_acp_stat_cnt: numeric Statistic count Range: 1 to 1000""" segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) response = self._core.io.query_str(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:SCOunt:SACP?') return Conversions.str_to_int(response)