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

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


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

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

[docs] def get_max(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:PIN:MAX`` \n Snippet: ``value: float = driver.source.iq.output.analog.envelope.pin.get_max()`` \n Sets the maximum value of the input power Pin. :return: pin_max: float Range: -145 to 20 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:PIN:MAX?') return Conversions.str_to_float(response)
[docs] def set_max(self, pin_max: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:PIN:MAX`` \n Snippet: ``driver.source.iq.output.analog.envelope.pin.set_max(pin_max = 1.0)`` \n Sets the maximum value of the input power Pin. :param pin_max: float Range: -145 to 20 """ param = Conversions.decimal_value_to_str(pin_max) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:PIN:MAX {param}')
[docs] def get_min(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:PIN:MIN`` \n Snippet: ``value: float = driver.source.iq.output.analog.envelope.pin.get_min()`` \n Sets the minimum value of the input power Pin. :return: pin_min: float Range: -145 to 20 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:PIN:MIN?') return Conversions.str_to_float(response)
[docs] def set_min(self, pin_min: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:PIN:MIN`` \n Snippet: ``driver.source.iq.output.analog.envelope.pin.set_min(pin_min = 1.0)`` \n Sets the minimum value of the input power Pin. :param pin_min: float Range: -145 to 20 """ param = Conversions.decimal_value_to_str(pin_min) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:PIN:MIN {param}')