Source code for RsSmbv.Implementations.Calibration.Tselected

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ...Internal.Utilities import trim_str_response


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

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

[docs] def get_catalog(self) -> str: """ ``CALibration:TSELected:CATalog`` \n Snippet: ``value: str = driver.calibration.tselected.get_catalog()`` \n No help available """ response = self._core.io.query_str('CALibration:TSELected:CATalog?') return trim_str_response(response)
[docs] def get_step(self) -> str: """ ``CALibration:TSELected:STEP`` \n Snippet: ``value: str = driver.calibration.tselected.get_step()`` \n No help available """ response = self._core.io.query_str('CALibration:TSELected:STEP?') return trim_str_response(response)
[docs] def set_step(self, sel_string: str) -> None: """ ``CALibration:TSELected:STEP`` \n Snippet: ``driver.calibration.tselected.set_step(sel_string = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(sel_string) self._core.io.write(f'CALibration:TSELected:STEP {param}')
[docs] def get_measure(self) -> bool: """ ``CALibration:TSELected:[MEASure]`` \n Snippet: ``value: bool = driver.calibration.tselected.get_measure()`` \n No help available """ response = self._core.io.query_str('CALibration:TSELected:MEASure?') return Conversions.str_to_bool(response)