from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ActualCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("actual", core, parent)
[docs]
def get(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default, result=repcap.Result.Default, power3Phase=repcap.Power3Phase.Default) -> float:
"""
``P3PHase<*>:HARMonics:RESult<*>:MAGNitude<*>:PERCent[:ACTual]`` \n
Snippet: ``value: float = driver.p3Phase.harmonics.result.magnitude.percent.actual.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default, result = repcap.Result.Default, power3Phase = repcap.Power3Phase.Default)`` \n
Returns the magnitude of the o-th harmonic in percent for the individual phases.
:param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase')
:param result: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Result')
:param power3Phase: optional repeated capability selector. Default value: Ix1 (settable in the interface 'Magnitude')
"""
power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas)
result_cmd_val = self._cmd_group.get_repcap_cmd_value(result, repcap.Result)
power3Phase_cmd_val = self._cmd_group.get_repcap_cmd_value(power3Phase, repcap.Power3Phase)
response = self._core.io.query_str(f'P3PHase{power3PhaseMeas_cmd_val}:HARMonics:RESult{result_cmd_val}:MAGNitude{power3Phase_cmd_val}:PERCent:ACTual?')
return Conversions.str_to_float(response)