Source code for RsSmw.Implementations.Source.Cemulation.Mimo.Antenna.Tx.Calc

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


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

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

	# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.AntModCalcMode: """ ``[SOURce<HW>]:CEMulation:MIMO:ANTenna:TX:CALC:MODE`` \n Snippet: ``value: enums.AntModCalcMode = driver.source.cemulation.mimo.antenna.tx.calc.get_mode()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:MIMO:ANTenna:TX:CALC:MODE?') return Conversions.str_to_scalar_enum(response, enums.AntModCalcMode)
[docs] def set_mode(self, ant_mod_calc_rx_mod: enums.AntModCalcMode) -> None: """ ``[SOURce<HW>]:CEMulation:MIMO:ANTenna:TX:CALC:MODE`` \n Snippet: ``driver.source.cemulation.mimo.antenna.tx.calc.set_mode(ant_mod_calc_rx_mod = enums.AntModCalcMode.RELativphase)`` \n No help available """ param = Conversions.enum_scalar_to_str(ant_mod_calc_rx_mod, enums.AntModCalcMode) self._core.io.write(f'SOURce<HwInstance>:CEMulation:MIMO:ANTenna:TX:CALC:MODE {param}')