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
[docs]class AbsoluteCls: """Absolute commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("absolute", core, parent)
[docs] def set(self, level: float) -> None: """SCPI: 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. \n :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: """SCPI: 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. \n :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)