Source code for rsrtx.Implementations.Probe.Setup.Attenuation.DefProbe

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

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

[docs] def set(self, select_predef_prb: enums.DefProbeSelect, probe=repcap.Probe.Default) -> None: """ ``PROBe<*>:SETup:ATTenuation:DEFProbe`` \n Snippet: ``driver.probe.setup.attenuation.defProbe.set(select_predef_prb = enums.DefProbeSelect.FREE, probe = repcap.Probe.Default)`` \n Selects a predefined probe. These are probes that are not recognized automatically but the parameters of the probe are known to the instrument. :param select_predef_prb: ZC10 | ZC20 | ZC30 | ZD01A100 | ZD01A1000 | ZZ80 | FREE | ZS10L | ZD02 | ZD08 | ZC02100 | ZC021000 | ZC03 | ZD002A10 | ZD002A100 | ZD003A20 | ZD003A200 | ZC3110 | ZC311 | ZC3101 | NP1544B | NP1544B50 \n - ZC10 | ZC20 | ZC30 | ZZ80 | ZS10L | ZD02 | ZD08 | ZC03: Type of the probe - ZD01A100 | ZD01A1000 | ZD002A10 | ZD002A100 | ZD003A20 | ZD003A200: High voltage differential probes R&S RT-ZD0xx, attenuation ratio according to the setting on the probe.A10 = 10:1A20 = 20:1A100 = 100:1A200 = 200:1A1000 = 1000:1 - ZC02100 | ZC021000: Current probes 100 A or 1000 A according to the setting on the probe. - FREE: Any other probe that is not recognized by the instrument. :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') """ param = Conversions.enum_scalar_to_str(select_predef_prb, enums.DefProbeSelect) 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:ATTenuation:DEFProbe {param}')
# noinspection PyTypeChecker
[docs] def get(self, probe=repcap.Probe.Default) -> enums.DefProbeSelect: """ ``PROBe<*>:SETup:ATTenuation:DEFProbe`` \n Snippet: ``value: enums.DefProbeSelect = driver.probe.setup.attenuation.defProbe.get(probe = repcap.Probe.Default)`` \n Selects a predefined probe. These are probes that are not recognized automatically but the parameters of the probe are known to the instrument. :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') """ 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:ATTenuation:DEFProbe?') return Conversions.str_to_scalar_enum(response, enums.DefProbeSelect)