from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class IcomponentCls:
"""Icomponent commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("icomponent", core, parent)
[docs] def set(self, offset: float) -> None:
"""SCPI: CALibration:AIQ:DCOFfset:I \n
Snippet: driver.applications.k10Xlte.calibration.aiq.dcOffset.icomponent.set(offset = 1.0) \n
Defines a DC offset of the I 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:I {param}')
[docs] def get(self) -> float:
"""SCPI: CALibration:AIQ:DCOFfset:I \n
Snippet: value: float = driver.applications.k10Xlte.calibration.aiq.dcOffset.icomponent.get() \n
Defines a DC offset of the I 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:I?')
return Conversions.str_to_float(response)