Vector Network Analyzer · SCPI command comparison

Keysight E5080A vs Rohde & Schwarz ZNA26: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight E5080A takes 60 SCPI commands, 14 of them queries, and the Rohde & Schwarz ZNA26 takes 59 SCPI commands, 13 of them queries. That is 1 more on the E5080A. Counting distinct command headers (the command path without its arguments), 38 are accepted by both, 13 exist only on the E5080A, and 11 only on the ZNA26. 75% of the E5080A's command headers also exist on the ZNA26.

Both libraries have commands under SENSe, CALCulate, INITiate, DISPlay, MMEMory, SOURce, OUTPut, and SYSTem, plus 1 more root. Only the ZNA26 has HCOPy.

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.

TestFlow's library gives the E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, and P9375A the same command set as the E5080A, so the E5080A column applies to them too. TestFlow's library gives the ZNA43, ZNA50, ZNA67, ZNB20, ZNB26, ZNB3000, ZNB4, ZNB40, ZNB43, ZNB8, ZNBT20, ZNBT26, ZNBT8, and ZND the same command set as the ZNA26, so the ZNA26 column applies to them too.

E5080A commands
60
ZNA26 commands
59
Shared headers
38
Unique headers
24

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5080A or Rohde & Schwarz ZNA26 and writes the report from the measured results.

Get started

E5080A vs ZNA26 at a glance

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 E5080ARohde & Schwarz ZNA26
Commands in TestFlow's library6059
Queries (read a value or state)1413
Settings and actions4646
Subsystems1314
Distinct command headers5149
Headers the other lacks1311
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setE5080A, E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, P9375AZNA26, ZNA43, ZNA50, ZNA67, ZNB20, ZNB26, ZNB3000, ZNB4, ZNB40, ZNB43, ZNB8, ZNBT20, ZNBT26, ZNBT8, ZND

Commands both accept

38 command headers are in both libraries. Here are 12, taken across subsystems.

CommandWhat it does
SENSe:FREQuency:STARt <Frequency>Set Start Freq. Sets the sweep start frequency in Hz.
CALCulate:PARameter:SELect '<Name>'Select Measurement. Selects an existing measurement trace by name for subsequent commands.
INITiate:IMMediateTrigger Single. Triggers a single sweep when not in continuous mode.
SOURce:POWer <Power>Set Power Level. Sets the source output power level in dBm.
OUTPut:STATe ONRF Power On. Turns the RF source power output on.
SYSTem:PRESetPreset. 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:PARameter:DELete '<Name>'Delete Measurement. Deletes the named measurement trace.
SOURce:POWer?Read Power Level. Returns the source output power level in dBm.
*RSTReset. Resets the instrument to its default state.

Only on the Keysight E5080A

13 command headers in the E5080A library have no match in the ZNA26 library. Below are 12 of them from the 5 largest subsystems; the full list is in the Keysight E5080A command reference.

CALCulate (5 only on the E5080A)

CommandWhat it does
CALCulate:PARameter:DEFine:EXTended '<Name>',<Parameter>Define Measurement. Creates a new measurement trace with the given name and S-parameter.
CALCulate:PARameter:MNUMber <Number>Select By Number. Selects the active measurement by its trace number.
CALCulate:MEASure<Measurement>:DATA:FDATA?Read Formatted Data. Returns the formatted trace data array for the selected measurement.
CALCulate:MEASure<Measurement>:DATA:SDATA?Read Complex Data. Returns the corrected complex (real/imag) trace data array.

DISPlay (3 only on the E5080A)

CommandWhat it does
DISPlay:WINDow:TRACe:Y:SCALe:AUTOAutoscale. 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.

MMEMory (3 only on the E5080A)

CommandWhat 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:SSCReen '<Filename>'Save Screenshot. Saves a screenshot image to the named file.

INITiate (1 only on the E5080A)

CommandWhat it does
INITiate:CONTinuous ONContinuous On. Enables continuous (free-run) triggering.

SYSTem (1 only on the E5080A)

CommandWhat it does
SYSTem:ERRor?Read Error. Reads the next message from the error queue.

Only on the Rohde & Schwarz ZNA26

11 command headers in the ZNA26 library have no match in the E5080A library. Below are 10 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz ZNA26 command reference.

DISPlay (3 only on the ZNA26)

CommandWhat it does
DISPlay:TRACe:Y:SCALe:AUTO ONCEAutoscale. 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.

CALCulate (2 only on the ZNA26)

CommandWhat it does
CALCulate:PARameter:SDEFine '<Name>','<Parameter>'Define Trace. Creates a trace with the given name and S-parameter (R&S SDEFine syntax).
CALCulate:DATA? FDATaRead Formatted Data. Returns the formatted trace data of the active trace.

MMEMory (2 only on the ZNA26)

CommandWhat 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.

HCOPy (1 only on the ZNA26)

CommandWhat it does
HCOPy:DESTination 'MMEM' ; ...Save Screenshot. Saves a screenshot of the display to the named file.

IEEE 488.2 common (*) (1 only on the ZNA26)

CommandWhat it does
*TRGTrigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state.

INITiate (1 only on the ZNA26)

CommandWhat it does
INITiate:CONTinuous:ALL ONContinuous On. Enables continuous sweep on all channels.

Control both from Python

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_E5080A_ADDRESS")  # Keysight E5080A
b = rm.open_resource("PASTE_ZNA26_ADDRESS")  # Rohde & Schwarz ZNA26
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()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5080A or Rohde & Schwarz ZNA26 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight E5080A and the Rohde & Schwarz ZNA26 for remote control?

In TestFlow's library the E5080A has 60 SCPI commands and the ZNA26 has 59 SCPI commands. 38 command headers are common to both, 13 are only on the E5080A (mostly CALCulate and DISPlay), and 11 are only on the ZNA26 (mostly DISPlay and CALCulate).

Can I use the same SCPI code for the Keysight E5080A and the Rohde & Schwarz ZNA26?

Partly. 38 command headers are accepted by both, including SENSe:FREQuency:STARt, CALCulate:PARameter:SELect, and INITiate:IMMediate. 24 are not, for example CALCulate:PARameter:DEFine:EXTended on the E5080A and DISPlay:TRACe:Y:SCALe:AUTO on the ZNA26, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the E5080A or the ZNA26?

The E5080A: 60 commands for the E5080A against 59 for the ZNA26 in TestFlow's library. Of those, 14 on the E5080A and 13 on the ZNA26 are queries that read a value or state, and the library splits them into 13 and 14 subsystems.

How do the E5080A and ZNA26 signal operation complete and report errors?

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.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.