Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Pattern.Ask.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, askn_state: float) -> None: """ ``[SENSe]:DDEMod:PATTern:ASK:NSTate`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.pattern.ask.nstate.set(askn_state = 1.0)`` \n Defines the demodulation order for ASK for the pattern (see also method ``RsFsw.applications.k70Vsa.sense.ddemod.pattern.formatPy.set()`` ) . Depending on the demodulation state, the following orders are available: <ASKNstate> / Order \n - 2 / 2ASK - 4 / 4ASK Is only available if the additional Multi-Modulation Analysis option (FSW-K70M) is installed. :param askn_state: 2 | 4 """ param = Conversions.decimal_value_to_str(askn_state) self._core.io.write(f'SENSe:DDEMod:PATTern:ASK:NSTate {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DDEMod:PATTern:ASK:NSTate`` \n Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.pattern.ask.nstate.get()`` \n Defines the demodulation order for ASK for the pattern (see also method ``RsFsw.applications.k70Vsa.sense.ddemod.pattern.formatPy.set()`` ) . Depending on the demodulation state, the following orders are available: <ASKNstate> / Order \n - 2 / 2ASK - 4 / 4ASK Is only available if the additional Multi-Modulation Analysis option (FSW-K70M) is installed. :return: askn_state: 2 | 4 """ response = self._core.io.query_str(f'SENSe:DDEMod:PATTern:ASK:NSTate?') return Conversions.str_to_float(response)