Source code for rsmxo.Implementations.Franalysis.Measurement.Point

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


# 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_display(self) -> bool: """ ``FRANalysis:MEASurement:POINt[:DISPlay]`` \n Snippet: ``value: bool = driver.franalysis.measurement.point.get_display()`` \n Enables the display of the measurement points for the frequency response analysis. :return: points: OFF | ON """ response = self._core.io.query_str('FRANalysis:MEASurement:POINt:DISPlay?') return Conversions.str_to_bool(response)
[docs] def set_display(self, points: bool) -> None: """ ``FRANalysis:MEASurement:POINt[:DISPlay]`` \n Snippet: ``driver.franalysis.measurement.point.set_display(points = False)`` \n Enables the display of the measurement points for the frequency response analysis. :param points: OFF | ON """ param = Conversions.bool_to_str(points) self._core.io.write(f'FRANalysis:MEASurement:POINt:DISPlay {param}')