Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Qam.FormatPy
from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FormatPyCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("formatPy", core, parent)
[docs]
def set(self, qam_format: enums.QamFormat) -> None:
"""
``[SENSe]:DDEMod:QAM:FORMat`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.qam.formatPy.set(qam_format = enums.QamFormat.DIFFerential)`` \n
Defines the specific demodulation order for QAM.
:param qam_format: NORMal | DIFFerential | NPI4 | MNPi4 NORMal Demodulation order QAM is used. DIFFerential Demodulation order DQAM is used. NPI4 Demodulation order Pi/4-16QAM is used. MNPI4 Demodulation order -Pi/4-32QAM is used.
"""
param = Conversions.enum_scalar_to_str(qam_format, enums.QamFormat)
self._core.io.write(f'SENSe:DDEMod:QAM:FORMat {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.QamFormat:
"""
``[SENSe]:DDEMod:QAM:FORMat`` \n
Snippet: ``value: enums.QamFormat = driver.applications.k70Vsa.sense.ddemod.qam.formatPy.get()`` \n
Defines the specific demodulation order for QAM.
:return: qam_format: NORMal | DIFFerential | NPI4 | MNPi4 NORMal Demodulation order QAM is used. DIFFerential Demodulation order DQAM is used. NPI4 Demodulation order Pi/4-16QAM is used. MNPI4 Demodulation order -Pi/4-32QAM is used.
"""
response = self._core.io.query_str(f'SENSe:DDEMod:QAM:FORMat?')
return Conversions.str_to_scalar_enum(response, enums.QamFormat)