Source code for rsmxo.Implementations.Franalysis.AutoScale.Result

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


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

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

[docs] def get_enable(self) -> bool: """ ``FRANalysis:AUToscale:RESult[:ENABle]`` \n Snippet: ``value: bool = driver.franalysis.autoScale.result.get_enable()`` \n If ON, the scaling of the plot diagram is adjusted when new measurement results are determined. """ response = self._core.io.query_str('FRANalysis:AUToscale:RESult:ENABle?') return Conversions.str_to_bool(response)
[docs] def set_enable(self, auto_scale_res: bool) -> None: """ ``FRANalysis:AUToscale:RESult[:ENABle]`` \n Snippet: ``driver.franalysis.autoScale.result.set_enable(auto_scale_res = False)`` \n If ON, the scaling of the plot diagram is adjusted when new measurement results are determined. :param auto_scale_res: OFF | ON """ param = Conversions.bool_to_str(auto_scale_res) self._core.io.write(f'FRANalysis:AUToscale:RESult:ENABle {param}')