Source code for RsSmbv.Implementations.Source.Awgn.Power.Sum

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SumCls: """Sum commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("sum", core, parent)
[docs] def get_pep(self) -> float: """SCPI: [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. \n :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: """SCPI: [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 \n :return: sum: float Range: -145 to 20 """ response = self._core.io.query_str('SOURce<HwInstance>:AWGN:POWer:SUM?') return Conversions.str_to_float(response)