Source code for rsmxo.Implementations.Franalysis.Measurement.Delay.Period

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


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

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

[docs] def get_number(self) -> float: """ ``FRANalysis:MEASurement:DELay:PERiod[:NUMBer]`` \n Snippet: ``value: float = driver.franalysis.measurement.delay.period.get_number()`` \n Sets a period delay, which the system waits before measuring the next point of the plot. The settings takes effect if if method ``RsMxo.franalysis.measurement.delay.state()`` = ON and method ``RsMxo.franalysis.measurement.delay.mode()`` = PERiod. :return: meas_delay_period: 0.01 to 1000 """ response = self._core.io.query_str('FRANalysis:MEASurement:DELay:PERiod:NUMBer?') return Conversions.str_to_float(response)
[docs] def set_number(self, meas_delay_period: float) -> None: """ ``FRANalysis:MEASurement:DELay:PERiod[:NUMBer]`` \n Snippet: ``driver.franalysis.measurement.delay.period.set_number(meas_delay_period = 1.0)`` \n Sets a period delay, which the system waits before measuring the next point of the plot. The settings takes effect if if method ``RsMxo.franalysis.measurement.delay.state()`` = ON and method ``RsMxo.franalysis.measurement.delay.mode()`` = PERiod. :param meas_delay_period: 0.01 to 1000 """ param = Conversions.decimal_value_to_str(meas_delay_period) self._core.io.write(f'FRANalysis:MEASurement:DELay:PERiod:NUMBer {param}')