from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class W2V2ACls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("w2V2A", core, parent)
[docs]
def set(self, line_type: enums.P3PhaseSourceLines, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> None:
"""
``P3PHase<*>:HARMonics:SOURce:LINes:W2V2a`` \n
Snippet: ``driver.p3Phase.harmonics.source.lines.w2V2A.set(line_type = enums.P3PhaseSourceLines.V12LV32L, power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n
Select the configuration for your probe setup. Selects the gate that is used for limiting the range of the 3-phase power
quality measurement. This setting is only necessary, if you have configured method
``RsMxo.p3Phase.harmonics.source.wiring.set()`` =W2V2A.
:param line_type: V12LV32L | V13LV23L | V21LV31L
:param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase')
"""
param = Conversions.enum_scalar_to_str(line_type, enums.P3PhaseSourceLines)
power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas)
self._core.io.write(f'P3PHase{power3PhaseMeas_cmd_val}:HARMonics:SOURce:LINes:W2V2a {param}')
# noinspection PyTypeChecker
[docs]
def get(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> enums.P3PhaseSourceLines:
"""
``P3PHase<*>:HARMonics:SOURce:LINes:W2V2a`` \n
Snippet: ``value: enums.P3PhaseSourceLines = driver.p3Phase.harmonics.source.lines.w2V2A.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n
Select the configuration for your probe setup. Selects the gate that is used for limiting the range of the 3-phase power
quality measurement. This setting is only necessary, if you have configured method
``RsMxo.p3Phase.harmonics.source.wiring.set()`` =W2V2A.
:param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase')
:return: line_type: V12LV32L | V13LV23L | V21LV31L
"""
power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas)
response = self._core.io.query_str(f'P3PHase{power3PhaseMeas_cmd_val}:HARMonics:SOURce:LINes:W2V2a?')
return Conversions.str_to_scalar_enum(response, enums.P3PhaseSourceLines)