Source code for RsFswp.Implementations.Applications.K60_Transient.Trigger.Sequence.Source

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SourceCls: """Source commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("source", core, parent)
[docs] def set(self, source: enums.TriggerSourceK) -> None: """SCPI: TRIGger[:SEQuence]:SOURce \n Snippet: driver.applications.k60Transient.trigger.sequence.source.set(source = enums.TriggerSourceK.EXT2) \n This command selects the trigger source. Note on external triggers: If a measurement is configured to wait for an external trigger signal in a remote control program, remote control is blocked until the trigger is received and the program can continue. Make sure that this situation is avoided in your remote control programs. \n :param source: IMMediate Free Run EXT | EXT2 Trigger signal from one of the 'Trigger Input/Output' connectors. Note: Connector must be configured for 'Input'. IFPower Second intermediate frequency IQPower Magnitude of sampled I/Q data For applications that process I/Q data, such as the I/Q Analyzer or optional applications. """ param = Conversions.enum_scalar_to_str(source, enums.TriggerSourceK) self._core.io.write(f'TRIGger:SEQuence:SOURce {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.TriggerSourceK: """SCPI: TRIGger[:SEQuence]:SOURce \n Snippet: value: enums.TriggerSourceK = driver.applications.k60Transient.trigger.sequence.source.get() \n This command selects the trigger source. Note on external triggers: If a measurement is configured to wait for an external trigger signal in a remote control program, remote control is blocked until the trigger is received and the program can continue. Make sure that this situation is avoided in your remote control programs. \n :return: source: IMMediate Free Run EXT | EXT2 Trigger signal from one of the 'Trigger Input/Output' connectors. Note: Connector must be configured for 'Input'. IFPower Second intermediate frequency IQPower Magnitude of sampled I/Q data For applications that process I/Q data, such as the I/Q Analyzer or optional applications.""" response = self._core.io.query_str(f'TRIGger:SEQuence:SOURce?') return Conversions.str_to_scalar_enum(response, enums.TriggerSourceK)