from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UfmcCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ufmc", core, parent)
[docs]
def get_nsuband(self) -> int:
"""
``[SOURce<HW>]:BB:OFDM:UFMC:NSUBand`` \n
Snippet: ``value: int = driver.source.bb.ofdm.ufmc.get_nsuband()`` \n
Sets the number of UFMC subbands.
:return: nsubbands: integer Range: 1 to 1500
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:OFDM:UFMC:NSUBand?')
return Conversions.str_to_int(response)
[docs]
def get_pre_equal(self) -> bool:
"""
``[SOURce<HW>]:BB:OFDM:UFMC:PREequal`` \n
Snippet: ``value: bool = driver.source.bb.ofdm.ufmc.get_pre_equal()`` \n
Applies a filter pre-equalization.
:return: ufmc_pre_equal: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:OFDM:UFMC:PREequal?')
return Conversions.str_to_bool(response)