Source code for RsSmbv.Implementations.Source.Bb.Ofdm.Ufmc

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 set_nsuband(self, nsubbands: int) -> None: """ ``[SOURce<HW>]:BB:OFDM:UFMC:NSUBand`` \n Snippet: ``driver.source.bb.ofdm.ufmc.set_nsuband(nsubbands = 1)`` \n Sets the number of UFMC subbands. :param nsubbands: integer Range: 1 to 1500 """ param = Conversions.decimal_value_to_str(nsubbands) self._core.io.write(f'SOURce<HwInstance>:BB:OFDM:UFMC:NSUBand {param}')
[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)
[docs] def set_pre_equal(self, ufmc_pre_equal: bool) -> None: """ ``[SOURce<HW>]:BB:OFDM:UFMC:PREequal`` \n Snippet: ``driver.source.bb.ofdm.ufmc.set_pre_equal(ufmc_pre_equal = False)`` \n Applies a filter pre-equalization. :param ufmc_pre_equal: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(ufmc_pre_equal) self._core.io.write(f'SOURce<HwInstance>:BB:OFDM:UFMC:PREequal {param}')