Source code for RsFsw.Implementations.Applications.K30_NoiseFigure.Sense.Correction.Loss.Output.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:LOSS:OUTPut:MODE \n Snippet: driver.applications.k30NoiseFigure.sense.correction.loss.output.mode.set(mode = enums.CorrectionMode.SPOT) \n Selects the output loss mode. \n :param mode: SPOT | TABLe SPOT Uses a constant output loss value for all measurement points (see[SENSe:]CORRection:LOSS:OUTPut:SPOT ) . TABLe Uses the contents of the output loss table. """ param = Conversions.enum_scalar_to_str(mode, enums.CorrectionMode) self._core.io.write(f'SENSe:CORRection:LOSS:OUTPut:MODE {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.CorrectionMode: """SCPI: [SENSe]:CORRection:LOSS:OUTPut:MODE \n Snippet: value: enums.CorrectionMode = driver.applications.k30NoiseFigure.sense.correction.loss.output.mode.get() \n Selects the output loss mode. \n :return: mode: SPOT | TABLe SPOT Uses a constant output loss value for all measurement points (see[SENSe:]CORRection:LOSS:OUTPut:SPOT ) . TABLe Uses the contents of the output loss table.""" response = self._core.io.query_str(f'SENSe:CORRection:LOSS:OUTPut:MODE?') return Conversions.str_to_scalar_enum(response, enums.CorrectionMode)