Source code for rsmxo.Implementations.P3Phase.Efficiency.Result.Output.Total.Power.Rms

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RmsCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("rms", core, parent)

[docs] def get(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default, output=repcap.Output.Default) -> float: """ ``P3PHase<*>:EFFiciency:RESult:OUTPut<*>:TOTal:POWer:RMS`` \n Snippet: ``value: float = driver.p3Phase.efficiency.result.output.total.power.rms.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default, output = repcap.Output.Default)`` \n Returns the RMS value for the total input and output power and total efficiency if statistics are enabled. :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') :param output: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Output') :return: rms: -1E+26 to 1E+26 """ power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) output_cmd_val = self._cmd_group.get_repcap_cmd_value(output, repcap.Output) response = self._core.io.query_str(f'P3PHase{power3PhaseMeas_cmd_val}:EFFiciency:RESult:OUTPut{output_cmd_val}:TOTal:POWer:RMS?') return Conversions.str_to_float(response)