Source code for RsFsw.Implementations.Applications.K70_Vsa.Sense.Ddemod.Fsk.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, fskn_state: float) -> None: """ ``[SENSe]:DDEMod:FSK:NSTate`` \n Snippet: ``driver.applications.k70Vsa.sense.ddemod.fsk.nstate.set(fskn_state = 1.0)`` \n Defines the demodulation of the FSK modulation scheme. :param fskn_state: 2 | 4 | 8 | 16 2 2FSK 4 4FSK 8 8FSK 16 16FSK """ param = Conversions.decimal_value_to_str(fskn_state) self._core.io.write(f'SENSe:DDEMod:FSK:NSTate {param}')
[docs] def get(self) -> float: """ ``[SENSe]:DDEMod:FSK:NSTate`` \n Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.fsk.nstate.get()`` \n Defines the demodulation of the FSK modulation scheme. :return: fskn_state: 2 | 4 | 8 | 16 2 2FSK 4 4FSK 8 8FSK 16 16FSK """ response = self._core.io.query_str(f'SENSe:DDEMod:FSK:NSTate?') return Conversions.str_to_float(response)