from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PhaseCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("phase", core, parent)
[docs]
def set(self, phase: enums.LisnPhase) -> None:
"""
``INPut:LISN:PHASe`` \n
Snippet: ``driver.inputPy.lisn.phase.set(phase = enums.LisnPhase.L1)`` \n
Selects one LISN phase to be measured.
:param phase: L1 L2 Available for networks with four phases (R&S ESH2Z5, R&S ENV4200 and R&S ENV432) L3 Available for networks with four phases (R&S ESH2Z5, R&S ENV4200 and R&S ENV432) N
"""
param = Conversions.enum_scalar_to_str(phase, enums.LisnPhase)
self._core.io.write(f'INPut:LISN:PHASe {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.LisnPhase:
"""
``INPut:LISN:PHASe`` \n
Snippet: ``value: enums.LisnPhase = driver.inputPy.lisn.phase.get()`` \n
Selects one LISN phase to be measured.
:return: phase: L1 L2 Available for networks with four phases (R&S ESH2Z5, R&S ENV4200 and R&S ENV432) L3 Available for networks with four phases (R&S ESH2Z5, R&S ENV4200 and R&S ENV432) N
"""
response = self._core.io.query_str(f'INPut:LISN:PHASe?')
return Conversions.str_to_scalar_enum(response, enums.LisnPhase)