Vector Network Analyzer · SCPI command reference

Rohde & Schwarz ZNL14, ZNL20, ZNL3, ZNL4, and ZNL6 SCPI commands

The Rohde & Schwarz ZNL14, ZNL20, ZNL3, ZNL4, and ZNL6 vector network analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 26 commands for it, 3 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the ZNL14 on a real bench.

Commands
26
Queries
3
Subsystems
13
Models covered
5

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz ZNL14, ZNL20, ZNL3, ZNL4, or ZNL6 and writes the report from the measured results.

Get started

Control the Rohde & Schwarz ZNL14 from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Rohde & Schwarz ZNL14's VISA address

# Paste the address of your Rohde & Schwarz ZNL14 (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write("TRIGger:SEQuence:SOURce IMMediate")  # Trigger mode
print(inst.query("CALCulate:DATA? FDATa"))  # TRACE data

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz ZNL14, ZNL20, ZNL3, ZNL4, or ZNL6 and writes the report from the measured results.

Get started

Run a ZNL14 test without writing code

Describe the test in a sentence, for example “trigger mode on the ZNL14, then trace data and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

26 commands in 13 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The ZNL14, ZNL20, ZNL3, ZNL4, and ZNL6 share this command set in TestFlow's library.

Sense (SENSe) (5)

CommandWhat it doesArguments
SENS:FREQ:CENT <Center freq>Set center frequency. Sets the center frequency.Number
SENS:FREQ:STARt <Start Freq>Set start frequency. Sets the start frequency.Number
SENS:FREQ:STOP <Stop freq>Set stop frequency. Sets the stop frequency.Number
SENS:AVER:COUN <Count>Averaging count. Sets the number of averages.Number
SENS:AVER:STATe <ON|OFF>Toggle averaging. Enables or disables averaging.Text: ON,OFF

Calculate (CALCulate) (4)

CommandWhat it doesArguments
CALCulate:DATA? <Format>Retrieve trace data points. Queries the current trace data points.Text: FDATa,SDATa,MDATa
CALCulate:PARameter:MEASure '<Trace>', '<Parameter>'Display parameter. Selects the S-parameter to display.Text; Text: S11,S12,S21,S22
CALC:FORMat <Format>Trace format. Sets the trace display format.Text: MLOGarithmic,PHASe,UPHase,MLINear,LOGarithmic,SMITh,ISMith,POLar,SWR,REAL,IMAGinary,GDELay
CALCulate:DATA? FDATaTRACE data. Returns the current trace data.None

SPE subsystem (4)

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

Other subsystem (2)

CommandWhat it doesArguments
<SCPI>SCPI. Sends a custom SCPI command with optional parameters.Text
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

System (SYSTem) (1)

CommandWhat it doesArguments
SYSTem:LANGuage '<Language>'Language. Sets the instrument interface language.Text: FSV,SCPI

Source (SOURce) (1)

CommandWhat it doesArguments
SOUR:POWer <Power level>Out Stimulus power. Sets the output stimulus power level.Number

Sweep (SWEep) (1)

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

Trigger (TRIGger) (1)

CommandWhat it doesArguments
TRIGger:SEQuence:SOURce <Source>Trigger mode. Sets the trigger mode to automatic or manual.Text: IMMediate,EXTernal,MANual,MULTiple

Initiate (INITiate) (1)

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

FORM subsystem (1)

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

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last mearurment to a variableText

IEEE 488.2 common commands (3)

CommandWhat it doesArguments
*IDN?IDN. Queries the instrument identification information.None
*RSTReset. Resets the instrument to its default state.None
*CLSClear. Clears status registers and error queue.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Rohde & Schwarz's programming documentation for the ZNL14, ZNL20, ZNL3, ZNL4, and ZNL6 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Rohde & Schwarz's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Rohde & Schwarz ZNL14 support SCPI remote control?

Yes. The Rohde & Schwarz ZNL14 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 26 SCPI commands for it: 3 queries that read values or state, and 23 settings and actions.

How do I control the Rohde & Schwarz ZNL14 from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, TRIGger:SEQuence:SOURce IMMediate and CALCulate:DATA? FDATa.

Which command reads a value from the Rohde & Schwarz ZNL14?

CALCulate:DATA? FDATa (trace data). Returns the current trace data. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rohde & Schwarz ZNL14 without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Rohde & Schwarz ZNL14 through the TestFlow desktop app, and writes the report from the measured results.

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.