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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class VccCls:
	"""
	| Commands in total: 5
	| Subgroups: 1
	| Direct child commands: 3
	"""

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

	@property
	def value(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_value'):
			from .Value import ValueCls
			self._value = ValueCls(self._core, self._cmd_group)
		return self._value

[docs] def get_max(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VCC:MAX`` \n Snippet: ``value: float = driver.source.iq.output.analog.envelope.vcc.get_max()`` \n Sets the maximum value of the supply voltage Vcc. :return: vcc_max: float Range: 0.04 to 8 """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VCC:MAX?') return Conversions.str_to_float(response)
[docs] def set_max(self, vcc_max: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VCC:MAX`` \n Snippet: ``driver.source.iq.output.analog.envelope.vcc.set_max(vcc_max = 1.0)`` \n Sets the maximum value of the supply voltage Vcc. :param vcc_max: float Range: 0.04 to 8 """ param = Conversions.decimal_value_to_str(vcc_max) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VCC:MAX {param}')
[docs] def get_min(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VCC:MIN`` \n Snippet: ``value: float = driver.source.iq.output.analog.envelope.vcc.get_min()`` \n Sets the maximum value of the supply voltage Vcc. """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VCC:MIN?') return Conversions.str_to_float(response)
[docs] def set_min(self, vcc_min: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VCC:MIN`` \n Snippet: ``driver.source.iq.output.analog.envelope.vcc.set_min(vcc_min = 1.0)`` \n Sets the maximum value of the supply voltage Vcc. :param vcc_min: float Range: 0.04 to 8 """ param = Conversions.decimal_value_to_str(vcc_min) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VCC:MIN {param}')
[docs] def get_offset(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VCC:OFFSet`` \n Snippet: ``value: float = driver.source.iq.output.analog.envelope.vcc.get_offset()`` \n Applies a voltage offset on the supply voltage Vcc. :return: vcc_offset: float Range: 0 to 30, Unit: mV """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VCC:OFFSet?') return Conversions.str_to_float(response)
[docs] def set_offset(self, vcc_offset: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:ENVelope:VCC:OFFSet`` \n Snippet: ``driver.source.iq.output.analog.envelope.vcc.set_offset(vcc_offset = 1.0)`` \n Applies a voltage offset on the supply voltage Vcc. :param vcc_offset: float Range: 0 to 30, Unit: mV """ param = Conversions.decimal_value_to_str(vcc_offset) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:ENVelope:VCC:OFFSet {param}')
def clone(self) -> 'VccCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = VccCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group