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, apskn_state: float) -> None:
"""
``[SENSe]:DDEMod:APSK:NSTate`` \n
Snippet: ``driver.applications.k70Vsa.sense.ddemod.apsk.nstate.set(apskn_state = 1.0)`` \n
Defines the specific demodulation mode for APSK.
:param apskn_state: 16 | 32 16 16APSK 32 32APSK
"""
param = Conversions.decimal_value_to_str(apskn_state)
self._core.io.write(f'SENSe:DDEMod:APSK:NSTate {param}')
[docs]
def get(self) -> float:
"""
``[SENSe]:DDEMod:APSK:NSTate`` \n
Snippet: ``value: float = driver.applications.k70Vsa.sense.ddemod.apsk.nstate.get()`` \n
Defines the specific demodulation mode for APSK.
:return: apskn_state: 16 | 32 16 16APSK 32 32APSK
"""
response = self._core.io.query_str(f'SENSe:DDEMod:APSK:NSTate?')
return Conversions.str_to_float(response)