from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class StopCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("stop", core, parent)
[docs]
def set(self, stop: float) -> None:
"""
``CONFigure:PSWeep:X:STOP`` \n
Snippet: ``driver.applications.k18AmplifierEt.configure.psweep.x.stop.set(stop = 1.0)`` \n
This command defines the stop value for the first parameter controlled by the parameter sweep.
:param stop: numeric value whose unit depends on the parameter type you have selected with method ``RsFsw.applications.k18AmplifierEt.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(stop)
self._core.io.write(f'CONFigure:PSWeep:X:STOP {param}')
[docs]
def get(self) -> float:
"""
``CONFigure:PSWeep:X:STOP`` \n
Snippet: ``value: float = driver.applications.k18AmplifierEt.configure.psweep.x.stop.get()`` \n
This command defines the stop value for the first parameter controlled by the parameter sweep.
:return: stop: numeric value whose unit depends on the parameter type you have selected with method ``RsFsw.applications.k18AmplifierEt.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:STOP?')
return Conversions.str_to_float(response)