Source code for RsFsw.Implementations.Applications.K60_Transient.Calculate.Rtms.Window.Ival

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 IvalCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

	# noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """ Response structure. Fields: \n - 1 Int_Start: float: Analysis start = Capture offset time Unit: s - 2 Int_Stop: float: Analysis end = capture offset + capture time Unit: s """ __meta_args_list = [ ArgStruct.scalar_float('Int_Start'), ArgStruct.scalar_float('Int_Stop')] def __init__(self): StructBase.__init__(self, self) self.Int_Start: float = None self.Int_Stop: float = None
[docs] def get(self, window=repcap.Window.Default) -> GetStruct: """ ``CALCulate<n>:RTMS:WINDow:IVAL`` \n Snippet: ``value: GetStruct = driver.applications.k60Transient.calculate.rtms.window.ival.get(window = repcap.Window.Default)`` \n Returns the current analysis interval for applications in MSRT operating mode. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Calculate') :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) return self._core.io.query_struct(f'CALCulate{window_cmd_val}:RTMS:WINDow:IVAL?', self.__class__.GetStruct())