[docs]classTraceCls:"""Trace commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("trace",core,parent)
[docs]defset(self,trace:float,filename:str,window=repcap.Window.Default)->None:"""SCPI: MMEMory:LOAD<n>:TRACe \n Snippet: driver.massMemory.load.trace.set(trace = 1.0, filename = 'abc', window = repcap.Window.Default) \n Imports trace data from the specified window to an ASCII file. For details on the file format see 'Reference: ASCII file export format'. \n :param trace: Number of the trace to be stored (This parameter is ignored for method RsFsw.FormatPy.Dimport.Traces.setALL) . :param filename: String containing the path and name of the import file. :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Load') """param=ArgSingleList().compose_cmd_string(ArgSingle('trace',trace,DataType.Float),ArgSingle('filename',filename,DataType.String))window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)self._core.io.write(f'MMEMory:LOAD{window_cmd_val}:TRACe {param}'.rstrip())
# noinspection PyTypeChecker
[docs]classTraceStruct(StructBase):"""Response structure. Fields: \n - Trace: float: Number of the trace to be stored (This parameter is ignored for [CMDLINKRESOLVED FormatPy.Dimport.Traces#set CMDLINKRESOLVED]ALL) . - Filename: str: String containing the path and name of the import file."""__meta_args_list=[ArgStruct.scalar_float('Trace'),ArgStruct.scalar_str('Filename')]def__init__(self):StructBase.__init__(self,self)self.Trace:float=Noneself.Filename:str=None
[docs]defget(self,window=repcap.Window.Default)->TraceStruct:"""SCPI: MMEMory:LOAD<n>:TRACe \n Snippet: value: TraceStruct = driver.massMemory.load.trace.get(window = repcap.Window.Default) \n Imports trace data from the specified window to an ASCII file. For details on the file format see 'Reference: ASCII file export format'. \n :param window: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Load') :return: structure: for return value, see the help for TraceStruct structure arguments."""window_cmd_val=self._cmd_group.get_repcap_cmd_value(window,repcap.Window)returnself._core.io.query_struct(f'MMEMory:LOAD{window_cmd_val}:TRACe?',self.__class__.TraceStruct())