Source code for RsSmcv.Implementations.Source.Fm

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class FmCls: """Fm commands group definition. 5 total commands, 2 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("fm", core, parent) @property def external(self): """external commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_external'): from .External import ExternalCls self._external = ExternalCls(self._core, self._cmd_group) return self._external @property def internal(self): """internal commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_internal'): from .Internal import InternalCls self._internal = InternalCls(self._core, self._cmd_group) return self._internal
[docs] def get_sensitivity(self) -> float: """SCPI: [SOURce<HW>]:FM:SENSitivity \n Snippet: value: float = driver.source.fm.get_sensitivity() \n No command help available \n :return: sensitivity: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:FM:SENSitivity?') return Conversions.str_to_float(response)
[docs] def get_deviation(self) -> float: """SCPI: [SOURce<HW>]:FM:[DEViation] \n Snippet: value: float = driver.source.fm.get_deviation() \n No command help available \n :return: deviation: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:FM:DEViation?') return Conversions.str_to_float(response)
[docs] def set_deviation(self, deviation: float) -> None: """SCPI: [SOURce<HW>]:FM:[DEViation] \n Snippet: driver.source.fm.set_deviation(deviation = 1.0) \n No command help available \n :param deviation: No help available """ param = Conversions.decimal_value_to_str(deviation) self._core.io.write(f'SOURce<HwInstance>:FM:DEViation {param}')
def clone(self) -> 'FmCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = FmCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group