Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.Limit.SeMask.Ttolerance

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.Types import DataType
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
from .......Internal.ArgSingleList import ArgSingleList
from .......Internal.ArgSingle import ArgSingle


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

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

[docs] def set(self, test_tol_sub_3_ghz: float, test_tol_sub_4_ghz: float, test_tol_sub_6_gh_z: float) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:TTOLerance`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.limit.seMask.ttolerance.set(test_tol_sub_3_ghz = 1.0, test_tol_sub_4_ghz = 1.0, test_tol_sub_6_gh_z = 1.0)`` \n Defines the test tolerance for spectrum emission masks, depending on the center frequency. :param test_tol_sub_3_ghz: Test tolerance for center frequencies ≤ 3 GHz :param test_tol_sub_4_ghz: Test tolerance for center frequencies 3 GHz and ≤ 4.2 GHz :param test_tol_sub_6_gh_z: Test tolerance for center frequencies 4.2 GHz """ param = ArgSingleList().compose_cmd_string(ArgSingle('test_tol_sub_3_ghz', test_tol_sub_3_ghz, DataType.Float), ArgSingle('test_tol_sub_4_ghz', test_tol_sub_4_ghz, DataType.Float), ArgSingle('test_tol_sub_6_gh_z', test_tol_sub_6_gh_z, DataType.Float)) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:TTOLerance {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class TtoleranceStruct(StructBase): """ Response structure. Fields: \n - 1 Test_Tol_Sub_3_Ghz: float: Test tolerance for center frequencies ≤ 3 GHz - 2 Test_Tol_Sub_4_Ghz: float: Test tolerance for center frequencies 3 GHz and ≤ 4.2 GHz - 3 Test_Tol_Sub_6_Gh_Z: float: Test tolerance for center frequencies 4.2 GHz """ __meta_args_list = [ ArgStruct.scalar_float('Test_Tol_Sub_3_Ghz'), ArgStruct.scalar_float('Test_Tol_Sub_4_Ghz'), ArgStruct.scalar_float('Test_Tol_Sub_6_Gh_Z')] def __init__(self): StructBase.__init__(self, self) self.Test_Tol_Sub_3_Ghz: float = None self.Test_Tol_Sub_4_Ghz: float = None self.Test_Tol_Sub_6_Gh_Z: float = None
[docs] def get(self) -> TtoleranceStruct: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:TTOLerance`` \n Snippet: ``value: TtoleranceStruct = driver.configure.nrSubMeas.multiEval.limit.seMask.ttolerance.get()`` \n Defines the test tolerance for spectrum emission masks, depending on the center frequency. :return: structure: for return value, see the help for TtoleranceStruct structure arguments. """ return self._core.io.query_struct(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:LIMit:SEMask:TTOLerance?', self.__class__.TtoleranceStruct())