Source code for RsSmbv.Implementations.Source.Iq.Output.Analog.Bias

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


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

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

	@property
	def coupling(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_coupling'):
			from .Coupling import CouplingCls
			self._coupling = CouplingCls(self._core, self._cmd_group)
		return self._coupling

[docs] def get_icomponent(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:BIAS:I`` \n Snippet: ``value: float = driver.source.iq.output.analog.bias.get_icomponent()`` \n Specifies the amplifier bias Vbias of the respective I or Q component. The value range is adjusted so that the maximum overall output voltage does not exceed 4V, see 'Maximum overall output voltage'. """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:BIAS:I?') return Conversions.str_to_float(response)
[docs] def set_icomponent(self, ipart: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:BIAS:I`` \n Snippet: ``driver.source.iq.output.analog.bias.set_icomponent(ipart = 1.0)`` \n Specifies the amplifier bias Vbias of the respective I or Q component. The value range is adjusted so that the maximum overall output voltage does not exceed 4V, see 'Maximum overall output voltage'. :param ipart: float Range: -3.6V to 3.6V , Unit: V """ param = Conversions.decimal_value_to_str(ipart) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:BIAS:I {param}')
[docs] def get_qcomponent(self) -> float: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:BIAS:Q`` \n Snippet: ``value: float = driver.source.iq.output.analog.bias.get_qcomponent()`` \n Specifies the amplifier bias Vbias of the respective I or Q component. The value range is adjusted so that the maximum overall output voltage does not exceed 4V, see 'Maximum overall output voltage'. """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:BIAS:Q?') return Conversions.str_to_float(response)
[docs] def set_qcomponent(self, qpart: float) -> None: """ ``[SOURce<HW>]:IQ:OUTPut:[ANALog]:BIAS:Q`` \n Snippet: ``driver.source.iq.output.analog.bias.set_qcomponent(qpart = 1.0)`` \n Specifies the amplifier bias Vbias of the respective I or Q component. The value range is adjusted so that the maximum overall output voltage does not exceed 4V, see 'Maximum overall output voltage'. :param qpart: float Range: -3.6V to 3.6V , Unit: V """ param = Conversions.decimal_value_to_str(qpart) self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:BIAS:Q {param}')
def clone(self) -> 'BiasCls': """ 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 = BiasCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group