from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.ArgSingleSuppressed import ArgSingleSuppressed
from .....Internal.Types import DataType
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NsymbolCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("nsymbol", core, parent)
[docs]
def fetch(self) -> int:
"""
``FETCh:NRSub:MEASurement<Instance>:PRACh:MODulation:NSYMbol`` \n
Snippet: ``value: int = driver.nrSubMeas.prach.modulation.nsymbol.fetch()`` \n
Queries the number of active OFDM symbols (symbols with result bars) in the EVM vs symbol diagram.
Suppressed linked return values: reliability
:return: no_of_symbols: decimal
"""
suppressed = ArgSingleSuppressed(0, DataType.Integer, False, 1, 'Reliability')
response = self._core.io.query_str_suppressed(f'FETCh:NRSub:MEASurement<Instance>:PRACh:MODulation:NSYMbol?', suppressed)
return Conversions.str_to_int(response)