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

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 InOutCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, input_output: enums.InputOutput, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> None: """ ``P3PHase<*>:QUALity:SOURce:INOut`` \n Snippet: ``driver.p3Phase.quality.source.inOut.set(input_output = enums.InputOutput.INPut, power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Configures whether the oscilloscope is configured to receive signals (input) for analysis, or to generate signals output) as a source for testing. :param input_output: INPut | OUTPut :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') """ param = Conversions.enum_scalar_to_str(input_output, enums.InputOutput) power3PhaseMeas_cmd_val = self._cmd_group.get_repcap_cmd_value(power3PhaseMeas, repcap.Power3PhaseMeas) self._core.io.write(f'P3PHase{power3PhaseMeas_cmd_val}:QUALity:SOURce:INOut {param}')
# noinspection PyTypeChecker
[docs] def get(self, power3PhaseMeas=repcap.Power3PhaseMeas.Default) -> enums.InputOutput: """ ``P3PHase<*>:QUALity:SOURce:INOut`` \n Snippet: ``value: enums.InputOutput = driver.p3Phase.quality.source.inOut.get(power3PhaseMeas = repcap.Power3PhaseMeas.Default)`` \n Configures whether the oscilloscope is configured to receive signals (input) for analysis, or to generate signals output) as a source for testing. :param power3PhaseMeas: optional repeated capability selector. Default value: Nr1 (settable in the interface 'P3Phase') :return: input_output: INPut | OUTPut """ 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:INOut?') return Conversions.str_to_scalar_enum(response, enums.InputOutput)