Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Psweep.X.Start

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class StartCls: """Start commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("start", core, parent)
[docs] def set(self, start: float) -> None: """SCPI: CONFigure:PSWeep:X:STARt \n Snippet: driver.applications.k18AmplifierEt.configure.psweep.x.start.set(start = 1.0) \n This command defines the start value for the first parameter controlled by the parameter sweep. \n :param start: numeric value whose unit depends on the parameter type you have selected with method RsFsw.Applications.K18_AmplifierEt.Configure.Psweep.Y.Setting.set: - Hz in case of the center frequency - dBm in case of the output level - s in case of the delay between envelope and RF signal - V in case of the envelope bias """ param = Conversions.decimal_value_to_str(start) self._core.io.write(f'CONFigure:PSWeep:X:STARt {param}')
[docs] def get(self) -> float: """SCPI: CONFigure:PSWeep:X:STARt \n Snippet: value: float = driver.applications.k18AmplifierEt.configure.psweep.x.start.get() \n This command defines the start value for the first parameter controlled by the parameter sweep. \n :return: start: numeric value whose unit depends on the parameter type you have selected with method RsFsw.Applications.K18_AmplifierEt.Configure.Psweep.Y.Setting.set: - Hz in case of the center frequency - dBm in case of the output level - s in case of the delay between envelope and RF signal - V in case of the envelope bias""" response = self._core.io.query_str(f'CONFigure:PSWeep:X:STARt?') return Conversions.str_to_float(response)