from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class GateCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("gate", core, parent)
[docs]
def set(self, gate_source: enums.GateSource) -> None:
"""
``[SENSe]:SWEep:PULSe:GATE`` \n
Snippet: ``driver.sense.sweep.pulse.gate.set(gate_source = enums.GateSource.EXTernal)`` \n
No help available
"""
param = Conversions.enum_scalar_to_str(gate_source, enums.GateSource)
self._core.io.write(f'SENSe:SWEep:PULSe:GATE {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.GateSource:
"""
``[SENSe]:SWEep:PULSe:GATE`` \n
Snippet: ``value: enums.GateSource = driver.sense.sweep.pulse.gate.get()`` \n
No help available
"""
response = self._core.io.query_str(f'SENSe:SWEep:PULSe:GATE?')
return Conversions.str_to_scalar_enum(response, enums.GateSource)