from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class OffsetCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("offset", core, parent)
[docs]
def get_icomponent(self) -> float:
"""
``[SOURce<HW>]:IQ:OUTPut:[ANALog]:OFFSet:I`` \n
Snippet: ``value: float = driver.source.iq.output.analog.offset.get_icomponent()`` \n
Sets an offset Voffset between the inverting and non-inverting input of the differential analog I/Q output signal.
To keep the I/Q analog output power levels below the maximum input power level at your DUT, see 'Maximum overall output
voltage'. For more information, refer to the specifications document.
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:OFFSet:I?')
return Conversions.str_to_float(response)
[docs]
def set_icomponent(self, ipart: float) -> None:
"""
``[SOURce<HW>]:IQ:OUTPut:[ANALog]:OFFSet:I`` \n
Snippet: ``driver.source.iq.output.analog.offset.set_icomponent(ipart = 1.0)`` \n
Sets an offset Voffset between the inverting and non-inverting input of the differential analog I/Q output signal.
To keep the I/Q analog output power levels below the maximum input power level at your DUT, see 'Maximum overall output
voltage'. For more information, refer to the specifications document.
:param ipart: float Range: (-4+Vp/2+Vbias/2) ,V to (4-Vp/2-Vbias/2) ,V (R&S SMW-B10) / (-2+Vp) ,V to (2-Vp) ,V (R&S SMW-B9) , Unit: V
"""
param = Conversions.decimal_value_to_str(ipart)
self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:OFFSet:I {param}')
[docs]
def get_qcomponent(self) -> float:
"""
``[SOURce<HW>]:IQ:OUTPut:[ANALog]:OFFSet:Q`` \n
Snippet: ``value: float = driver.source.iq.output.analog.offset.get_qcomponent()`` \n
Sets an offset Voffset between the inverting and non-inverting input of the differential analog I/Q output signal.
To keep the I/Q analog output power levels below the maximum input power level at your DUT, see 'Maximum overall output
voltage'. For more information, refer to the specifications document.
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:OUTPut:ANALog:OFFSet:Q?')
return Conversions.str_to_float(response)
[docs]
def set_qcomponent(self, qpart: float) -> None:
"""
``[SOURce<HW>]:IQ:OUTPut:[ANALog]:OFFSet:Q`` \n
Snippet: ``driver.source.iq.output.analog.offset.set_qcomponent(qpart = 1.0)`` \n
Sets an offset Voffset between the inverting and non-inverting input of the differential analog I/Q output signal.
To keep the I/Q analog output power levels below the maximum input power level at your DUT, see 'Maximum overall output
voltage'. For more information, refer to the specifications document.
:param qpart: float Range: (-4+Vp/2+Vbias/2) ,V to (4-Vp/2-Vbias/2) ,V (R&S SMW-B10) / (-2+Vp) ,V to (2-Vp) ,V (R&S SMW-B9) , Unit: V
"""
param = Conversions.decimal_value_to_str(qpart)
self._core.io.write(f'SOURce<HwInstance>:IQ:OUTPut:ANALog:OFFSet:Q {param}')