Source code for RsFsw.Implementations.Trace.Iq.Egate.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 set(self, state: bool) -> None: """ ``TRACe:IQ:EGATe[:STATe]`` \n Snippet: ``driver.trace.iq.egate.state.set(state = False)`` \n Turns gated measurements with the I/Q analyzer on and off. Before you can use the command you have to turn on the I/Q analyzer and select an external or IF power trigger source. :param state: ON | OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'TRACe:IQ:EGATe:STATe {param}')
[docs] def get(self) -> bool: """ ``TRACe:IQ:EGATe[:STATe]`` \n Snippet: ``value: bool = driver.trace.iq.egate.state.get()`` \n Turns gated measurements with the I/Q analyzer on and off. Before you can use the command you have to turn on the I/Q analyzer and select an external or IF power trigger source. :return: state: ON | OFF """ response = self._core.io.query_str(f'TRACe:IQ:EGATe:STATe?') return Conversions.str_to_bool(response)