Source code for RsSmw.Implementations.Source.Bb.Gnss.System.Beidou.Signal.L2Band.B3I

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:GNSS:SYSTem:BEIDou:SIGNal:L2Band:B3I:[STATe]`` \n Snippet: ``value: bool = driver.source.bb.gnss.system.beidou.signal.l2Band.b3I.get_state()`` \n Enables the corresponding signal from the GNSS system in the corresponding RF band. :return: signal_state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SYSTem:BEIDou:SIGNal:L2Band:B3I:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, signal_state: bool) -> None: """ ``[SOURce<HW>]:BB:GNSS:SYSTem:BEIDou:SIGNal:L2Band:B3I:[STATe]`` \n Snippet: ``driver.source.bb.gnss.system.beidou.signal.l2Band.b3I.set_state(signal_state = False)`` \n Enables the corresponding signal from the GNSS system in the corresponding RF band. :param signal_state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(signal_state) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SYSTem:BEIDou:SIGNal:L2Band:B3I:STATe {param}')