Source code for rsmxo.Implementations.P3Phase.Quality.Phasor.Current.Maximum

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


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

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

[docs] def set(self, current_maximum: float, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> None: """ ``P3PHase<*>:QUALity:PHASor:CURRent:MAXimum`` \n Snippet: ``driver.p3Phase.quality.phasor.current.maximum.set(current_maximum = 1.0, power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Sets the outer circumference of the phasor diagram. :param current_maximum: -100000000000000 to 100000 :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') """ param = Conversions.decimal_value_to_str(current_maximum) power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) self._core.io.write(f'P3PHase{power3PhaseMeas_cmd_val}:QUALity:PHASor:CURRent:MAXimum {param}')
[docs] def get(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> float: """ ``P3PHase<*>:QUALity:PHASor:CURRent:MAXimum`` \n Snippet: ``value: float = driver.p3Phase.quality.phasor.current.maximum.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Sets the outer circumference of the phasor diagram. :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') :return: current_maximum: -100000000000000 to 100000 """ 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:PHASor:CURRent:MAXimum?') return Conversions.str_to_float(response)