from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FofdmCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("fofdm", core, parent)
[docs]
def get_nsuband(self) -> int:
"""
``[SOURce<HW>]:BB:OFDM:FOFDm:NSUBand`` \n
Snippet: ``value: int = driver.source.bb.ofdm.fofdm.get_nsuband()`` \n
Sets the number of f-OFDM subbands.
:return: fofdm_nsubands: integer Range: 1 to 1500
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:OFDM:FOFDm:NSUBand?')
return Conversions.str_to_int(response)
[docs]
def get_ntx_blocks(self) -> int:
"""
``[SOURce<HW>]:BB:OFDM:FOFDm:NTXBlocks`` \n
Snippet: ``value: int = driver.source.bb.ofdm.fofdm.get_ntx_blocks()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:OFDM:FOFDm:NTXBlocks?')
return Conversions.str_to_int(response)