Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Mapping.Value

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:MAPPing[:VALue]`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.mapping.value.set(mapping = 'abc')`` \n Selects the mapping for digital demodulation. The mapping describes the assignment of constellation points to symbols. When using PRBS generators, select the _SMx mapping, which corresponds to the mapping used by R&S SMx signal generators. :param mapping: To obtain a list of available symbol mappings for the current modulation type use the method ``RsFsw.applications.k70Vsa.sense.ddemod.mapping.catalog.get()`` ? query. """ param = Conversions.value_to_quoted_str(mapping) self._core.io.write(f'SENSe:DDEMod:MAPPing:VALue {param}')
[docs] def get(self) -> str: """ ``[SENSe]:DDEMod:MAPPing[:VALue]`` \n Snippet: ``value: str = driver.applications.k70Vsa.sense.ddemod.mapping.value.get()`` \n Selects the mapping for digital demodulation. The mapping describes the assignment of constellation points to symbols. When using PRBS generators, select the _SMx mapping, which corresponds to the mapping used by R&S SMx signal generators. :return: mapping: To obtain a list of available symbol mappings for the current modulation type use the method ``RsFsw.applications.k70Vsa.sense.ddemod.mapping.catalog.get()`` ? query. """ response = self._core.io.query_str(f'SENSe:DDEMod:MAPPing:VALue?') return trim_str_response(response)