Source code for RsSmw.Implementations.Source.Bb.Arbitrary.Tsignal.Ciq

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


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

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

	@property
	def create(self):
		"""
		| Commands in total: 2
		| Subgroups: 0
		| Direct child commands: 2
		"""
		if not hasattr(self, '_create'):
			from .Create import CreateCls
			self._create = CreateCls(self._core, self._cmd_group)
		return self._create

[docs] def get_icomponent(self) -> float: """ ``[SOURce<HW>]:BB:ARBitrary:TSIGnal:CIQ:I`` \n Snippet: ``value: float = driver.source.bb.arbitrary.tsignal.ciq.get_icomponent()`` \n Sets the value for the I and Q component of the test signal """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:TSIGnal:CIQ:I?') return Conversions.str_to_float(response)
[docs] def set_icomponent(self, ipart: float) -> None: """ ``[SOURce<HW>]:BB:ARBitrary:TSIGnal:CIQ:I`` \n Snippet: ``driver.source.bb.arbitrary.tsignal.ciq.set_icomponent(ipart = 1.0)`` \n Sets the value for the I and Q component of the test signal :param ipart: float Range: -1 to 1, Unit: FS """ param = Conversions.decimal_value_to_str(ipart) self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:TSIGnal:CIQ:I {param}')
[docs] def get_qcomponent(self) -> float: """ ``[SOURce<HW>]:BB:ARBitrary:TSIGnal:CIQ:Q`` \n Snippet: ``value: float = driver.source.bb.arbitrary.tsignal.ciq.get_qcomponent()`` \n Sets the value for the I and Q component of the test signal :return: tsig: float Range: -1 to 1, Unit: FS """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ARBitrary:TSIGnal:CIQ:Q?') return Conversions.str_to_float(response)
[docs] def set_qcomponent(self, tsig: float) -> None: """ ``[SOURce<HW>]:BB:ARBitrary:TSIGnal:CIQ:Q`` \n Snippet: ``driver.source.bb.arbitrary.tsignal.ciq.set_qcomponent(tsig = 1.0)`` \n Sets the value for the I and Q component of the test signal :param tsig: float Range: -1 to 1, Unit: FS """ param = Conversions.decimal_value_to_str(tsig) self._core.io.write(f'SOURce<HwInstance>:BB:ARBitrary:TSIGnal:CIQ:Q {param}')
def clone(self) -> 'CiqCls': """ 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 = CiqCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group