from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PointCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("point", core, parent)
[docs]
def get(self, name: str) -> str:
"""
``DIAGnostic<HW>:[MEASure]:POINt`` \n
Snippet: ``value: str = driver.diagnostic.measure.point.get(name = 'abc')`` \n
Triggers the voltage measurement at the specified test point and returns the measured voltage. For more information, see
R&S SMW200A Service Manual.
:param name: test point identifier Test point name, as queried with the method ``RsSmw.diagnostic.point.catalog()``
:return: value: valueunit
"""
param = Conversions.value_to_quoted_str(name)
response = self._core.io.query_str(f'DIAGnostic<HwInstance>:MEASure:POINt? {param}')
return trim_str_response(response)