Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Caggregation

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CaggregationCls:
	"""
	| Commands in total: 7
	| Subgroups: 3
	| Direct child commands: 2
	"""

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

	@property
	def frequency(self):
		"""
		| Commands in total: 3
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_frequency'):
			from .Frequency import FrequencyCls
			self._frequency = FrequencyCls(self._core, self._cmd_group)
		return self._frequency

	@property
	def cbandwidth(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_cbandwidth'):
			from .Cbandwidth import CbandwidthCls
			self._cbandwidth = CbandwidthCls(self._core, self._cmd_group)
		return self._cbandwidth

	@property
	def acSpacing(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_acSpacing'):
			from .AcSpacing import AcSpacingCls
			self._acSpacing = AcSpacingCls(self._core, self._cmd_group)
		return self._acSpacing

	# noinspection PyTypeChecker
[docs] def get_mcarrier(self) -> enums.CarrierComponent: """ ``CONFigure:NRSub:MEASurement<Instance>:CAGGregation:MCARrier`` \n Snippet: ``value: enums.CarrierComponent = driver.configure.nrSubMeas.caggregation.get_mcarrier()`` \n Selects a component carrier for synchronization and for single carrier measurements. :return: meas_carrier: CC1 | CC2 """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:CAGGregation:MCARrier?') return Conversions.str_to_scalar_enum(response, enums.CarrierComponent)
[docs] def set_mcarrier(self, meas_carrier: enums.CarrierComponent) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:CAGGregation:MCARrier`` \n Snippet: ``driver.configure.nrSubMeas.caggregation.set_mcarrier(meas_carrier = enums.CarrierComponent.CC1)`` \n Selects a component carrier for synchronization and for single carrier measurements. :param meas_carrier: CC1 | CC2 """ param = Conversions.enum_scalar_to_str(meas_carrier, enums.CarrierComponent) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:CAGGregation:MCARrier {param}')
# noinspection PyTypeChecker
[docs] def get_dcarrier(self) -> enums.CarrierComponent: """ ``CONFigure:NRSub:MEASurement<Instance>:CAGGregation:DCARrier`` \n Snippet: ``value: enums.CarrierComponent = driver.configure.nrSubMeas.caggregation.get_dcarrier()`` \n No help available """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:CAGGregation:DCARrier?') return Conversions.str_to_scalar_enum(response, enums.CarrierComponent)
[docs] def set_dcarrier(self, display_carrier: enums.CarrierComponent) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:CAGGregation:DCARrier`` \n Snippet: ``driver.configure.nrSubMeas.caggregation.set_dcarrier(display_carrier = enums.CarrierComponent.CC1)`` \n No help available """ param = Conversions.enum_scalar_to_str(display_carrier, enums.CarrierComponent) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:CAGGregation:DCARrier {param}')
def clone(self) -> 'CaggregationCls': """ 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 = CaggregationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group