Source code for RsFsw.Implementations.Applications.K30_NoiseFigure.Sense.Correction.Enr.Measurement.Mode

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class ModeCls: """Mode commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mode", core, parent)
[docs] def set(self, mode: enums.CorrectionMode) -> None: """SCPI: [SENSe]:CORRection:ENR[:MEASurement]:MODE \n Snippet: driver.applications.k30NoiseFigure.sense.correction.enr.measurement.mode.set(mode = enums.CorrectionMode.SPOT) \n Selects the ENR mode for the actual measurement. \n :param mode: SPOT | TABLe SPOT Uses a constant ENR value for all measurement points (see [SENSe:]CORRection:ENR[:MEASurement]:SPOT) . TABLe Uses the contents of the ENR table. """ param = Conversions.enum_scalar_to_str(mode, enums.CorrectionMode) self._core.io.write(f'SENSe:CORRection:ENR:MEASurement:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.CorrectionMode: """SCPI: [SENSe]:CORRection:ENR[:MEASurement]:MODE \n Snippet: value: enums.CorrectionMode = driver.applications.k30NoiseFigure.sense.correction.enr.measurement.mode.get() \n Selects the ENR mode for the actual measurement. \n :return: mode: SPOT | TABLe SPOT Uses a constant ENR value for all measurement points (see [SENSe:]CORRection:ENR[:MEASurement]:SPOT) . TABLe Uses the contents of the ENR table.""" response = self._core.io.query_str(f'SENSe:CORRection:ENR:MEASurement:MODE?') return Conversions.str_to_scalar_enum(response, enums.CorrectionMode)