Source code for RsSmw.Implementations.Sconfiguration.Baseband

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class BasebandCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("baseband", core, parent)

	# noinspection PyTypeChecker
[docs] def get_source(self) -> enums.SystConfBbConf: """ ``SCONfiguration:BASeband:SOURce`` \n Snippet: ``value: enums.SystConfBbConf = driver.sconfiguration.baseband.get_source()`` \n Determines whether coupled or separated baseband sources are used. :return: sour_config: SEParate | COUPled | CPENtity SEParate Enabled in LxMxN configurations with L <= 2 and M 4 COUPled | CPENtity Enabled in LxMxN configurations with L 2 CPENtity enabled in LxMxN configurations with L 1 and M 1. """ response = self._core.io.query_str('SCONfiguration:BASeband:SOURce?') return Conversions.str_to_scalar_enum(response, enums.SystConfBbConf)
[docs] def set_source(self, sour_config: enums.SystConfBbConf) -> None: """ ``SCONfiguration:BASeband:SOURce`` \n Snippet: ``driver.sconfiguration.baseband.set_source(sour_config = enums.SystConfBbConf.COUPled)`` \n Determines whether coupled or separated baseband sources are used. :param sour_config: SEParate | COUPled | CPENtity SEParate Enabled in LxMxN configurations with L <= 2 and M 4 COUPled | CPENtity Enabled in LxMxN configurations with L 2 CPENtity enabled in LxMxN configurations with L 1 and M 1. """ param = Conversions.enum_scalar_to_str(sour_config, enums.SystConfBbConf) self._core.io.write(f'SCONfiguration:BASeband:SOURce {param}')