from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SumCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sum", core, parent)
[docs]
def get_pep(self) -> float:
"""
``[SOURce<HW>]:AWGN:POWer:SUM:PEP`` \n
Snippet: ``value: float = driver.source.awgn.power.sum.get_pep()`` \n
Queries the peak envelope power of the overall signal comprised of noise signal plus useful signal.
:return: pep: float Range: -145 to 20
"""
response = self._core.io.query_str('SOURce<HwInstance>:AWGN:POWer:SUM:PEP?')
return Conversions.str_to_float(response)
[docs]
def get_value(self) -> float:
"""
``[SOURce<HW>]:AWGN:POWer:SUM`` \n
Snippet: ``value: float = driver.source.awgn.power.sum.get_value()`` \n
Queries the overall power of the noise/interferer signal plus useful signal
:return: sum: float Range: -145 to 20
"""
response = self._core.io.query_str('SOURce<HwInstance>:AWGN:POWer:SUM?')
return Conversions.str_to_float(response)