Source code for RsFsw.Implementations.Calculate.Marker.Function.NdbDown.Time

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ...... import repcap


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

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

	# noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """ Response structure. Fields: \n - 1 Time_X_1: float: absolute position in time of the n dB marker to the left of the reference marker in seconds - 2 Time_X_2: float: absolute position in time of the n dB marker to the right of the reference marker in seconds """ __meta_args_list = [ ArgStruct.scalar_float('Time_X_1'), ArgStruct.scalar_float('Time_X_2')] def __init__(self): StructBase.__init__(self, self) self.Time_X_1: float = None self.Time_X_2: float = None
[docs] def get(self, window=repcap.Window.Default, marker=repcap.Marker.Default) -> GetStruct: """ ``CALCulate<n>:MARKer<m>:FUNCtion:NDBDown:TIME`` \n Snippet: ``value: GetStruct = driver.calculate.marker.function.ndbDown.time.get(window = repcap.Window.Default, marker = repcap.Marker.Default)`` \n Queries the position of the n dB down markers on the x-axis when measuring in the time domain. To get a valid result, you have to perform a complete measurement with synchronization to the end of the measurement before reading out the result. This is only possible for single sweep mode. See also method ``RsFsw.applications.k10Xlte.initiate.continuous.set()`` . :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :param marker: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Marker') :return: structure: for return value, see the help for GetStruct structure arguments. """ window_cmd_val = self._cmd_group.get_repcap_cmd_value(window, repcap.Window) marker_cmd_val = self._cmd_group.get_repcap_cmd_value(marker, repcap.Marker) return self._core.io.query_struct(f'CALCulate{window_cmd_val}:MARKer{marker_cmd_val}:FUNCtion:NDBDown:TIME?', self.__class__.GetStruct())