Source code for rsmxo.Implementations.P3Phase.Quality.Phasor.Fscreen

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


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

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

[docs] def set(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> None: """ ``P3PHase<*>:QUALity:PHASor:FSCReen`` \n Snippet: ``driver.p3Phase.quality.phasor.fscreen.set(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Selects the most appropriate scale for the voltage and current phasors. :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') """ power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) self._core.io.write(f'P3PHase{power3PhaseMeas_cmd_val}:QUALity:PHASor:FSCReen')
[docs] def set_and_wait(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default, opc_timeout_ms: int = -1) -> None: power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) """ ``P3PHase<*>:QUALity:PHASor:FSCReen`` \n Snippet: ``driver.p3Phase.quality.phasor.fscreen.set_and_wait(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Selects the most appropriate scale for the voltage and current phasors. Same as set, but waits for the operation to complete before continuing further. Use the RsMxo.utilities.opc_timeout_set() to set the timeout value. :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ self._core.io.write_with_opc(f'P3PHase{power3PhaseMeas_cmd_val}:QUALity:PHASor:FSCReen', opc_timeout_ms)