from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MeasurementCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("measurement", core, parent)
[docs]
def set(self, measurement: enums.Temperature) -> None:
"""
``[SENSe]:CONFigure:MEASurement`` \n
Snippet: ``driver.applications.k30NoiseFigure.sense.configure.measurement.set(measurement = enums.Temperature.COLD)`` \n
Selects the type of power measurement to perform next. The command is available for manual measurements (seemethod
``RsFsw.applications.k30NoiseFigure.sense.configure.control.set()`` ) .
:param measurement: HOT | COLD COLD Performs the 'Level (Cold) ' measurement next. HOT Performs the 'Level (Hot) ' measurement next.
"""
param = Conversions.enum_scalar_to_str(measurement, enums.Temperature)
self._core.io.write(f'SENSe:CONFigure:MEASurement {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.Temperature:
"""
``[SENSe]:CONFigure:MEASurement`` \n
Snippet: ``value: enums.Temperature = driver.applications.k30NoiseFigure.sense.configure.measurement.get()`` \n
Selects the type of power measurement to perform next. The command is available for manual measurements (seemethod
``RsFsw.applications.k30NoiseFigure.sense.configure.control.set()`` ) .
:return: measurement: HOT | COLD COLD Performs the 'Level (Cold) ' measurement next. HOT Performs the 'Level (Hot) ' measurement next.
"""
response = self._core.io.query_str(f'SENSe:CONFigure:MEASurement?')
return Conversions.str_to_scalar_enum(response, enums.Temperature)