Source code for RsSmw.Implementations.Source.Cemulation.Mimo.Antenna.Rx

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RxCls:
	"""
	| Commands in total: 9
	| Subgroups: 6
	| Direct child commands: 1
	"""

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

	@property
	def antenna(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_antenna'):
			from .Antenna import AntennaCls
			self._antenna = AntennaCls(self._core, self._cmd_group)
		return self._antenna

	@property
	def calc(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_calc'):
			from .Calc import CalcCls
			self._calc = CalcCls(self._core, self._cmd_group)
		return self._calc

	@property
	def column(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_column'):
			from .Column import ColumnCls
			self._column = ColumnCls(self._core, self._cmd_group)
		return self._column

	@property
	def espacing(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_espacing'):
			from .Espacing import EspacingCls
			self._espacing = EspacingCls(self._core, self._cmd_group)
		return self._espacing

	@property
	def polarization(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_polarization'):
			from .Polarization import PolarizationCls
			self._polarization = PolarizationCls(self._core, self._cmd_group)
		return self._polarization

	@property
	def rows(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_rows'):
			from .Rows import RowsCls
			self._rows = RowsCls(self._core, self._cmd_group)
		return self._rows

	# noinspection PyTypeChecker
[docs] def get_pattern(self) -> enums.AntMod3DaNtPattern: """ ``[SOURce<HW>]:CEMulation:MIMO:ANTenna:RX:PATTern`` \n Snippet: ``value: enums.AntMod3DaNtPattern = driver.source.cemulation.mimo.antenna.rx.get_pattern()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:CEMulation:MIMO:ANTenna:RX:PATTern?') return Conversions.str_to_scalar_enum(response, enums.AntMod3DaNtPattern)
[docs] def set_pattern(self, ant_rx_patt_descr: enums.AntMod3DaNtPattern) -> None: """ ``[SOURce<HW>]:CEMulation:MIMO:ANTenna:RX:PATTern`` \n Snippet: ``driver.source.cemulation.mimo.antenna.rx.set_pattern(ant_rx_patt_descr = enums.AntMod3DaNtPattern.DIPole)`` \n No help available """ param = Conversions.enum_scalar_to_str(ant_rx_patt_descr, enums.AntMod3DaNtPattern) self._core.io.write(f'SOURce<HwInstance>:CEMulation:MIMO:ANTenna:RX:PATTern {param}')
def clone(self) -> 'RxCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = RxCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group