Source code for RsFsw.Implementations.Applications.IqAnalyzer.Sense.Iq.Fft.Algorithm

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


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

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

[docs] def set(self, algorithm: enums.SummaryMode) -> None: """ ``[SENSe]:IQ:FFT:ALGorithm`` \n Snippet: ``driver.applications.iqAnalyzer.sense.iq.fft.algorithm.set(algorithm = enums.SummaryMode.AVERage)`` \n Defines the FFT calculation method. For more information see 'Basics on FFT'. :param algorithm: SINGle One FFT is calculated for the entire record length; if the FFT length is larger than the record length (see method ``RsFsw.applications.iqAnalyzer.sense.iq.fft.length.set()`` and method ``RsFsw.applications.k18AmplifierEt.trace.iq.rlength.get()`` ) , zeros are appended to the captured data. AVERage Several overlapping FFTs are calculated for each record; the results are averaged to determine the final FFT result for the record. The user-defined window length and window overlap are used. See method ``RsFsw.applications.iqAnalyzer.sense.iq.fft.window.length.set()`` and method ``RsFsw.applications.iqAnalyzer.sense.iq.fft.window.overlap.set()`` . """ param = Conversions.enum_scalar_to_str(algorithm, enums.SummaryMode) self._core.io.write(f'SENSe:IQ:FFT:ALGorithm {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.SummaryMode: """ ``[SENSe]:IQ:FFT:ALGorithm`` \n Snippet: ``value: enums.SummaryMode = driver.applications.iqAnalyzer.sense.iq.fft.algorithm.get()`` \n Defines the FFT calculation method. For more information see 'Basics on FFT'. """ response = self._core.io.query_str(f'SENSe:IQ:FFT:ALGorithm?') return Conversions.str_to_scalar_enum(response, enums.SummaryMode)