Source code for RsFsw.Implementations.Applications.K40_PhaseNoise.Sense.Iq.Online

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


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

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

[docs] def set(self, state: bool) -> None: """ ``[SENSe]:IQ:ONLine`` \n Snippet: ``driver.applications.k40PhaseNoise.sense.iq.online.set(state = False)`` \n Turns the I/Q online measurement mode on and off. This mode is available for offset frequencies smaller than 30 kHz. Note that you have to For triggered gated measurements,only the following gate trigger sources are supported: \n - turn on decimation with method ``RsFsw.applications.k40PhaseNoise.sense.iq.decimation.set()`` - select the I/Q FFT mode for the affected half decades with method ``RsFsw.applications.k40PhaseNoise.sense.listPy.bandwidth.resolution.typePy.set()`` - turn off forward sweep withmethod ``RsFsw.applications.k40PhaseNoise.sense.sweep.forward.set()`` :param state: ON | OFF | 1 | 0 """ param = Conversions.bool_to_str(state) self._core.io.write(f'SENSe:IQ:ONLine {param}')
[docs] def get(self) -> bool: """ ``[SENSe]:IQ:ONLine`` \n Snippet: ``value: bool = driver.applications.k40PhaseNoise.sense.iq.online.get()`` \n Turns the I/Q online measurement mode on and off. This mode is available for offset frequencies smaller than 30 kHz. Note that you have to For triggered gated measurements,only the following gate trigger sources are supported: \n - turn on decimation with method ``RsFsw.applications.k40PhaseNoise.sense.iq.decimation.set()`` - select the I/Q FFT mode for the affected half decades with method ``RsFsw.applications.k40PhaseNoise.sense.listPy.bandwidth.resolution.typePy.set()`` - turn off forward sweep withmethod ``RsFsw.applications.k40PhaseNoise.sense.sweep.forward.set()`` :return: state: ON | OFF | 1 | 0 """ response = self._core.io.query_str(f'SENSe:IQ:ONLine?') return Conversions.str_to_bool(response)