Source code for RsSmbv.Implementations.Source.Dme.Analysis.Time

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


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

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

[docs] def get_ok(self) -> bool: """ ``[SOURce<HW>]:DME:ANALysis:TIME:OK`` \n Snippet: ``value: bool = driver.source.dme.analysis.time.get_ok()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:DME:ANALysis:TIME:OK?') return Conversions.str_to_bool(response)
[docs] def set_ok(self, state: bool) -> None: """ ``[SOURce<HW>]:DME:ANALysis:TIME:OK`` \n Snippet: ``driver.source.dme.analysis.time.set_ok(state = False)`` \n No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:DME:ANALysis:TIME:OK {param}')
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:DME:ANALysis:TIME:STATe`` \n Snippet: ``value: bool = driver.source.dme.analysis.time.get_state()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:DME:ANALysis:TIME:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """ ``[SOURce<HW>]:DME:ANALysis:TIME:STATe`` \n Snippet: ``driver.source.dme.analysis.time.set_state(state = False)`` \n No help available """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:DME:ANALysis:TIME:STATe {param}')