from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Apsk32Cls:
"""Apsk32 commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("apsk32", core, parent)
# noinspection PyTypeChecker
[docs] def get_gamma(self) -> enums.DmApskGamma1:
"""SCPI: [SOURce<HW>]:BB:DM:APSK32:GAMMa \n
Snippet: value: enums.DmApskGamma1 = driver.source.bb.dm.apsk32.get_gamma() \n
Sets the gamma function Y for the 32APSK modulation. \n
:return: gamma: G3D4| G4D5| G5D6| G8D9| G9D10 GxDy: G = Gamma function, xy = code rate
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DM:APSK32:GAMMa?')
return Conversions.str_to_scalar_enum(response, enums.DmApskGamma1)
[docs] def set_gamma(self, gamma: enums.DmApskGamma1) -> None:
"""SCPI: [SOURce<HW>]:BB:DM:APSK32:GAMMa \n
Snippet: driver.source.bb.dm.apsk32.set_gamma(gamma = enums.DmApskGamma1.G3D4) \n
Sets the gamma function Y for the 32APSK modulation. \n
:param gamma: G3D4| G4D5| G5D6| G8D9| G9D10 GxDy: G = Gamma function, xy = code rate
"""
param = Conversions.enum_scalar_to_str(gamma, enums.DmApskGamma1)
self._core.io.write(f'SOURce<HwInstance>:BB:DM:APSK32:GAMMa {param}')