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
[docs]class QcomponentCls: """Qcomponent commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("qcomponent", core, parent)
[docs] def set(self, offset: float) -> None: """SCPI: 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) . \n :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: """SCPI: 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) . \n :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)