Source code for RsSmbv.Implementations.Source.Bb.Ils.Mbeacon.Marker

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class MarkerCls: """Marker commands group definition. 3 total commands, 0 Subgroups, 3 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("marker", core, parent) # noinspection PyTypeChecker
[docs] def get_frequency(self) -> enums.AvionicMkrBcnMarkFreq: """SCPI: [SOURce<HW>]:[BB]:[ILS]:MBEacon:MARKer:FREQuency \n Snippet: value: enums.AvionicMkrBcnMarkFreq = driver.source.bb.ils.mbeacon.marker.get_frequency() \n Sets the modulation frequency of the marker signal for the ILS marker beacon modulation signal. \n :return: frequency: 400| 1300| 3000 Unit: Hz """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:MBEacon:MARKer:FREQuency?') return Conversions.str_to_scalar_enum(response, enums.AvionicMkrBcnMarkFreq)
[docs] def set_frequency(self, frequency: enums.AvionicMkrBcnMarkFreq) -> None: """SCPI: [SOURce<HW>]:[BB]:[ILS]:MBEacon:MARKer:FREQuency \n Snippet: driver.source.bb.ils.mbeacon.marker.set_frequency(frequency = enums.AvionicMkrBcnMarkFreq._1300) \n Sets the modulation frequency of the marker signal for the ILS marker beacon modulation signal. \n :param frequency: 400| 1300| 3000 Unit: Hz """ param = Conversions.enum_scalar_to_str(frequency, enums.AvionicMkrBcnMarkFreq) self._core.io.write(f'SOURce<HwInstance>:BB:ILS:MBEacon:MARKer:FREQuency {param}')
[docs] def get_depth(self) -> float: """SCPI: [SOURce<HW>]:[BB]:[ILS]:MBEacon:[MARKer]:DEPTh \n Snippet: value: float = driver.source.bb.ils.mbeacon.marker.get_depth() \n Sets the modulation depth of the marker signal for the ILS marker beacon signal. \n :return: depth: float Range: 0 to 100 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:MBEacon:MARKer:DEPTh?') return Conversions.str_to_float(response)
[docs] def set_depth(self, depth: float) -> None: """SCPI: [SOURce<HW>]:[BB]:[ILS]:MBEacon:[MARKer]:DEPTh \n Snippet: driver.source.bb.ils.mbeacon.marker.set_depth(depth = 1.0) \n Sets the modulation depth of the marker signal for the ILS marker beacon signal. \n :param depth: float Range: 0 to 100 """ param = Conversions.decimal_value_to_str(depth) self._core.io.write(f'SOURce<HwInstance>:BB:ILS:MBEacon:MARKer:DEPTh {param}')
[docs] def get_pulsed(self) -> bool: """SCPI: [SOURce<HW>]:[BB]:[ILS]:MBEacon:[MARKer]:PULSed \n Snippet: value: bool = driver.source.bb.ils.mbeacon.marker.get_pulsed() \n Activates the modulation of a pulsed marker signal (morse coding) . \n :return: pulsed: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:ILS:MBEacon:MARKer:PULSed?') return Conversions.str_to_bool(response)
[docs] def set_pulsed(self, pulsed: bool) -> None: """SCPI: [SOURce<HW>]:[BB]:[ILS]:MBEacon:[MARKer]:PULSed \n Snippet: driver.source.bb.ils.mbeacon.marker.set_pulsed(pulsed = False) \n Activates the modulation of a pulsed marker signal (morse coding) . \n :param pulsed: 1| ON| 0| OFF """ param = Conversions.bool_to_str(pulsed) self._core.io.write(f'SOURce<HwInstance>:BB:ILS:MBEacon:MARKer:PULSed {param}')