Source code for RsFsw.Implementations.Applications.K50_Spurious.Sense.Directed.Pexcursion

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


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

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

[docs] def set(self, peak_exc: float) -> None: """ ``[SENSe]:DIRected:PEXCursion`` \n Snippet: ``driver.applications.k50Spurious.sense.directed.pexcursion.set(peak_exc = 1.0)`` \n Defines the minimum level value by which the signal must rise or fall after a detected spur so that a new spur is detected. :param peak_exc: Range: 0 to 100, Unit: DB """ param = Conversions.decimal_value_to_str(peak_exc) self._core.io.write(f'SENSe:DIRected:PEXCursion {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DIRected:PEXCursion`` \n Snippet: ``value: float = driver.applications.k50Spurious.sense.directed.pexcursion.get()`` \n Defines the minimum level value by which the signal must rise or fall after a detected spur so that a new spur is detected. :return: peak_exc: Range: 0 to 100, Unit: DB """ response = self._core.io.query_str(f'SENSe:DIRected:PEXCursion?') return Conversions.str_to_float(response)