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