Source code for rsmxo.Implementations.P3Phase.Quality.Result.Current.CrestFactor.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, power3Phase=repcap.Power3Phase.Default) -> float: """ ``P3PHase<*>:QUALity:RESult:CURRent:CREStfactor<*>[:ACTual]`` \n Snippet: ``value: float = driver.p3Phase.quality.result.current.crestFactor.actual.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default, power3Phase = repcap.Power3Phase.Default)`` \n Returns the current crest factors for individual phases for the 3-phase power quality analysis. :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') :param power3Phase: optional repeated capability selector. Default value: Ix1 (settable in the interface 'CrestFactor') :return: actual: -1E+26 to 1E+26 """ power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) power3Phase_cmd_val = self._cmd_group.get_repcap_cmd_value(power3Phase, repcap.Power3Phase) response = self._core.io.query_str(f'P3PHase{power3PhaseMeas_cmd_val}:QUALity:RESult:CURRent:CREStfactor{power3Phase_cmd_val}:ACTual?') return Conversions.str_to_float(response)