Source code for rsmxo.Implementations.Franalysis.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_state(self) -> bool: """ ``FRANalysis:RESult:STATe`` \n Snippet: ``value: bool = driver.franalysis.result.get_state()`` \n Enables the display of the result table for the FRA. :return: table: OFF | ON """ response = self._core.io.query_str('FRANalysis:RESult:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, table: bool) -> None: """ ``FRANalysis:RESult:STATe`` \n Snippet: ``driver.franalysis.result.set_state(table = False)`` \n Enables the display of the result table for the FRA. :param table: OFF | ON """ param = Conversions.bool_to_str(table) self._core.io.write(f'FRANalysis:RESult:STATe {param}')