from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ModeCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mode", core, parent)
[docs]
def set(self, source: enums.TriggerSourceK91) -> None:
"""
``TRIGger[:SEQuence]:MODE`` \n
Snippet: ``driver.applications.k91Wlan.trigger.sequence.mode.set(source = enums.TriggerSourceK91.AF)`` \n
Defines the trigger source. Note that this command is maintained for compatibility reasons only. Use the method
``RsFsw.applications.k91Wlan.trigger.sequence.source.set()`` commands for new remote control programs. Configures how
triggering is to be performed.
:param source: MANual | IMMediate | EXTernal | VIDeo | RFPower | IFPower | POWer | EPOWer | TV | AF | AM | FM | PM | AMRelative | LXI | TIME | SLEFt | SRIGht | SMPX | SMONo | SSTereo | SRDS | SPILot | BBPower | MASK | PSENsor | TDTRigger | IQPower | EXT2 | EXT3 | TUNit
"""
param = Conversions.enum_scalar_to_str(source, enums.TriggerSourceK91)
self._core.io.write(f'TRIGger:SEQuence:MODE {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.TriggerSourceK91:
"""
``TRIGger[:SEQuence]:MODE`` \n
Snippet: ``value: enums.TriggerSourceK91 = driver.applications.k91Wlan.trigger.sequence.mode.get()`` \n
Defines the trigger source. Note that this command is maintained for compatibility reasons only. Use the method
``RsFsw.applications.k91Wlan.trigger.sequence.source.set()`` commands for new remote control programs. Configures how
triggering is to be performed.
:return: source: MANual | IMMediate | EXTernal | VIDeo | RFPower | IFPower | POWer | EPOWer | TV | AF | AM | FM | PM | AMRelative | LXI | TIME | SLEFt | SRIGht | SMPX | SMONo | SSTereo | SRDS | SPILot | BBPower | MASK | PSENsor | TDTRigger | IQPower | EXT2 | EXT3 | TUNit
"""
response = self._core.io.query_str(f'TRIGger:SEQuence:MODE?')
return Conversions.str_to_scalar_enum(response, enums.TriggerSourceK91)