Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.Limit.Qpsk

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class QpskCls:
	"""
	| Commands in total: 8
	| Subgroups: 5
	| Direct child commands: 2
	"""

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

	@property
	def evMagnitude(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_evMagnitude'):
			from .EvMagnitude import EvMagnitudeCls
			self._evMagnitude = EvMagnitudeCls(self._core, self._cmd_group)
		return self._evMagnitude

	@property
	def merror(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_merror'):
			from .Merror import MerrorCls
			self._merror = MerrorCls(self._core, self._cmd_group)
		return self._merror

	@property
	def perror(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_perror'):
			from .Perror import PerrorCls
			self._perror = PerrorCls(self._core, self._cmd_group)
		return self._perror

	@property
	def iqOffset(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_iqOffset'):
			from .IqOffset import IqOffsetCls
			self._iqOffset = IqOffsetCls(self._core, self._cmd_group)
		return self._iqOffset

	@property
	def ibe(self):
		"""
		| Commands in total: 2
		| Subgroups: 1
		| Direct child commands: 1
		"""
		if not hasattr(self, '_ibe'):
			from .Ibe import IbeCls
			self._ibe = IbeCls(self._core, self._cmd_group)
		return self._ibe

[docs] def get_freq_error(self) -> float | bool: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:QPSK:FERRor`` \n Snippet: ``value: float | bool = driver.configure.nrSubMeas.multiEval.limit.qpsk.get_freq_error()`` \n Defines an upper limit for the carrier frequency error (QPSK modulation) . :return: frequency_error: (float or boolean) numeric | ON | OFF """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:QPSK:FERRor?') return Conversions.str_to_float_or_bool(response)
[docs] def set_freq_error(self, frequency_error: float | bool) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:QPSK:FERRor`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.limit.qpsk.set_freq_error(frequency_error = 1.0)`` \n Defines an upper limit for the carrier frequency error (QPSK modulation) . :param frequency_error: (float or boolean) numeric | ON | OFF """ param = Conversions.decimal_or_bool_value_to_str(frequency_error) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:QPSK:FERRor {param}')
# noinspection PyTypeChecker
[docs] class EsFlatnessStruct(StructBase): """ Structure for setting input parameters. Fields: \n - Enable: bool: OFF: disables the limit check ON: enables the limit check - Range_1: float: Upper limit for max(range 1) - min(range 1) - Range_2: float: Upper limit for max(range 2) - min(range 2) - Max_1_Min_2: float: Upper limit for max(range 1) - min(range 2) - Max_2_Min_1: float: Upper limit for max(range 2) - min(range 1) - Edge_Frequency: float: Band edge distance of border between range 1 and range 2 """ __meta_args_list = [ ArgStruct.scalar_bool('Enable'), ArgStruct.scalar_float('Range_1'), ArgStruct.scalar_float('Range_2'), ArgStruct.scalar_float('Max_1_Min_2'), ArgStruct.scalar_float('Max_2_Min_1'), ArgStruct.scalar_float('Edge_Frequency')] def __init__(self): StructBase.__init__(self, self) self.Enable: bool=None self.Range_1: float=None self.Range_2: float=None self.Max_1_Min_2: float=None self.Max_2_Min_1: float=None self.Edge_Frequency: float=None
[docs] def get_es_flatness(self) -> EsFlatnessStruct: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:QPSK:ESFLatness`` \n Snippet: ``value: EsFlatnessStruct = driver.configure.nrSubMeas.multiEval.limit.qpsk.get_es_flatness()`` \n Defines limits for the equalizer spectrum flatness (QPSK modulation) . :return: structure: for return value, see the help for EsFlatnessStruct structure arguments. """ return self._core.io.query_struct('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:QPSK:ESFLatness?', self.__class__.EsFlatnessStruct())
[docs] def set_es_flatness(self, value: EsFlatnessStruct) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:QPSK:ESFLatness`` \n Snippet with structure: \n structure = driver.configure.nrSubMeas.multiEval.limit.qpsk.EsFlatnessStruct() \n structure.Enable: bool = False \n structure.Range_1: float = 1.0 \n structure.Range_2: float = 1.0 \n structure.Max_1_Min_2: float = 1.0 \n structure.Max_2_Min_1: float = 1.0 \n structure.Edge_Frequency: float = 1.0 \n driver.configure.nrSubMeas.multiEval.limit.qpsk.set_es_flatness(value = structure) \n Defines limits for the equalizer spectrum flatness (QPSK modulation) . :param value: see the help for EsFlatnessStruct structure arguments. """ self._core.io.write_struct('CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:QPSK:ESFLatness', value)
def clone(self) -> 'QpskCls': """ 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 = QpskCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group