Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Configure.RefSignal.Segment

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


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

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

[docs] def set(self, segment: float) -> None: """ ``CONFigure:REFSignal:SEGMent`` \n Snippet: ``driver.applications.k18AmplifierEt.configure.refSignal.segment.set(segment = 1.0)`` \n This command selects the segment of the reference signal that should be used in the measurement when the reference signal is based on a multi segment waveform file. :param segment: numeric value: (integer only) Range: Depends on the number of segments in the waveform file. """ param = Conversions.decimal_value_to_str(segment) self._core.io.write(f'CONFigure:REFSignal:SEGMent {param}')
[docs] def get(self) -> float: """ ``CONFigure:REFSignal:SEGMent`` \n Snippet: ``value: float = driver.applications.k18AmplifierEt.configure.refSignal.segment.get()`` \n This command selects the segment of the reference signal that should be used in the measurement when the reference signal is based on a multi segment waveform file. :return: segment: numeric value: (integer only) Range: Depends on the number of segments in the waveform file. """ response = self._core.io.query_str(f'CONFigure:REFSignal:SEGMent?') return Conversions.str_to_float(response)