Source code for RsSmw.Implementations.Source.Iq.Output.Analog.Envelope.Vpp

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


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

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

[docs] def get_max(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VPP:[MAX]`` \n Snippet: ``value: float = driver.source.iq.output.analog.envelope.vpp.get_max()`` \n Set the maximum value of the driving voltage Vpp of the used external DC modulator. :return: vpp_max: float Range: 0.02 V to 8 V (R&S SMW-B10) / 0.04 V to 4 V (R&S SMW-B9) , Unit: V """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VPP:MAX?') return Conversions.str_to_float(response)
[docs] def set_max(self, vpp_max: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VPP:[MAX]`` \n Snippet: ``driver.source.iq.output.analog.envelope.vpp.set_max(vpp_max = 1.0)`` \n Set the maximum value of the driving voltage Vpp of the used external DC modulator. :param vpp_max: float Range: 0.02 V to 8 V (R&S SMW-B10) / 0.04 V to 4 V (R&S SMW-B9) , Unit: V """ param = Conversions.decimal_value_to_str(vpp_max) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VPP:MAX {param}')