Source code for RsFsw.Implementations.Applications.K60_Transient.Calculate.HopDetection.Pdeviation.Reference

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


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

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

[docs] def set(self, reference: enums.ResultDevReference, window=repcap.Window.Default) -> None: """ ``CALCulate<n>:HOPDetection:PDEViation:REFerence`` \n Snippet: ``driver.applications.k60Transient.calculate.hopDetection.pdeviation.reference.set(reference = enums.ResultDevReference.CENTer, window = repcap.Window.Default)`` \n Defines the reference point for positioning the phase deviation measurement range. For details on the measurement range parameters see 'Measurement range'. :param reference: CENTer | EDGE | FMSettling | PMSettling EDGE The measurement range is defined in reference to the hop's rising or falling edge (see method ``RsFsw.applications.k60Transient.calculate.hopDetection.frequency.offset.begin.set()`` and method ``RsFsw.applications.k60Transient.calculate.hopDetection.frequency.offset.end.set()`` ) . CENTer The measurement range is defined in reference to the center of the hop. FMSEttling The measurement range starts at the FM settling point (see method ``RsFsw.applications.k60Transient.sense.hop.fmSettling.fmSpoint.get()`` ) . PMSEttling The measurement range starts at the PM settling point (see method ``RsFsw.applications.k60Transient.sense.hop.pmSettling.pmSpoint.get()`` ) . :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') """ param = Conversions.enum_scalar_to_str(reference, enums.ResultDevReference) window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) self._core.io.write(f'CALCulate{window_cmd_val}:HOPDetection:PDEViation:REFerence {param}')
# noinspection PyTypeChecker
[docs] def get(self, window=repcap.Window.Default) -> enums.ResultDevReference: """ ``CALCulate<n>:HOPDetection:PDEViation:REFerence`` \n Snippet: ``value: enums.ResultDevReference = driver.applications.k60Transient.calculate.hopDetection.pdeviation.reference.get(window = repcap.Window.Default)`` \n Defines the reference point for positioning the phase deviation measurement range. For details on the measurement range parameters see 'Measurement range'. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :return: reference: CENTer | EDGE | FMSettling | PMSettling EDGE The measurement range is defined in reference to the hop's rising or falling edge (see method ``RsFsw.applications.k60Transient.calculate.hopDetection.frequency.offset.begin.set()`` and method ``RsFsw.applications.k60Transient.calculate.hopDetection.frequency.offset.end.set()`` ) . CENTer The measurement range is defined in reference to the center of the hop. FMSEttling The measurement range starts at the FM settling point (see method ``RsFsw.applications.k60Transient.sense.hop.fmSettling.fmSpoint.get()`` ) . PMSEttling The measurement range starts at the PM settling point (see method ``RsFsw.applications.k60Transient.sense.hop.pmSettling.pmSpoint.get()`` ) . """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) response = self._core.io.query_str(f'CALCulate{window_cmd_val}:HOPDetection:PDEViation:REFerence?') return Conversions.str_to_scalar_enum(response, enums.ResultDevReference)