Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.Modulation

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ModulationCls:
	"""
	| Commands in total: 10
	| Subgroups: 3
	| Direct child commands: 3
	"""

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

	@property
	def tracking(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_tracking'):
			from .Tracking import TrackingCls
			self._tracking = TrackingCls(self._core, self._cmd_group)
		return self._tracking

	@property
	def ewLength(self):
		"""
		| Commands in total: 1
		| Subgroups: 1
		| Direct child commands: 0
		"""
		if not hasattr(self, '_ewLength'):
			from .EwLength import EwLengthCls
			self._ewLength = EwLengthCls(self._core, self._cmd_group)
		return self._ewLength

	@property
	def eePeriods(self):
		"""
		| Commands in total: 3
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_eePeriods'):
			from .EePeriods import EePeriodsCls
			self._eePeriods = EePeriodsCls(self._core, self._cmd_group)
		return self._eePeriods

[docs] def get_tdl_offset(self) -> float: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:TDLoffset`` \n Snippet: ``value: float = driver.configure.nrSubMeas.multiEval.modulation.get_tdl_offset()`` \n Specifies the offset of the DC subcarrier from the center frequency (number of subcarriers) . :return: offset: numeric """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:TDLoffset?') return Conversions.str_to_float(response)
[docs] def set_tdl_offset(self, offset: float) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:TDLoffset`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.modulation.set_tdl_offset(offset = 1.0)`` \n Specifies the offset of the DC subcarrier from the center frequency (number of subcarriers) . :param offset: numeric """ param = Conversions.decimal_value_to_str(offset) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:TDLoffset {param}')
# noinspection PyTypeChecker
[docs] def get_tperiod(self) -> enums.Tperiod: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:TPERiod`` \n Snippet: ``value: enums.Tperiod = driver.configure.nrSubMeas.multiEval.modulation.get_tperiod()`` \n Configures the transient period capability to be considered for EVM measurements. :return: period: OFF: default capability (long transient period) US2 | US4 | US7: short transient period of 2 µs, 4 µs or 7 µs. """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:TPERiod?') return Conversions.str_to_scalar_enum(response, enums.Tperiod)
[docs] def set_tperiod(self, period: enums.Tperiod) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:TPERiod`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.modulation.set_tperiod(period = enums.Tperiod.OFF)`` \n Configures the transient period capability to be considered for EVM measurements. :param period: OFF: default capability (long transient period) US2 | US4 | US7: short transient period of 2 µs, 4 µs or 7 µs. """ param = Conversions.enum_scalar_to_str(period, enums.Tperiod) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:TPERiod {param}')
[docs] def get_da_receiver(self) -> bool: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:DAReceiver`` \n Snippet: ``value: bool = driver.configure.nrSubMeas.multiEval.modulation.get_da_receiver()`` \n Enables the dual antenna receiver for measurements with two antennas. This setting selects how the signals of the two antennas are processed for the calculation of modulation results provided per layer / antenna. :return: enable: OFF | ON \n - OFF: The results are derived per antenna. - ON: The results are derived per layer from the combination of both antenna signals. """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:DAReceiver?') return Conversions.str_to_bool(response)
[docs] def set_da_receiver(self, enable: bool) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:DAReceiver`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.modulation.set_da_receiver(enable = False)`` \n Enables the dual antenna receiver for measurements with two antennas. This setting selects how the signals of the two antennas are processed for the calculation of modulation results provided per layer / antenna. :param enable: OFF | ON \n - OFF: The results are derived per antenna. - ON: The results are derived per layer from the combination of both antenna signals. """ param = Conversions.bool_to_str(enable) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:MODulation:DAReceiver {param}')
def clone(self) -> 'ModulationCls': """ 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 = ModulationCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group