Source code for rsrtx.Implementations.Probe.Setup.Term.Mode

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

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

[docs] def set(self, mode: enums.AutoManualMode, probe=repcap.Probe.Default) -> None: """ ``PROBe<*>:SETup:TERM:MODE`` \n Snippet: ``driver.probe.setup.term.mode.set(mode = enums.AutoManualMode.AUTO, probe = repcap.Probe.Default)`` \n Setting the termination voltage is relevant if you use the R&S RT-ZMA40 SMA module. You can set a termination voltage to correct the internal 50 Ω termination of the SMA module by the common mode voltage. To control the termination voltage by the instrument, connect the VT terminal of the R&S RT-ZM probe amplifier to the VT terminal of the SMA module using the red DC lead (see R&S RT-ZM User Manual) . :param mode: AUTO | MANual \n - AUTO: The instrument uses the measured common mode voltage to control the termination. - MANual: Enter the voltage to be used for termination. :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') """ param = Conversions.enum_scalar_to_str(mode, enums.AutoManualMode) probe_cmd_val = self._cmd_group.get_repcap_cmd_value(probe, repcap.Probe) self._core.io.write_with_opc(f'PROBe{probe_cmd_val}:SETup:TERM:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self, probe=repcap.Probe.Default) -> enums.AutoManualMode: """ ``PROBe<*>:SETup:TERM:MODE`` \n Snippet: ``value: enums.AutoManualMode = driver.probe.setup.term.mode.get(probe = repcap.Probe.Default)`` \n Setting the termination voltage is relevant if you use the R&S RT-ZMA40 SMA module. You can set a termination voltage to correct the internal 50 Ω termination of the SMA module by the common mode voltage. To control the termination voltage by the instrument, connect the VT terminal of the R&S RT-ZM probe amplifier to the VT terminal of the SMA module using the red DC lead (see R&S RT-ZM User Manual) . :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') :return: mode: AUTO | MANual \n - AUTO: The instrument uses the measured common mode voltage to control the termination. - MANual: Enter the voltage to be used for termination. """ probe_cmd_val = self._cmd_group.get_repcap_cmd_value(probe, repcap.Probe) response = self._core.io.query_str_with_opc(f'PROBe{probe_cmd_val}:SETup:TERM:MODE?') return Conversions.str_to_scalar_enum(response, enums.AutoManualMode)