Source code for RsFsw.Implementations.Applications.K17_Mcgd.Sense.Cestimation.LoComp

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


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

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

[docs] def set(self, loc_state: bool) -> None: """ ``[SENSe]:CESTimation:LOComp`` \n Snippet: ``driver.applications.k17Mcgd.sense.cestimation.loComp.set(loc_state = False)`` \n Enables or disables the Large Offset Compensation. :param loc_state: ON | OFF | 0 | 1 """ param = Conversions.bool_to_str(loc_state) self._core.io.write(f'SENSe:CESTimation:LOComp {param}')
[docs] def get(self) -> bool: """ ``[SENSe]:CESTimation:LOComp`` \n Snippet: ``value: bool = driver.applications.k17Mcgd.sense.cestimation.loComp.get()`` \n Enables or disables the Large Offset Compensation. :return: loc_state: ON | OFF | 0 | 1 """ response = self._core.io.query_str(f'SENSe:CESTimation:LOComp?') return Conversions.str_to_bool(response)