Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Msk.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, msk_format: enums.MskFormat) -> None:
"""
``[SENSe]:DDEMod:MSK:FORMat`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.msk.formatPy.set(msk_format = enums.MskFormat.DIFFerential)`` \n
Defines the specific demodulation order for MSK.
:param msk_format: TYPe1 | TYPe2 | NORMal | DIFFerential TYPE1 | NORMal Demodulation order MSK is used. TYPE2 | DIFFerential Demodulation order DMSK is used.
"""
param = Conversions.enum_scalar_to_str(msk_format, enums.MskFormat)
self._core.io.write(f'SENSe:DDEMod:MSK:FORMat {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.MskFormat:
"""
``[SENSe]:DDEMod:MSK:FORMat`` \n
Snippet: ``value: enums.MskFormat = driver.applications.k70Vsa.sense.ddemod.msk.formatPy.get()`` \n
Defines the specific demodulation order for MSK.
:return: msk_format: TYPe1 | TYPe2 | NORMal | DIFFerential TYPE1 | NORMal Demodulation order MSK is used. TYPE2 | DIFFerential Demodulation order DMSK is used.
"""
response = self._core.io.query_str(f'SENSe:DDEMod:MSK:FORMat?')
return Conversions.str_to_scalar_enum(response, enums.MskFormat)