Source code for RsFsw.Implementations.Applications.IqAnalyzer.Sense.Iq.Fft.Window.Length

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


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

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

[docs] def set(self, length: int) -> None: """ ``[SENSe]:IQ:FFT:WINDow:LENGth`` \n Snippet: ``driver.applications.iqAnalyzer.sense.iq.fft.window.length.set(length = 1)`` \n Defines the number of samples to be included in a single FFT window when multiple FFT windows are used. :param length: integer value Range: 3 to 4096 """ param = Conversions.decimal_value_to_str(length) self._core.io.write(f'SENSe:IQ:FFT:WINDow:LENGth {param}')
[docs] def get(self) -> int: """ ``[SENSe]:IQ:FFT:WINDow:LENGth`` \n Snippet: ``value: int = driver.applications.iqAnalyzer.sense.iq.fft.window.length.get()`` \n Defines the number of samples to be included in a single FFT window when multiple FFT windows are used. """ response = self._core.io.query_str(f'SENSe:IQ:FFT:WINDow:LENGth?') return Conversions.str_to_int(response)