from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ValueCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("value", core, parent)
[docs]
def set(self, mapping: str) -> None:
"""
``[SENSe]:DDEMod:PATTern:MAPPing[:VALue]`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.pattern.mapping.value.set(mapping = 'abc')`` \n
Selects the mapping for pattern demodulation. Is only available if the additional Multi-Modulation Analysis option
(FSW-K70M) is installed.
:param mapping: To obtain a list of available symbol mappings for the current modulation type use the method ``RsFsw.applications.k70Vsa.sense.ddemod.pattern.mapping.catalog.get()`` ? query.
"""
param = Conversions.value_to_quoted_str(mapping)
self._core.io.write(f'SENSe:DDEMod:PATTern:MAPPing:VALue {param}')
[docs]
def get(self) -> str:
"""
``[SENSe]:DDEMod:PATTern:MAPPing[:VALue]`` \n
Snippet: ``value: str = driver.applications.k70Vsa.sense.ddemod.pattern.mapping.value.get()`` \n
Selects the mapping for pattern demodulation. Is only available if the additional Multi-Modulation Analysis option
(FSW-K70M) is installed.
:return: mapping: To obtain a list of available symbol mappings for the current modulation type use the method ``RsFsw.applications.k70Vsa.sense.ddemod.pattern.mapping.catalog.get()`` ? query.
"""
response = self._core.io.query_str(f'SENSe:DDEMod:PATTern:MAPPing:VALue?')
return trim_str_response(response)