Source code for RsSmbv.Implementations.Source.Bb.Ils.Gslope.Frequency

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class FrequencyCls: """Frequency commands group definition. 3 total commands, 0 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("frequency", core, parent) # noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.AvionicCarrFreqMode: """SCPI: [SOURce<HW>]:[BB]:ILS:[GSLope]:FREQuency:MODE \n Snippet: value: enums.AvionicCarrFreqMode = driver.source.bb.ils.gslope.frequency.get_mode() \n Sets the mode for the carrier frequency of the signal. \n :return: mode: DECimal| USER| ICAO DECimal|USER Activates user-defined variation of the carrier frequency. ICAO Activates variation in predefined steps according to standard ILS transmitting frequencies (see Table 'ILS ICAO channels and frequencies (MHz) ') . """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:GSLope:FREQuency:MODE?') return Conversions.str_to_scalar_enum(response, enums.AvionicCarrFreqMode)
[docs] def set_mode(self, mode: enums.AvionicCarrFreqMode) -> None: """SCPI: [SOURce<HW>]:[BB]:ILS:[GSLope]:FREQuency:MODE \n Snippet: driver.source.bb.ils.gslope.frequency.set_mode(mode = enums.AvionicCarrFreqMode.DECimal) \n Sets the mode for the carrier frequency of the signal. \n :param mode: DECimal| USER| ICAO DECimal|USER Activates user-defined variation of the carrier frequency. ICAO Activates variation in predefined steps according to standard ILS transmitting frequencies (see Table 'ILS ICAO channels and frequencies (MHz) ') . """ param = Conversions.enum_scalar_to_str(mode, enums.AvionicCarrFreqMode) self._core.io.write(f'SOURce<HwInstance>:BB:ILS:GSLope:FREQuency:MODE {param}')
# noinspection PyTypeChecker
[docs] def get_step(self) -> enums.AvionicKnobStep: """SCPI: [SOURce<HW>]:[BB]:ILS:[GSLope]:FREQuency:STEP \n Snippet: value: enums.AvionicKnobStep = driver.source.bb.ils.gslope.frequency.get_step() \n No command help available \n :return: step: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:GSLope:FREQuency:STEP?') return Conversions.str_to_scalar_enum(response, enums.AvionicKnobStep)
[docs] def set_step(self, step: enums.AvionicKnobStep) -> None: """SCPI: [SOURce<HW>]:[BB]:ILS:[GSLope]:FREQuency:STEP \n Snippet: driver.source.bb.ils.gslope.frequency.set_step(step = enums.AvionicKnobStep.DECimal) \n No command help available \n :param step: No help available """ param = Conversions.enum_scalar_to_str(step, enums.AvionicKnobStep) self._core.io.write(f'SOURce<HwInstance>:BB:ILS:GSLope:FREQuency:STEP {param}')
[docs] def get_value(self) -> float: """SCPI: [SOURce<HW>]:[BB]:ILS:[GSLope]:FREQuency \n Snippet: value: float = driver.source.bb.ils.gslope.frequency.get_value() \n Sets the carrier frequency of the signal. \n :return: carrier_freq: float Range: 100E3 to 6E9 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:GSLope:FREQuency?') return Conversions.str_to_float(response)
[docs] def set_value(self, carrier_freq: float) -> None: """SCPI: [SOURce<HW>]:[BB]:ILS:[GSLope]:FREQuency \n Snippet: driver.source.bb.ils.gslope.frequency.set_value(carrier_freq = 1.0) \n Sets the carrier frequency of the signal. \n :param carrier_freq: float Range: 100E3 to 6E9 """ param = Conversions.decimal_value_to_str(carrier_freq) self._core.io.write(f'SOURce<HwInstance>:BB:ILS:GSLope:FREQuency {param}')