Source code for RsFsw.Implementations.Applications.K17_Mcgd.Sense.Subspan.State

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


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

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

[docs] def get(self) -> bool: """ ``[SENSe]:SUBSpan:STATe`` \n Snippet: ``value: bool = driver.applications.k17Mcgd.sense.subspan.state.get()`` \n Queries the state of the frequency subspan measurements. This can be helpful when using subspan mode 'Auto' where the FSW-K17S decides automatically if subspan measurements are active (query state 'ON') or inactive (query state 'OFF') . :return: state: ON | OFF """ response = self._core.io.query_str(f'SENSe:SUBSpan:STATe?') return Conversions.str_to_bool(response)