from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CouplingCls:
"""Coupling commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("coupling", core, parent)
[docs] def set(self, coupling_type: enums.CouplingTypeB) -> None:
"""SCPI: TRIGger[:SEQuence]:OSCilloscope:COUPling \n
Snippet: driver.applications.k6Pulse.trigger.sequence.oscilloscope.coupling.set(coupling_type = enums.CouplingTypeB.AC) \n
Configures the coupling of the external trigger to the oscilloscope. \n
:param coupling_type: Coupling type DC Direct connection with 50 Ohm termination, passes both DC and AC components of the trigger signal. CDLimit Direct connection with 1 MOhm termination, passes both DC and AC components of the trigger signal. AC Connection through capacitor, removes unwanted DC and very low-frequency components.
"""
param = Conversions.enum_scalar_to_str(coupling_type, enums.CouplingTypeB)
self._core.io.write(f'TRIGger:SEQuence:OSCilloscope:COUPling {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.CouplingTypeB:
"""SCPI: TRIGger[:SEQuence]:OSCilloscope:COUPling \n
Snippet: value: enums.CouplingTypeB = driver.applications.k6Pulse.trigger.sequence.oscilloscope.coupling.get() \n
Configures the coupling of the external trigger to the oscilloscope. \n
:return: coupling_type: No help available"""
response = self._core.io.query_str(f'TRIGger:SEQuence:OSCilloscope:COUPling?')
return Conversions.str_to_scalar_enum(response, enums.CouplingTypeB)