EasyManua.ls Logo

Keysight E6680A - Select Correction; SCPI Recorder; Save to File; Saving a SCPI Recording as a Python Script

Keysight E6680A
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Save/Recall/Print
7.3 Save
7.3.7.1 Select Correction
Selects the specific Correction to be saved, for example, Correction 1.
Preset Not part of a Preset, but reset to Correction 1 by Restore Input/Output Defaults
Survives a shutdown
7.3.8 SCPI Recorder
Contains controls to allow you to save SCPI recordings.
7.3.8.1 Save To File
Saves SCPI recording content to a file. For details of the SCPI Recording feature, see
"SCPI Recorder" on page 575.
There are two possible file formats:
Type Extension Details
Text
.txt
Default
Python
Script
.py
Generates a Python script that can be executed in Python
environment.. For details, see "Saving a SCPI Recording as a Python
Script" on page 958
The saved file content does not include the label of each recorded entry, just the
SCPI mnemonics. The file is saved to the following folder:
<user_name>:\Documents\Keysight\Infrastructure\ScpiRecording folder
Saving a SCPI Recording as a Python Script
To execute the generated Python script:
Install the Python version required by PyVisa
Download the PyVisa library from: https://pypi.org/project/PyVISA/
Modify the connection string, to specify your instrument’s connection string
Example Script
An example of the generated script is shown below.
# _install location: https://pypi.org/project/PyVISA/
import pyvisa
IQ Analyzer Mode User's &Programmer's Reference 958

Table of Contents

Related product manuals