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) -> float:
"""
``P3PHase<*>:QUALity:RESult:POWer:PHASe[:ACTual]`` \n
Snippet: ``value: float = driver.p3Phase.quality.result.power.phase.actual.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n
Returns the phase values for individual phases for the 3-phase power quality analysis.
:param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase')
:return: actual: -1E+26 to 1E+26
"""
power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas)
response = self._core.io.query_str(f'P3PHase{power3PhaseMeas_cmd_val}:QUALity:RESult:POWer:PHASe:ACTual?')
return Conversions.str_to_float(response)