Source code for RsFsw.Implementations.Trigger.Sequence.Level.Am.Absolute

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


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

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

[docs] def set(self, level: float) -> None: """ ``TRIGger[:SEQuence]:LEVel:AM[:ABSolute]`` \n Snippet: ``driver.trigger.sequence.level.am.absolute.set(level = 1.0)`` \n The command sets the level when RF power signals are used as trigger source. For triggering to be successful, the measurement time must cover at least 5 periods of the audio signal. :param level: Range: -100 to +30, Unit: dBm """ param = Conversions.decimal_value_to_str(level) self._core.io.write(f'TRIGger:SEQuence:LEVel:AM:ABSolute {param}')
[docs] def get(self) -> float: """ ``TRIGger[:SEQuence]:LEVel:AM[:ABSolute]`` \n Snippet: ``value: float = driver.trigger.sequence.level.am.absolute.get()`` \n The command sets the level when RF power signals are used as trigger source. For triggering to be successful, the measurement time must cover at least 5 periods of the audio signal. :return: level: Range: -100 to +30, Unit: dBm """ response = self._core.io.query_str(f'TRIGger:SEQuence:LEVel:AM:ABSolute?') return Conversions.str_to_float(response)