Source code for rsmxo.Implementations.Franalysis.Amplitude.Profile.Point.Amplitude

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


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

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

[docs] def set(self, amplitude: float, point=repcap.Point.Default) -> None: """ ``FRANalysis:AMPLitude:PROFile:POINt<*>:AMPLitude`` \n Snippet: ``driver.franalysis.amplitude.profile.point.amplitude.set(amplitude = 1.0, point = repcap.Point.Default)`` \n Sets the amplitude for the selected point. :param amplitude: 0 to 5.995 :param point: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Point') """ param = Conversions.decimal_value_to_str(amplitude) point_cmd_val = self._cmd_group.get_repcap_cmd_value(point, repcap.Point) self._core.io.write(f'FRANalysis:AMPLitude:PROFile:POINt{point_cmd_val}:AMPLitude {param}')
[docs] def get(self, point=repcap.Point.Default) -> float: """ ``FRANalysis:AMPLitude:PROFile:POINt<*>:AMPLitude`` \n Snippet: ``value: float = driver.franalysis.amplitude.profile.point.amplitude.get(point = repcap.Point.Default)`` \n Sets the amplitude for the selected point. :param point: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Point') :return: amplitude: 0 to 5.995 """ point_cmd_val = self._cmd_group.get_repcap_cmd_value(point, repcap.Point) response = self._core.io.query_str(f'FRANalysis:AMPLitude:PROFile:POINt{point_cmd_val}:AMPLitude?') return Conversions.str_to_float(response)