Source code for RsFsw.Implementations.Trigger.Sequence.TdTrigger.Level

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


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

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

[docs] def set(self, trigger_level: float) -> None: """ ``TRIGger[:SEQuence]:TDTRigger:LEVel`` \n Snippet: ``driver.trigger.sequence.tdTrigger.level.set(trigger_level = 1.0)`` \n Sets the trigger level for the time domain trigger. :param trigger_level: Unit: dBm """ param = Conversions.decimal_value_to_str(trigger_level) self._core.io.write(f'TRIGger:SEQuence:TDTRigger:LEVel {param}')
[docs] def get(self) -> float: """ ``TRIGger[:SEQuence]:TDTRigger:LEVel`` \n Snippet: ``value: float = driver.trigger.sequence.tdTrigger.level.get()`` \n Sets the trigger level for the time domain trigger. :return: trigger_level: Unit: dBm """ response = self._core.io.query_str(f'TRIGger:SEQuence:TDTRigger:LEVel?') return Conversions.str_to_float(response)