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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class HotCls: """Hot commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("hot", core, parent)
[docs] def set(self, temperature: float) -> None: """SCPI: [SENSe]:CORRection:ENR[:MEASurement]:SPOT:HOT \n Snippet: driver.applications.k30NoiseFigure.sense.correction.enr.measurement.spot.hot.set(temperature = 1.0) \n Defines a constant temperature of a resistor supplied with power (Thot) used during measurements. The command is available when you have selected a noise source with resistor characteristics with[SENSe:]CORRection:ENR[:MEASurement]:TYPE . \n :param temperature: Temperature in degrees Kelvin. Unit: K """ param = Conversions.decimal_value_to_str(temperature) self._core.io.write(f'SENSe:CORRection:ENR:MEASurement:SPOT:HOT {param}')
[docs] def get(self) -> float: """SCPI: [SENSe]:CORRection:ENR[:MEASurement]:SPOT:HOT \n Snippet: value: float = driver.applications.k30NoiseFigure.sense.correction.enr.measurement.spot.hot.get() \n Defines a constant temperature of a resistor supplied with power (Thot) used during measurements. The command is available when you have selected a noise source with resistor characteristics with[SENSe:]CORRection:ENR[:MEASurement]:TYPE . \n :return: temperature: Temperature in degrees Kelvin. Unit: K""" response = self._core.io.query_str(f'SENSe:CORRection:ENR:MEASurement:SPOT:HOT?') return Conversions.str_to_float(response)