Source code for rsmxo.Implementations.P3Phase.Quality.Source.Wiring

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


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

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

[docs] def set(self, wiring: enums.P3PhaseSourceWiring, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> None: """ ``P3PHase<*>:QUALity:SOURce:WIRing`` \n Snippet: ``driver.p3Phase.quality.source.wiring.set(wiring = enums.P3PhaseSourceWiring.W2V2A, power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Configures how your probes are connected to the three-phase device. It allows you to visualize the connections for proper setup. If you can only measure on four channels, select the W2V2A wiring. :param wiring: W2V2A | W3V3A | W3VN3A :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') """ param = Conversions.enum_scalar_to_str(wiring, enums.P3PhaseSourceWiring) power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) self._core.io.write(f'P3PHase{power3PhaseMeas_cmd_val}:QUALity:SOURce:WIRing {param}')
# noinspection PyTypeChecker
[docs] def get(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> enums.P3PhaseSourceWiring: """ ``P3PHase<*>:QUALity:SOURce:WIRing`` \n Snippet: ``value: enums.P3PhaseSourceWiring = driver.p3Phase.quality.source.wiring.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Configures how your probes are connected to the three-phase device. It allows you to visualize the connections for proper setup. If you can only measure on four channels, select the W2V2A wiring. :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') :return: wiring: W2V2A | W3V3A | W3VN3A """ 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:SOURce:WIRing?') return Conversions.str_to_scalar_enum(response, enums.P3PhaseSourceWiring)