from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FrontendCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("frontend", core, parent)
[docs]
def get(self) -> float:
"""
``SOURce:TEMPerature:FRONtend`` \n
Snippet: ``value: float = driver.source.temperature.frontend.get()`` \n
This command queries the current frontend temperature of the FSW. During self-alignment, the instrument's (frontend)
temperature is also measured (as soon as the instrument has warmed up completely) . This temperature is used as a
reference for a continuous temperature check during operation. If the current temperature deviates from the stored
self-alignment temperature by a certain degree, a warning is displayed in the status bar indicating the resulting
deviation in the measured power levels. A status bit in the STATUs:QUEStionable:TEMPerature register indicates a possible
deviation.
:return: temperature: Temperature in degrees Celsius.
"""
response = self._core.io.query_str(f'SOURce:TEMPerature:FRONtend?')
return Conversions.str_to_float(response)