from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SelectCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("select", core, parent)
[docs]
def set(self, err_type: enums.ErrorType) -> None:
"""
``CONFigure:BURSt:PREamble:SELect`` \n
Snippet: ``driver.applications.k91Wlan.configure.burst.preamble.select.set(err_type = enums.ErrorType.FREQuency)`` \n
This remote control command specifies whether frequency or phase results are displayed when the measurement type is set
to 'Error Vs Preamble' (method ``RsFsw.applications.k91Wlan.configure.burst.preamble.immediate.perform()`` ) .
:param err_type: FREQuency | PHASe FREQuency Displays frequency error results for the preamble of the measured PPDUs only PHASe Displays phase error results for the preamble of the measured PPDUs only
"""
param = Conversions.enum_scalar_to_str(err_type, enums.ErrorType)
self._core.io.write(f'CONFigure:BURSt:PREamble:SELect {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.ErrorType:
"""
``CONFigure:BURSt:PREamble:SELect`` \n
Snippet: ``value: enums.ErrorType = driver.applications.k91Wlan.configure.burst.preamble.select.get()`` \n
This remote control command specifies whether frequency or phase results are displayed when the measurement type is set
to 'Error Vs Preamble' (method ``RsFsw.applications.k91Wlan.configure.burst.preamble.immediate.perform()`` ) .
:return: err_type: FREQuency | PHASe FREQuency Displays frequency error results for the preamble of the measured PPDUs only PHASe Displays phase error results for the preamble of the measured PPDUs only
"""
response = self._core.io.query_str(f'CONFigure:BURSt:PREamble:SELect?')
return Conversions.str_to_scalar_enum(response, enums.ErrorType)