Source code for RsCma.Implementations.Source.Avionics.Generator.MarkerBeacon.RfSettings

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class RfSettingsCls: """RfSettings commands group definition. 3 total commands, 1 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("rfSettings", core, parent) @property def rfOut(self): """rfOut commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_rfOut'): from .RfOut import RfOutCls self._rfOut = RfOutCls(self._core, self._cmd_group) return self._rfOut
[docs] def get_frequency(self) -> float: """SCPI: SOURce:AVIonics:GENerator<Instance>:MBEacon:RFSettings:FREQuency \n Snippet: value: float = driver.source.avionics.generator.markerBeacon.rfSettings.get_frequency() \n Sets the center frequency of the unmodulated RF carrier. \n :return: freq: Range: 100 kHz to 3 GHz, Unit: Hz """ response = self._core.io.query_str('SOURce:AVIonics:GENerator<Instance>:MBEacon:RFSettings:FREQuency?') return Conversions.str_to_float(response)
[docs] def set_frequency(self, freq: float) -> None: """SCPI: SOURce:AVIonics:GENerator<Instance>:MBEacon:RFSettings:FREQuency \n Snippet: driver.source.avionics.generator.markerBeacon.rfSettings.set_frequency(freq = 1.0) \n Sets the center frequency of the unmodulated RF carrier. \n :param freq: Range: 100 kHz to 3 GHz, Unit: Hz """ param = Conversions.decimal_value_to_str(freq) self._core.io.write(f'SOURce:AVIonics:GENerator<Instance>:MBEacon:RFSettings:FREQuency {param}')
[docs] def get_level(self) -> float: """SCPI: SOURce:AVIonics:GENerator<Instance>:MBEacon:RFSettings:LEVel \n Snippet: value: float = driver.source.avionics.generator.markerBeacon.rfSettings.get_level() \n Sets the RMS level of the unmodulated RF carrier. The allowed range depends on several other settings, for example on the selected connector, the frequency and the external attenuation. For supported output level ranges, refer to the data sheet. \n :return: level: Unit: dBm """ response = self._core.io.query_str('SOURce:AVIonics:GENerator<Instance>:MBEacon:RFSettings:LEVel?') return Conversions.str_to_float(response)
[docs] def set_level(self, level: float) -> None: """SCPI: SOURce:AVIonics:GENerator<Instance>:MBEacon:RFSettings:LEVel \n Snippet: driver.source.avionics.generator.markerBeacon.rfSettings.set_level(level = 1.0) \n Sets the RMS level of the unmodulated RF carrier. The allowed range depends on several other settings, for example on the selected connector, the frequency and the external attenuation. For supported output level ranges, refer to the data sheet. \n :param level: Unit: dBm """ param = Conversions.decimal_value_to_str(level) self._core.io.write(f'SOURce:AVIonics:GENerator<Instance>:MBEacon:RFSettings:LEVel {param}')
def clone(self) -> 'RfSettingsCls': """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 = RfSettingsCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group