from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CountCls:
"""Count commands group definition. 3 total commands, 2 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("count", core, parent)
@property
def auto(self):
"""auto commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_auto'):
from .Auto import AutoCls
self._auto = AutoCls(self._core, self._cmd_group)
return self._auto
@property
def state(self):
"""state commands group. 0 Sub-classes, 1 commands."""
if not hasattr(self, '_state'):
from .State import StateCls
self._state = StateCls(self._core, self._cmd_group)
return self._state
[docs] def set(self, sub_frames: float) -> None:
"""SCPI: [SENSe][:LTE]:FRAMe:COUNt \n
Snippet: driver.applications.k10Xlte.sense.lte.frame.count.set(sub_frames = 1.0) \n
Defines the number of frames you want to analyze.
INTRO_CMD_HELP: Prerequisites for this command \n
- Turn on overall frame count ([SENSe:][LTE:]FRAMe:COUNt:STATe) .
- Turn on manual selection of frames to analyze ([SENSe:][LTE:]FRAMe:COUNt:AUTO) . \n
:param sub_frames: numeric value (integer only)
"""
param = Conversions.decimal_value_to_str(sub_frames)
self._core.io.write(f'SENSe:LTE:FRAMe:COUNt {param}')
[docs] def get(self) -> float:
"""SCPI: [SENSe][:LTE]:FRAMe:COUNt \n
Snippet: value: float = driver.applications.k10Xlte.sense.lte.frame.count.get() \n
Defines the number of frames you want to analyze.
INTRO_CMD_HELP: Prerequisites for this command \n
- Turn on overall frame count ([SENSe:][LTE:]FRAMe:COUNt:STATe) .
- Turn on manual selection of frames to analyze ([SENSe:][LTE:]FRAMe:COUNt:AUTO) . \n
:return: sub_frames: numeric value (integer only)"""
response = self._core.io.query_str(f'SENSe:LTE:FRAMe:COUNt?')
return Conversions.str_to_float(response)
def clone(self) -> 'CountCls':
"""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 = CountCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group