Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.MultiEval.Scount.Spectrum

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


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

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

[docs] def get_se_mask(self) -> int: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:SCOunt:SPECtrum:SEMask`` \n Snippet: ``value: int = driver.configure.nrSubMeas.multiEval.scount.spectrum.get_se_mask()`` \n Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per single shot. Separate statistic counts for ACLR and spectrum emission mask measurements are supported. :return: statistic_count: Number of measurement intervals (slots) """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:SCOunt:SPECtrum:SEMask?') return Conversions.str_to_int(response)
[docs] def set_se_mask(self, statistic_count: int) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:SCOunt:SPECtrum:SEMask`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.scount.spectrum.set_se_mask(statistic_count = 1)`` \n Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per single shot. Separate statistic counts for ACLR and spectrum emission mask measurements are supported. :param statistic_count: Number of measurement intervals (slots) """ param = Conversions.decimal_value_to_str(statistic_count) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:SCOunt:SPECtrum:SEMask {param}')
[docs] def get_aclr(self) -> int: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:SCOunt:SPECtrum:ACLR`` \n Snippet: ``value: int = driver.configure.nrSubMeas.multiEval.scount.spectrum.get_aclr()`` \n Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per single shot. Separate statistic counts for ACLR and spectrum emission mask measurements are supported. :return: statistic_count: Number of measurement intervals (slots) """ response = self._core.io.query_str('CONFigure:NRSub:MEASurement<Instance>:MEValuation:SCOunt:SPECtrum:ACLR?') return Conversions.str_to_int(response)
[docs] def set_aclr(self, statistic_count: int) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>:MEValuation:SCOunt:SPECtrum:ACLR`` \n Snippet: ``driver.configure.nrSubMeas.multiEval.scount.spectrum.set_aclr(statistic_count = 1)`` \n Specifies the statistic count of the measurement. The statistic count is equal to the number of measurement intervals per single shot. Separate statistic counts for ACLR and spectrum emission mask measurements are supported. :param statistic_count: Number of measurement intervals (slots) """ param = Conversions.decimal_value_to_str(statistic_count) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:MEValuation:SCOunt:SPECtrum:ACLR {param}')