from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PointsCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("points", core, parent)
[docs]
def set(self, measurement_points: float) -> None:
"""
``[SENSe]:MEASure:POINts`` \n
Snippet: ``driver.applications.k60Transient.sense.measure.points.set(measurement_points = 1.0)`` \n
Defines the maximum number of trace points within a trace.
:param measurement_points: integer Range: 101 to 32001
"""
param = Conversions.decimal_value_to_str(measurement_points)
self._core.io.write(f'SENSe:MEASure:POINts {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:MEASure:POINts`` \n
Snippet: ``value: float = driver.applications.k60Transient.sense.measure.points.get()`` \n
Defines the maximum number of trace points within a trace.
:return: measurement_points: integer Range: 101 to 32001
"""
response = self._core.io.query_str(f'SENSe:MEASure:POINts?')
return Conversions.str_to_float(response)