Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Psweep.Y.Setting

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


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

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

[docs] def set(self, setting: enums.PsweepSetting) -> None: """ ``CONFigure:PSWeep:Y:SETTing`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.psweep.y.setting.set(setting = enums.PsweepSetting.BIAS)`` \n This command selects the parameter type for the second parameter controlled by the parameter sweep. :param setting: BIAS Controls the envelope bias. DELay Controls the delay between envelope and RF signal. FREQuency Controls the frequency. POWer Controls the output level. """ param = Conversions.enum_scalar_to_str(setting, enums.PsweepSetting) self._core.io.write(f'CONFigure:PSWeep:Y:SETTing {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.PsweepSetting: """ ``CONFigure:PSWeep:Y:SETTing`` \n Snippet: ``value: enums.PsweepSetting = driver.applications.k18AmplifierEt.configure.psweep.y.setting.get()`` \n This command selects the parameter type for the second parameter controlled by the parameter sweep. :return: setting: BIAS Controls the envelope bias. DELay Controls the delay between envelope and RF signal. FREQuency Controls the frequency. POWer Controls the output level. """ response = self._core.io.query_str(f'CONFigure:PSWeep:Y:SETTing?') return Conversions.str_to_scalar_enum(response, enums.PsweepSetting)