from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NiotCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("niot", core, parent)
[docs]
def get_power(self) -> float:
"""
``[SOURce<HW>]:BB:EUTRa:DL:REFSig:NIOT:POWer`` \n
Snippet: ``value: float = driver.source.bb.eutra.downlink.refsig.niot.get_power()`` \n
Sets the power of the narrowband reference signal (NRS) .
:return: nb_ref_sig_sym_powe: float Range: -80 to 10
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:REFSig:NIOT:POWer?')
return Conversions.str_to_float(response)
[docs]
def set_power(self, nb_ref_sig_sym_powe: float) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:DL:REFSig:NIOT:POWer`` \n
Snippet: ``driver.source.bb.eutra.downlink.refsig.niot.set_power(nb_ref_sig_sym_powe = 1.0)`` \n
Sets the power of the narrowband reference signal (NRS) .
:param nb_ref_sig_sym_powe: float Range: -80 to 10
"""
param = Conversions.decimal_value_to_str(nb_ref_sig_sym_powe)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:REFSig:NIOT:POWer {param}')