Source code for RsSmw.Implementations.Source.Iq.Dpd.InputPy
from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class InputPyCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("inputPy", core, parent)
[docs]
def get_cfactor(self) -> float:
"""
``[SOURce<HW>]:IQ:DPD:INPut:CFACtor`` \n
Snippet: ``value: float = driver.source.iq.dpd.inputPy.get_cfactor()`` \n
Queries the measured values the before and after the enabled digital predistortion.
:return: crest_factor: float The query returns -1000 if the calculation is impossible or there are no measurements results available.
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:INPut:CFACtor?')
return Conversions.str_to_float(response)
[docs]
def get_level(self) -> float:
"""
``[SOURce<HW>]:IQ:DPD:INPut:LEVel`` \n
Snippet: ``value: float = driver.source.iq.dpd.inputPy.get_level()`` \n
Queries the measured values the before and after the enabled digital predistortion.
:return: level: float The query returns -1000 if the calculation is impossible or there are no measurements results available.
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:INPut:LEVel?')
return Conversions.str_to_float(response)
[docs]
def get_pep(self) -> float:
"""
``[SOURce<HW>]:IQ:DPD:INPut:PEP`` \n
Snippet: ``value: float = driver.source.iq.dpd.inputPy.get_pep()`` \n
Queries the measured values the before and after the enabled digital predistortion.
:return: pep: float The query returns -1000 if the calculation is impossible or there are no measurements results available.
"""
response = self._core.io.query_str('SOURce<HwInstance>:IQ:DPD:INPut:PEP?')
return Conversions.str_to_float(response)