Source code for rsmxo.Implementations.Display.Measurements

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MeasurementsCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def get_levels(self) -> bool: """ ``DISPlay:MEASurements:LEVels`` \n Snippet: ``value: bool = driver.display.measurements.get_levels()`` \n If selected, the values of the reference levels are displayed. """ response = self._core.io.query_str('DISPlay:MEASurements:LEVels?') return Conversions.str_to_bool(response)
[docs] def set_levels(self, shw_ref_lev_vals: bool) -> None: """ ``DISPlay:MEASurements:LEVels`` \n Snippet: ``driver.display.measurements.set_levels(shw_ref_lev_vals = False)`` \n If selected, the values of the reference levels are displayed. :param shw_ref_lev_vals: OFF | ON """ param = Conversions.bool_to_str(shw_ref_lev_vals) self._core.io.write(f'DISPlay:MEASurements:LEVels {param}')