Source code for RsFsw.Implementations.Applications.K60_Transient.Sense.Mixer.Loss.Low

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


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

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

[docs] def set(self, average: float) -> None: """ ``[SENSe]:MIXer:LOSS[:LOW]`` \n Snippet: ``driver.applications.k60Transient.sense.mixer.loss.low.set(average = 1.0)`` \n Defines the average conversion loss to be used for the entire low (first) range. :param average: Range: 0 to 100, Unit: dB """ param = Conversions.decimal_value_to_str(average) self._core.io.write(f'SENSe:MIXer:LOSS:LOW {param}')
[docs] def get(self) -> float: """ ``[SENSe]:MIXer:LOSS[:LOW]`` \n Snippet: ``value: float = driver.applications.k60Transient.sense.mixer.loss.low.get()`` \n Defines the average conversion loss to be used for the entire low (first) range. :return: average: Range: 0 to 100, Unit: dB """ response = self._core.io.query_str(f'SENSe:MIXer:LOSS:LOW?') return Conversions.str_to_float(response)