Source code for RsSmw.Implementations.Source.Iq.Impairment.Leakage

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


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

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

[docs] def get_icomponent(self) -> float: """ ``[SOURce<HW>]:IQ:IMPairment:LEAKage:I`` \n Snippet: ``value: float = driver.source.iq.impairment.leakage.get_icomponent()`` \n Determines the leakage amplitude of the I or Q signal component of the corresponding stream """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:IMPairment:LEAKage:I?') return Conversions.str_to_float(response)
[docs] def set_icomponent(self, ipart: float) -> None: """ ``[SOURce<HW>]:IQ:IMPairment:LEAKage:I`` \n Snippet: ``driver.source.iq.impairment.leakage.set_icomponent(ipart = 1.0)`` \n Determines the leakage amplitude of the I or Q signal component of the corresponding stream :param ipart: float Range: -10 to 10 """ param = Conversions.decimal_value_to_str(ipart) self._core.io.write(f'SOURce<HwInstance>:IQ:IMPairment:LEAKage:I {param}')
[docs] def get_qcomponent(self) -> float: """ ``[SOURce<HW>]:IQ:IMPairment:LEAKage:Q`` \n Snippet: ``value: float = driver.source.iq.impairment.leakage.get_qcomponent()`` \n Determines the leakage amplitude of the I or Q signal component of the corresponding stream """ response = self._core.io.query_str('SOURce<HwInstance>:IQ:IMPairment:LEAKage:Q?') return Conversions.str_to_float(response)
[docs] def set_qcomponent(self, qpart: float) -> None: """ ``[SOURce<HW>]:IQ:IMPairment:LEAKage:Q`` \n Snippet: ``driver.source.iq.impairment.leakage.set_qcomponent(qpart = 1.0)`` \n Determines the leakage amplitude of the I or Q signal component of the corresponding stream :param qpart: float Range: -10 to 10 """ param = Conversions.decimal_value_to_str(qpart) self._core.io.write(f'SOURce<HwInstance>:IQ:IMPairment:LEAKage:Q {param}')