from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MarkerCls:
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
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:
"""
``[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.
: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:
"""
``[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.
: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:
"""
``[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.
: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:
"""
``[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.
: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:
"""
``[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) .
: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:
"""
``[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) .
: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}')