from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CompatibleCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("compatible", core, parent)
[docs]
def set(self, mode: enums.PresetCompatible) -> None:
"""
``SYSTem:PRESet:COMPatible`` \n
Snippet: ``driver.system.preset.compatible.set(mode = enums.PresetCompatible.MRECeiver)`` \n
Defines the operating mode that is activated when you switch on the FSW or press [PRESET]. For details on operating modes
see 'Applications, measurement channels, and operating modes'.
:param mode: SANalyzer (Default:) Defines Signal and Spectrum Analyzer operating mode as the presetting. MSRA Defines Multi-Standard Radio Analysis (MSRA) as the preset default operating mode. RTMS Defines Multi-Standard Real-Time (MSRT) as the preset default operating mode.
"""
param = Conversions.enum_scalar_to_str(mode, enums.PresetCompatible)
self._core.io.write(f'SYSTem:PRESet:COMPatible {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.PresetCompatible:
"""
``SYSTem:PRESet:COMPatible`` \n
Snippet: ``value: enums.PresetCompatible = driver.system.preset.compatible.get()`` \n
Defines the operating mode that is activated when you switch on the FSW or press [PRESET]. For details on operating modes
see 'Applications, measurement channels, and operating modes'.
"""
response = self._core.io.query_str(f'SYSTem:PRESet:COMPatible?')
return Conversions.str_to_scalar_enum(response, enums.PresetCompatible)