Vector Network Analyzer · SCPI command comparison

Keysight E5080A vs Rohde & Schwarz ZNL14: 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 ZNL14 takes 26 SCPI commands, 3 of them queries. That is 34 more on the E5080A. Counting distinct command headers (the command path without its arguments), 10 are accepted by both, 41 exist only on the E5080A, and 11 only on the ZNL14. 20% of the E5080A's command headers also exist on the ZNL14.

Both libraries have commands under SENSe, CALCulate, INITiate, SOURce, SYSTem, and TRIGger. Only the E5080A has DISPlay, MMEMory, and OUTPut. Only the ZNL14 has SPEctrum, SWEep, and FORM.

Only the E5080A library has an operation-complete command (*OPC?); the ZNL14 library has none. Only the E5080A library has an error-queue read (SYSTem:ERRor?); the ZNL14 library has none.

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 ZNL20, ZNL3, ZNL4, and ZNL6 the same command set as the ZNL14, so the ZNL14 column applies to them too.

E5080A commands
60
ZNL14 commands
26
Shared headers
10
Unique headers
52

Run this on your bench

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

Get started

E5080A vs ZNL14 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 ZNL14
Commands in TestFlow's library6026
Queries (read a value or state)143
Settings and actions4623
Subsystems1313
Distinct command headers5121
Headers the other lacks4111
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?Not in library
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, P9375AZNL14, ZNL20, ZNL3, ZNL4, ZNL6

Commands both accept

10 command headers are in both libraries. Where the ZNL14 library writes the command differently, its form is shown under the E5080A's.

CommandWhat it does
SENSe:FREQuency:STARt <Frequency>ZNL14: SENS:FREQ:STARt <Start Freq>Set Start Freq. Sets the sweep start frequency in Hz.
CALCulate:FORMat <Format>ZNL14: CALC:FORMat <Format>Set Format. Sets the display/data format for the selected trace.
SOURce:POWer <Power>ZNL14: SOUR:POWer <Power level>Set Power Level. Sets the source output power level in dBm.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
SENSe:FREQuency:STOP <Frequency>ZNL14: SENS:FREQ:STOP <Stop freq>Set Stop Freq. Sets the sweep stop frequency in Hz.
*RSTReset. Resets the instrument to its default state.
SENSe:FREQuency:CENTer <Frequency>ZNL14: SENS:FREQ:CENT <Center freq>Set Center Freq. Sets the sweep center frequency in Hz.
*CLSClear Status. Clears all event registers and the error queue.
SENSe:AVERage:STATe ONZNL14: SENS:AVER:STATe <ON|OFF>Average On. Enables trace averaging.
SENSe:AVERage:COUNt <Count>ZNL14: SENS:AVER:COUN <Count>Set Average Count. Sets the number of sweeps to average.

Only on the Keysight E5080A

41 command headers in the E5080A library have no match in the ZNL14 library. Below are 19 of them from the 6 largest subsystems; the full list is in the Keysight E5080A command reference.

CALCulate (13 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:SELect '<Name>'Select Measurement. Selects an existing measurement trace by name for subsequent commands.
CALCulate:PARameter:MNUMber <Number>Select By Number. Selects the active measurement by its trace number.
CALCulate:PARameter:DELete '<Name>'Delete Measurement. Deletes the named measurement trace.

SENSe (12 only on the E5080A)

CommandWhat it does
SENSe:FREQuency:SPAN <Frequency>Set Span Freq. Sets the sweep frequency span in Hz.
SENSe:FREQuency:CW <Frequency>Set CW Freq. Sets the CW (fixed) frequency in Hz, used in CW/power sweep modes.
SENSe:FREQuency:STARt?Read Start Freq. Returns the current start frequency in Hz.
SENSe:FREQuency:STOP?Read Stop Freq. Returns the current stop frequency in Hz.

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.

IEEE 488.2 common (*) (3 only on the E5080A)

CommandWhat it does
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.
*WAIWait To Continue. Waits until all pending operations are complete before continuing.

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 (2 only on the E5080A)

CommandWhat it does
INITiate:CONTinuous ONContinuous On. Enables continuous (free-run) triggering.
INITiate:IMMediateTrigger Single. Triggers a single sweep when not in continuous mode.

Only on the Rohde & Schwarz ZNL14

11 command headers in the ZNL14 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 ZNL14 command reference.

SPEctrum (4 only on the ZNL14)

CommandWhat it does
SPEctrum:FREQ:CENTer <Hz>SA mode Center frequency. Sets the center frequency in spectrum analyzer mode.
SPEctrum:SPAN <Hz>Span bandwidth. Sets the frequency span in spectrum analyzer mode.
SPEctrum:DETector <POS|NEG|AVERage>Detector type. Sets the detector type for spectrum measurements.
SPEctrum:REFLevel <dBm>SA display Reference. Sets the reference level for the spectrum display.

CALCulate (2 only on the ZNL14)

CommandWhat it does
CALCulate:DATA? <Format>Retrieve trace data points. Queries the current trace data points.
CALCulate:PARameter:MEASure '<Trace>', '<Parameter>'Display parameter. Selects the S-parameter to display.

FORM (1 only on the ZNL14)

CommandWhat it does
FORM:DATA REAL,<32|64>Data output format. Sets the numeric data output format.

INITiate (1 only on the ZNL14)

CommandWhat it does
INITiate:CONTinuous:ALL OFFSingle-shot sweep. Disables continuous mode to perform a single sweep.

SWEep (1 only on the ZNL14)

CommandWhat it does
SWEep:TIME <seconds>Set sweep time. Sets the sweep time duration.

SYSTem (1 only on the ZNL14)

CommandWhat it does
SYSTem:LANGuage '<Language>'Language. Sets the instrument interface language.

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 SENSe:AVERage:STATe (average on); the ZNL14 library writes it as SENS:AVER:STATe ON. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: SENSe:FREQuency:STARt? on the E5080A and CALCulate:DATA? FDATa on the ZNL14. 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_ZNL14_ADDRESS")  # Rohde & Schwarz ZNL14
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Average On
a.write("SENSe:AVERage:STATe ON")
b.write("SENS:AVER:STATe ON")

# No shared reading with an example on both, so each uses its own command
print(a.query("SENSe:FREQuency:STARt?"))  # Read Start Freq
print(b.query("CALCulate:DATA? FDATa"))  # TRACE data

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 ZNL14 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 ZNL14 for remote control?

In TestFlow's library the E5080A has 60 SCPI commands and the ZNL14 has 26 SCPI commands. 10 command headers are common to both, 41 are only on the E5080A (mostly CALCulate and SENSe), and 11 are only on the ZNL14 (mostly SPEctrum and CALCulate).

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

Partly. 10 command headers are accepted by both, including SENSe:FREQuency:STARt, CALCulate:FORMat, and SOURce:POWer. 52 are not, for example CALCulate:PARameter:DEFine:EXTended on the E5080A and SPEctrum:FREQ:CENTer on the ZNL14, so a script that uses those needs a separate branch for each instrument.

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

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

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

Only the E5080A library has an operation-complete command (*OPC?); the ZNL14 library has none. Only the E5080A library has an error-queue read (SYSTem:ERRor?); the ZNL14 library has none. 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.