Source code for RsFsw.Implementations.Applications.K30_NoiseFigure.Sense.Correction.Enr.Calibration.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:CALibration:MODE \n Snippet: driver.applications.k30NoiseFigure.sense.correction.enr.calibration.mode.set(mode = enums.CorrectionMode.SPOT) \n Selects the ENR mode for the calibration. Is available when you use different noise sources for calibration and measurement ([SENSe:]CORRection:ENR:COMMon OFF) . \n :param mode: SPOT | TABLe SPOT Uses a constant ENR value for all measurement points (see [SENSe:]CORRection:ENR:CALibration: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:CALibration:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.CorrectionMode: """SCPI: [SENSe]:CORRection:ENR:CALibration:MODE \n Snippet: value: enums.CorrectionMode = driver.applications.k30NoiseFigure.sense.correction.enr.calibration.mode.get() \n Selects the ENR mode for the calibration. Is available when you use different noise sources for calibration and measurement ([SENSe:]CORRection:ENR:COMMon OFF) . \n :return: mode: SPOT | TABLe SPOT Uses a constant ENR value for all measurement points (see [SENSe:]CORRection:ENR:CALibration:SPOT) . TABLe Uses the contents of the ENR table.""" response = self._core.io.query_str(f'SENSe:CORRection:ENR:CALibration:MODE?') return Conversions.str_to_scalar_enum(response, enums.CorrectionMode)