Source code for RsFsw.Implementations.Applications.K10x_Lte.Output.Trigger.Otype

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class OtypeCls: """Otype commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("otype", core, parent)
[docs] def set(self, output_type: enums.TriggerOutType, outputConnector=repcap.OutputConnector.Default, triggerPort=repcap.TriggerPort.Default) -> None: """SCPI: OUTPut<up>:TRIGger<tp>:OTYPe \n Snippet: driver.applications.k10Xlte.output.trigger.otype.set(output_type = enums.TriggerOutType.DEVice, outputConnector = repcap.OutputConnector.Default, triggerPort = repcap.TriggerPort.Default) \n Selects the type of signal generated at the trigger output. Note: For offline AF or RF triggers, no output signal is provided. \n :param output_type: DEVice Sends a trigger signal when the FSW has triggered internally. TARMed Sends a trigger signal when the trigger is armed and ready for an external trigger event. UDEFined Sends a user-defined trigger signal. For more information, see method RsFsw.Applications.K10x_Lte.Output.Trigger.Level.set. :param outputConnector: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Output') :param triggerPort: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') """ param = Conversions.enum_scalar_to_str(output_type, enums.TriggerOutType) outputConnector_cmd_val = self._cmd_group.get_repcap_cmd_value(outputConnector, repcap.OutputConnector) triggerPort_cmd_val = self._cmd_group.get_repcap_cmd_value(triggerPort, repcap.TriggerPort) self._core.io.write(f'OUTPut{outputConnector_cmd_val}:TRIGger{triggerPort_cmd_val}:OTYPe {param}')
# noinspection PyTypeChecker
[docs] def get(self, outputConnector=repcap.OutputConnector.Default, triggerPort=repcap.TriggerPort.Default) -> enums.TriggerOutType: """SCPI: OUTPut<up>:TRIGger<tp>:OTYPe \n Snippet: value: enums.TriggerOutType = driver.applications.k10Xlte.output.trigger.otype.get(outputConnector = repcap.OutputConnector.Default, triggerPort = repcap.TriggerPort.Default) \n Selects the type of signal generated at the trigger output. Note: For offline AF or RF triggers, no output signal is provided. \n :param outputConnector: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Output') :param triggerPort: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') :return: output_type: DEVice Sends a trigger signal when the FSW has triggered internally. TARMed Sends a trigger signal when the trigger is armed and ready for an external trigger event. UDEFined Sends a user-defined trigger signal. For more information, see method RsFsw.Applications.K10x_Lte.Output.Trigger.Level.set.""" outputConnector_cmd_val = self._cmd_group.get_repcap_cmd_value(outputConnector, repcap.OutputConnector) triggerPort_cmd_val = self._cmd_group.get_repcap_cmd_value(triggerPort, repcap.TriggerPort) response = self._core.io.query_str(f'OUTPut{outputConnector_cmd_val}:TRIGger{triggerPort_cmd_val}:OTYPe?') return Conversions.str_to_scalar_enum(response, enums.TriggerOutType)