Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Signal.Value

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


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

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

[docs] def set(self, signal_type: enums.DdemSignalType) -> None: """ ``[SENSe]:DDEMod:SIGNal[:VALue]`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.signal.value.set(signal_type = enums.DdemSignalType.BURSted)`` \n No help available :param signal_type: CONTinuous | BURSted """ param = Conversions.enum_scalar_to_str(signal_type, enums.DdemSignalType) self._core.io.write(f'SENSe:DDEMod:SIGNal:VALue {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.DdemSignalType: """ ``[SENSe]:DDEMod:SIGNal[:VALue]`` \n Snippet: ``value: enums.DdemSignalType = driver.applications.k70Vsa.sense.ddemod.signal.value.get()`` \n No help available :return: signal_type: CONTinuous | BURSted """ response = self._core.io.query_str(f'SENSe:DDEMod:SIGNal:VALue?') return Conversions.str_to_scalar_enum(response, enums.DdemSignalType)