Source code for RsFsw.Implementations.Sense.Probe.Setup.TypePy

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TypePyCls: """TypePy commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("typePy", core, parent)
[docs] def get(self, probe=repcap.Probe.Default) -> float: """SCPI: [SENSe]:PROBe<pb>:SETup:TYPE \n Snippet: value: float = driver.sense.probe.setup.typePy.get(probe = repcap.Probe.Default) \n Queries the type of the probe. \n :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') :return: type_py: String containing one of the following values: -'None' (no probe detected) -'active differential' -'active single-ended' -'active modular'""" probe_cmd_val = self._cmd_group.get_repcap_cmd_value(probe, repcap.Probe) response = self._core.io.query_str(f'SENSe:PROBe{probe_cmd_val}:SETup:TYPE?') return Conversions.str_to_float(response)