In TestFlow's instrument library, the Keysight E5071C takes 59 SCPI commands, 14 of them queries, and the Rohde & Schwarz ZVA24 takes 59 SCPI commands, 13 of them queries. The two libraries are the same size, but they do not hold the same commands. Counting distinct command headers (the command path without its arguments), 37 are accepted by both, 13 exist only on the E5071C, and 12 only on the ZVA24. 74% of the E5071C's command headers also exist on the ZVA24.
Both libraries have commands under SENSe, CALCulate, INITiate, DISPlay, MMEMory, SOURce, OUTPut, and SYSTem, plus 1 more root. Only the ZVA24 has HCOPy.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the E5072A the same command set as the E5071C, so the E5071C column applies to it too. TestFlow's library gives the ZVA40, ZVA67, ZVA8, ZVB14, ZVB4, and ZVB8 the same command set as the ZVA24, so the ZVA24 column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5071C or Rohde & Schwarz ZVA24 and writes the report from the measured results.
Counts come from TestFlow's instrument library, the command sets its AI agent uses to drive each instrument. A distinct command header is the command path without its arguments, so :OUTPut ON and :OUTPut OFF count once.
| Keysight E5071C | Rohde & Schwarz ZVA24 | |
|---|---|---|
| Commands in TestFlow's library | 59 | 59 |
| Queries (read a value or state) | 14 | 13 |
| Settings and actions | 45 | 46 |
| Subsystems | 13 | 14 |
| Distinct command headers | 50 | 49 |
| Headers the other lacks | 13 | 12 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | E5071C, E5072A | ZVA24, ZVA40, ZVA67, ZVA8, ZVB14, ZVB4, ZVB8 |
37 command headers are in both libraries. Here are 12, taken across subsystems. Where the ZVA24 library writes the command differently, its form is shown under the E5071C's.
| Command | What it does |
|---|---|
| SENSe:FREQuency:STARt <Frequency> | Set Start Freq. Sets the sweep start frequency in Hz. |
| CALCulate:PARameter<Number>:SELectZVA24: CALCulate:PARameter:SELect '<Name>' | Select By Number. Selects the active measurement by its trace number. |
| INITiate:CONTinuous ON | Continuous On. Enables continuous (free-run) triggering. |
| SOURce:POWer <Power> | Set Power Level. Sets the source output power level in dBm. |
| OUTPut:STATe ON | RF Power On. Turns the RF source power output on. |
| SYSTem:PRESet | Preset. Presets the analyzer to its default measurement state. |
| TRIGger:SOURce <Source> | Set Trigger Source. Sets the trigger source for the sweep. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| SENSe:FREQuency:STOP <Frequency> | Set Stop Freq. Sets the sweep stop frequency in Hz. |
| CALCulate:FORMat <Format> | Set Format. Sets the display/data format for the selected trace. |
| INITiate:IMMediate | Trigger Single. Triggers a single sweep when not in continuous mode. |
| SOURce:POWer? | Read Power Level. Returns the source output power level in dBm. |
13 command headers in the E5071C library have no match in the ZVA24 library. Below are 11 of them from the 4 largest subsystems; the full list is in the Keysight E5071C command reference.
| Command | What it does |
|---|---|
| CALCulate:PARameter<Trace>:DEFine <Parameter> | Define Measurement. Creates a new measurement trace with the given name and S-parameter. |
| CALCulate:PARameter:TNAMe:SELect '<Name>' | Select Measurement. Selects an existing measurement trace by name for subsequent commands. |
| CALCulate:DATA:FDATa? | Read Formatted Data. Returns the formatted trace data array for the selected measurement. |
| CALCulate:DATA:SDATa? | Read Complex Data. Returns the corrected complex (real/imag) trace data array. |
| Command | What it does |
|---|---|
| DISPlay:WINDow:TRACe:Y:SCALe:AUTO | Autoscale. Autoscales the active trace to fit the display. |
| DISPlay:WINDow:TRACe:Y:SCALe:PDIVision <Per_Div> | Set Y Scale. Sets the vertical scale per division for the active trace. |
| DISPlay:WINDow:TRACe:Y:SCALe:RLEVel <Level> | Set Ref Level. Sets the reference level for the active trace. |
| Command | What it does |
|---|---|
| MMEMory:STORe '<Filename>' | Save State. Saves the instrument state/data to the named file. |
| MMEMory:LOAD '<Filename>' | Recall State. Recalls an instrument state from the named file. |
| MMEMory:STORe:IMAGe '<Filename>' | Save Screenshot. Saves a screenshot image to the named file. |
| Command | What it does |
|---|---|
| SYSTem:ERRor? | Read Error. Reads the next message from the error queue. |
12 command headers in the ZVA24 library have no match in the E5071C library. Below are 11 of them from the 5 largest subsystems; the full list is in the Rohde & Schwarz ZVA24 command reference.
| Command | What it does |
|---|---|
| CALCulate:PARameter:SDEFine '<Name>','<Parameter>' | Define Trace. Creates a trace with the given name and S-parameter (R&S SDEFine syntax). |
| CALCulate:PARameter:DELete '<Name>' | Delete Trace. Deletes the named trace. |
| CALCulate:PARameter:DELete:ALL | Delete All Traces. Deletes all traces in all channels. |
| CALCulate:DATA? FDATa | Read Formatted Data. Returns the formatted trace data of the active trace. |
| Command | What it does |
|---|---|
| DISPlay:TRACe:Y:SCALe:AUTO ONCE | Autoscale. Autoscales the active trace once to fit the diagram. |
| DISPlay:TRACe:Y:SCALe:PDIVision <Per_Div> | Set Y Scale. Sets the vertical scale per division of the active trace. |
| DISPlay:TRACe:Y:SCALe:RLEVel <Level> | Set Ref Level. Sets the reference level of the active trace. |
| Command | What it does |
|---|---|
| MMEMory:STORe:STATe 1,'<Filename>' | Save State. Saves the instrument setup to the named recall set file. |
| MMEMory:LOAD:STATe 1,'<Filename>' | Recall State. Loads an instrument setup from the named file. |
| Command | What it does |
|---|---|
| HCOPy:DESTination 'MMEM' ; ... | Save Screenshot. Saves a screenshot of the display to the named file. |
| Command | What it does |
|---|---|
| SYSTem:ERRor:NEXT? | Read Error. Reads the next entry from the error queue. |
With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold OUTPut:STATe (rf power on), and the same line runs on each. For the reading, both libraries hold SENSe:FREQuency:STARt? (read start freq), and the same line runs on each. For the basics, see the PyVISA tutorial.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find both VISA addresses
a = rm.open_resource("PASTE_E5071C_ADDRESS") # Keysight E5071C
b = rm.open_resource("PASTE_ZVA24_ADDRESS") # Rohde & Schwarz ZVA24
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: RF Power On
a.write("OUTPut:STATe ON")
b.write("OUTPut:STATe ON")
# The same reading on both: Read Start Freq
print(a.query("SENSe:FREQuency:STARt?"))
print(b.query("SENSe:FREQuency:STARt?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5071C or Rohde & Schwarz ZVA24 and writes the report from the measured results.
In TestFlow's library the E5071C has 59 SCPI commands and the ZVA24 has 59 SCPI commands. 37 command headers are common to both, 13 are only on the E5071C (mostly CALCulate and DISPlay), and 12 are only on the ZVA24 (mostly CALCulate and DISPlay).
Partly. 37 command headers are accepted by both, including SENSe:FREQuency:STARt, CALCulate:PARameter<Number>:SELect, and INITiate:CONTinuous. 25 are not, for example CALCulate:PARameter<Trace>:DEFine on the E5071C and CALCulate:PARameter:SDEFine on the ZVA24, so a script that uses those needs a separate branch for each instrument.
Neither: both have 59 commands in TestFlow's library. Of those, 14 on the E5071C and 13 on the ZVA24 are queries that read a value or state, and the library splits them into 13 and 14 subsystems.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?. Each command named here is listed in the tables on this page and on each instrument's command reference.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.