from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RelativeCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("relative", core, parent)
[docs]
def get(self, noisePoint=repcap.NoisePoint.Default) -> float:
"""
``[SOURce<HW>]:NOISe:LEVel<CH>:RELative`` \n
Snippet: ``value: float = driver.source.noise.level.relative.get(noisePoint = repcap.NoisePoint.Default)`` \n
Queries the level of the noise signal per Hz in the total bandwidth.
:param noisePoint: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Level')
:return: relative: float Range: -149.18 to -52.67
"""
noisePoint_cmd_val = self._cmd_group.get_repcap_cmd_value(noisePoint, repcap.NoisePoint)
response = self._core.io.query_str(f'SOURce<HwInstance>:NOISe:LEVel{noisePoint_cmd_val}:RELative?')
return Conversions.str_to_float(response)