from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CouplingCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("coupling", core, parent)
[docs]
def set(self, coup_type: enums.CouplingTypeB) -> None:
"""
``TRIGger[:SEQuence]:OSCilloscope:COUPling`` \n
Snippet: ``driver.applications.k60Transient.trigger.sequence.oscilloscope.coupling.set(coup_type = enums.CouplingTypeB.AC)`` \n
Configures the coupling of the external trigger to the oscilloscope.
:param coup_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(coup_type, enums.CouplingTypeB)
self._core.io.write(f'TRIGger:SEQuence:OSCilloscope:COUPling {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.CouplingTypeB:
"""
``TRIGger[:SEQuence]:OSCilloscope:COUPling`` \n
Snippet: ``value: enums.CouplingTypeB = driver.applications.k60Transient.trigger.sequence.oscilloscope.coupling.get()`` \n
Configures the coupling of the external trigger to the oscilloscope.
:return: coup_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.
"""
response = self._core.io.query_str(f'TRIGger:SEQuence:OSCilloscope:COUPling?')
return Conversions.str_to_scalar_enum(response, enums.CouplingTypeB)