Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Pattern.Qam.Nstate

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NstateCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("nstate", core, parent)

[docs] def set(self, qamn_state: float) -> None: """ ``[SENSe]:DDEMod:PATTern:QAM:NSTate`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.pattern.qam.nstate.set(qamn_state = 1.0)`` \n Defines the demodulation order for QAM for the pattern. <QAMNSTate> / Order \n - 16 / 16QAM - 16 / Pi/4-16QAM - 32 / 32QAM - 32 / Pi/4-32QAM - 64 / 64QAM - 128 / 128QAM - 256 / 256QAM - 512 / 512QAM - 1024 / 1024QAM Is only available if the additional Multi-Modulation Analysis option (FSW-K70M) is installed. """ param = Conversions.decimal_value_to_str(qamn_state) self._core.io.write(f'SENSe:DDEMod:PATTern:QAM:NSTate {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DDEMod:PATTern:QAM:NSTate`` \n Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.pattern.qam.nstate.get()`` \n Defines the demodulation order for QAM for the pattern. <QAMNSTate> / Order \n - 16 / 16QAM - 16 / Pi/4-16QAM - 32 / 32QAM - 32 / Pi/4-32QAM - 64 / 64QAM - 128 / 128QAM - 256 / 256QAM - 512 / 512QAM - 1024 / 1024QAM Is only available if the additional Multi-Modulation Analysis option (FSW-K70M) is installed. """ response = self._core.io.query_str(f'SENSe:DDEMod:PATTern:QAM:NSTate?') return Conversions.str_to_float(response)