from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ControlCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("control", core, parent)
[docs]
def set(self, mode: enums.AutoManualMode) -> None:
"""
``[SENSe]:CONFigure:CONTrol`` \n
Snippet: ``driver.applications.k30NoiseFigure.sense.configure.control.set(mode = enums.AutoManualMode.AUTO)`` \n
Selects the measurement mode for the 'Level (Hot) ' and 'Level (Cold) 'measurements. Note that selecting a noise source
with resistor characteristics with method
``RsFsw.applications.k30NoiseFigure.sense.correction.enr.calibration.typePy.set()`` or method
``RsFsw.applications.k30NoiseFigure.sense.correction.enr.measurement.typePy.set()`` automatically selects manual
measurement mode.
:param mode: AUTO | MANual AUTO Performs the 'Level (Hot) ' and 'Level (Cold) ' measurement in one step. MANual Performs the 'Level (Hot) ' and 'Level (Cold) ' measurement in two separate steps.
"""
param = Conversions.enum_scalar_to_str(mode, enums.AutoManualMode)
self._core.io.write(f'SENSe:CONFigure:CONTrol {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.AutoManualMode:
"""
``[SENSe]:CONFigure:CONTrol`` \n
Snippet: ``value: enums.AutoManualMode = driver.applications.k30NoiseFigure.sense.configure.control.get()`` \n
Selects the measurement mode for the 'Level (Hot) ' and 'Level (Cold) 'measurements. Note that selecting a noise source
with resistor characteristics with method
``RsFsw.applications.k30NoiseFigure.sense.correction.enr.calibration.typePy.set()`` or method
``RsFsw.applications.k30NoiseFigure.sense.correction.enr.measurement.typePy.set()`` automatically selects manual
measurement mode.
:return: mode: AUTO | MANual AUTO Performs the 'Level (Hot) ' and 'Level (Cold) ' measurement in one step. MANual Performs the 'Level (Hot) ' and 'Level (Cold) ' measurement in two separate steps.
"""
response = self._core.io.query_str(f'SENSe:CONFigure:CONTrol?')
return Conversions.str_to_scalar_enum(response, enums.AutoManualMode)