Source code for rsmxo.Implementations.P3Phase.Quality.Result.Total.Power.Apparent.Actual

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:TOTal:POWer:APParent[:ACTual]`` \n Snippet: ``value: float = driver.p3Phase.quality.result.total.power.apparent.actual.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Returns the total apparent power 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:TOTal:POWer:APParent:ACTual?') return Conversions.str_to_float(response)