Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.Pae.Ichannel.Offset

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


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

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

[docs] def set(self, offset: float) -> None: """ ``CONFigure:PAE:ICHannel:OFFSet`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.pae.ichannel.offset.set(offset = 1.0)`` \n This command defines an offset for the I channel. :param offset: numeric value Unit: No unit """ param = Conversions.decimal_value_to_str(offset) self._core.io.write(f'CONFigure:PAE:ICHannel:OFFSet {param}')
[docs] def get(self) -> float: """ ``CONFigure:PAE:ICHannel:OFFSet`` \n Snippet: ``value: float = driver.applications.k18AmplifierEt.configure.pae.ichannel.offset.get()`` \n This command defines an offset for the I channel. :return: offset: numeric value Unit: No unit """ response = self._core.io.query_str(f'CONFigure:PAE:ICHannel:OFFSet?') return Conversions.str_to_float(response)