from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class WindowCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("window", core, parent)
[docs]
def set(self, window_type: enums.IqFftWindowType) -> None:
"""
``RIQ:PFM:WINDow`` \n
Snippet: ``driver.applications.k6Pulse.riq.pfm.window.set(window_type = enums.IqFftWindowType.BLACkman)`` \n
Defines the FFT window function to be applied to the reference I/Q data. By default, a rectangular window function is
applied (i.e. no windowing) . For details on the effects of FFT windowing functions see Table 'Characteristics of typical
FFT window functions'.
:param window_type: RECTangle | GAUSs | CHEByshev | FLATtop | HAMMing | HANNing | BLACkman
"""
param = Conversions.enum_scalar_to_str(window_type, enums.IqFftWindowType)
self._core.io.write(f'RIQ:PFM:WINDow {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.IqFftWindowType:
"""
``RIQ:PFM:WINDow`` \n
Snippet: ``value: enums.IqFftWindowType = driver.applications.k6Pulse.riq.pfm.window.get()`` \n
Defines the FFT window function to be applied to the reference I/Q data. By default, a rectangular window function is
applied (i.e. no windowing) . For details on the effects of FFT windowing functions see Table 'Characteristics of typical
FFT window functions'.
:return: window_type: RECTangle | GAUSs | CHEByshev | FLATtop | HAMMing | HANNing | BLACkman
"""
response = self._core.io.query_str(f'RIQ:PFM:WINDow?')
return Conversions.str_to_scalar_enum(response, enums.IqFftWindowType)