Source code for RsSmbv.Implementations.Source.Bb.Gsm.Fsk

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class FskCls: """Fsk commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("fsk", core, parent)
[docs] def get_deviation(self) -> float: """SCPI: [SOURce<HW>]:BB:GSM:FSK:DEViation \n Snippet: value: float = driver.source.bb.gsm.fsk.get_deviation() \n Sets the modulation deviation when BB:GSM:FORMat FSK2 is selected. The range of values depends on the symbol rate (BB:GSM:SRATe) . The maximum deviation is 10 MHz. \n :return: deviation: float Range: 0.1xf(symb) to 1.5xf(symb) ;(10MHz) , Unit: Hz """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GSM:FSK:DEViation?') return Conversions.str_to_float(response)
[docs] def set_deviation(self, deviation: float) -> None: """SCPI: [SOURce<HW>]:BB:GSM:FSK:DEViation \n Snippet: driver.source.bb.gsm.fsk.set_deviation(deviation = 1.0) \n Sets the modulation deviation when BB:GSM:FORMat FSK2 is selected. The range of values depends on the symbol rate (BB:GSM:SRATe) . The maximum deviation is 10 MHz. \n :param deviation: float Range: 0.1xf(symb) to 1.5xf(symb) ;(10MHz) , Unit: Hz """ param = Conversions.decimal_value_to_str(deviation) self._core.io.write(f'SOURce<HwInstance>:BB:GSM:FSK:DEViation {param}')