Source code for rsrtx.Implementations.TrProbe.Setup.Gain

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


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

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

[docs] def get_auto(self) -> float: """ ``TRPRobe:SETup:GAIN:AUTO`` \n Snippet: ``value: float = driver.trProbe.setup.gain.get_auto()`` \n No help available """ response = self._core.io.query_str_with_opc('TRPRobe:SETup:GAIN:AUTO?') return Conversions.str_to_float(response)
[docs] def get_manual(self) -> float: """ ``TRPRobe:SETup:GAIN:MANual`` \n Snippet: ``value: float = driver.trProbe.setup.gain.get_manual()`` \n Sets the gain of a current probe. """ response = self._core.io.query_str_with_opc('TRPRobe:SETup:GAIN:MANual?') return Conversions.str_to_float(response)
[docs] def set_manual(self, prb_gn_md_manual: float) -> None: """ ``TRPRobe:SETup:GAIN:MANual`` \n Snippet: ``driver.trProbe.setup.gain.set_manual(prb_gn_md_manual = 1.0)`` \n Sets the gain of a current probe. :param prb_gn_md_manual: 100E-6 to 10000 """ param = Conversions.decimal_value_to_str(prb_gn_md_manual) self._core.io.write_with_opc(f'TRPRobe:SETup:GAIN:MANual {param}')