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

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


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

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

[docs] def set(self, level: float) -> None: """ ``TRIGger[:SEQuence]:LEVel:FM`` \n Snippet: ``driver.trigger.sequence.level.fm.set(level = 1.0)`` \n The command sets the level when FM-modulated 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: -10 to +10, Unit: MHz """ param = Conversions.decimal_value_to_str(level) self._core.io.write(f'TRIGger:SEQuence:LEVel:FM {param}')
[docs] def get(self) -> float: """ ``TRIGger[:SEQuence]:LEVel:FM`` \n Snippet: ``value: float = driver.trigger.sequence.level.fm.get()`` \n The command sets the level when FM-modulated 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: -10 to +10, Unit: MHz """ response = self._core.io.query_str(f'TRIGger:SEQuence:LEVel:FM?') return Conversions.str_to_float(response)