Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Sense.Pmeter.Soffset

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SoffsetCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("soffset", core, parent)

[docs] def set(self, sensor_offset: float) -> None: """ ``[SENSe]:PMETer:SOFFset`` \n Snippet: ``driver.applications.k18AmplifierEt.sense.pmeter.soffset.set(sensor_offset = 1.0)`` \n Takes the specified offset into account for the measured power. Only available if method ``RsFsw.applications.k18AmplifierEt.sense.pmeter.roffset.state.set()`` is disabled. :param sensor_offset: Unit: DB """ param = Conversions.decimal_value_to_str(sensor_offset) self._core.io.write(f'SENSe:PMETer:SOFFset {param}')
[docs] def get(self) -> float: """ ``[SENSe]:PMETer:SOFFset`` \n Snippet: ``value: float = driver.applications.k18AmplifierEt.sense.pmeter.soffset.get()`` \n Takes the specified offset into account for the measured power. Only available if method ``RsFsw.applications.k18AmplifierEt.sense.pmeter.roffset.state.set()`` is disabled. :return: sensor_offset: Unit: DB """ response = self._core.io.query_str(f'SENSe:PMETer:SOFFset?') return Conversions.str_to_float(response)