from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CcountCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ccount", core, parent)
[docs]
def get(self, lane=repcap.Lane.Default) -> int:
"""
``LANE<*>:EMBedding:CCOunt`` \n
Snippet: ``value: int = driver.lane.embedding.ccount.get(lane = repcap.Lane.Default)`` \n
Returns the total number of components in the measurement setup, including disabled components.
:param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane')
"""
lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane)
response = self._core.io.query_str_with_opc(f'LANE{lane_cmd_val}:EMBedding:CCOunt?')
return Conversions.str_to_int(response)