Srecorder

SCPI Commands :

SYSTem:SRECorder:CLEar
SYSTem:SRECorder:EXPort
Commands in total: 6
Subgroups: 4
Direct child commands: 2
clear() None[source]
# SYSTem:SRECorder:CLEar
driver.system.srecorder.clear()

Removes all recorded commands from the current SCPI command list.

clear_with_opc(opc_timeout_ms: int = -1) None[source]
# SYSTem:SRECorder:CLEar
driver.system.srecorder.clear_with_opc()

Removes all recorded commands from the current SCPI command list.

Same as clear, but waits for the operation to complete before continuing further. Use the RsFsw.utilities.opc_timeout_set() to set the timeout value.

Parameters:

opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.

export(format_py: ScpiRecorderExportFormat, filename: str) None[source]
# SYSTem:SRECorder:EXPort
driver.system.srecorder.export(format_py = enums.ScpiRecorderExportFormat.CPLusplus, filename = 'abc')

Exports the current SCPI command list to the specified file and directory in the selected format. By default, the file is stored in the C:/R_S/INSTR/ScpiRecordings directory. Besides the recorded commands themselves, the exported script includes all format-specific header data required to execute the script using an external program on the controller.

Parameters:
  • format_py – SCPI | PYTHon | MATLab | CPLusplus | CVI | CSHarp CPLusplus A commonly used general programming language for various applications (.cpp) MATLab (Instrument Control Toolbox) A programming environment, frequently used in signal processing and test and measurement applications (.m) You can use this format directly with the MATLAB Toolkit. CVI An ANSI C programming environment designed for measurements and tests (.cvi) You can use this format directly with National Instruments LabWindows CVI. SCPI Represents SCPI base format, that is ASCII format, saved as a text file (.inp) ; contains no additional header data Use this format to load a recorded script back to the editor later. PYTHon A commonly used general programming language for various applications (.py)

  • filename – String containing the path and name of the file.

Cloning the Group

# Create a copy of the original group, that exists independently
srecorder_copy = driver.system.srecorder.clone()

Subgroups