Source code for RsFsw.Implementations.Calibration.Aiq.DcOffset.Qcomponent

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


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

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

[docs] def set(self, offset: float) -> None: """ ``CALibration:AIQ:DCOFfset:Q`` \n Snippet: ``driver.calibration.aiq.dcOffset.qcomponent.set(offset = 1.0)`` \n Defines a DC offset of the Q input from the 'Analog Baseband' interface (FSW-B71) . :param offset: numeric value DC offset Unit: V """ param = Conversions.decimal_value_to_str(offset) self._core.io.write(f'CALibration:AIQ:DCOFfset:Q {param}')
[docs] def get(self) -> float: """ ``CALibration:AIQ:DCOFfset:Q`` \n Snippet: ``value: float = driver.calibration.aiq.dcOffset.qcomponent.get()`` \n Defines a DC offset of the Q input from the 'Analog Baseband' interface (FSW-B71) . :return: offset: numeric value DC offset Unit: V """ response = self._core.io.query_str(f'CALibration:AIQ:DCOFfset:Q?') return Conversions.str_to_float(response)