Source code for RsCmwGsmSig.Implementations.Configure_.Fading_.Awgn_.Bandwidth

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Bandwidth: """Bandwidth commands group definition. 2 total commands, 0 Sub-groups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("bandwidth", core, parent)
[docs] def get_ratio(self) -> float: """SCPI: CONFigure:GSM:SIGNaling<instance>:FADing:AWGN:BWIDth:RATio \n Snippet: value: float = driver.configure.fading.awgn.bandwidth.get_ratio() \n Specifies the minimum ratio between noise bandwidth and channel bandwidth. \n :return: ratio: Range: 1 to 250 """ response = self._core.io.query_str('CONFigure:GSM:SIGNaling<Instance>:FADing:AWGN:BWIDth:RATio?') return Conversions.str_to_float(response)
[docs] def set_ratio(self, ratio: float) -> None: """SCPI: CONFigure:GSM:SIGNaling<instance>:FADing:AWGN:BWIDth:RATio \n Snippet: driver.configure.fading.awgn.bandwidth.set_ratio(ratio = 1.0) \n Specifies the minimum ratio between noise bandwidth and channel bandwidth. \n :param ratio: Range: 1 to 250 """ param = Conversions.decimal_value_to_str(ratio) self._core.io.write(f'CONFigure:GSM:SIGNaling<Instance>:FADing:AWGN:BWIDth:RATio {param}')
[docs] def get_noise(self) -> float: """SCPI: CONFigure:GSM:SIGNaling<instance>:FADing:AWGN:BWIDth:NOISe \n Snippet: value: float = driver.configure.fading.awgn.bandwidth.get_noise() \n Queries the noise bandwidth. \n :return: noise_bandwidth: Range: 0 Hz to 80 MHz, Unit: Hz """ response = self._core.io.query_str('CONFigure:GSM:SIGNaling<Instance>:FADing:AWGN:BWIDth:NOISe?') return Conversions.str_to_float(response)