Vector Network Analyzer · SCPI command reference

Rohde & Schwarz ZVL3 and ZVL6 SCPI commands

The Rohde & Schwarz ZVL3 and ZVL6 vector network analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 56 commands for it, 13 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 ZVL3 on a real bench.

Commands
56
Queries
13
Subsystems
14
Models covered
2

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz ZVL3 or ZVL6 and writes the report from the measured results.

Get started

Control the Rohde & Schwarz ZVL3 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 ZVL3's VISA address

# Paste the address of your Rohde & Schwarz ZVL3 (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("OUTPut:STATe ON")  # RF Power On
print(inst.query("SENSe:FREQuency:STARt?"))  # Read Start Freq

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz ZVL3 or ZVL6 and writes the report from the measured results.

Get started

Run a ZVL3 test without writing code

Describe the test in a sentence, for example “rf power on on the ZVL3, then read start freq 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

56 commands in 14 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The ZVL3 and ZVL6 share this command set in TestFlow's library.

Sense (SENSe) (17)

CommandWhat it doesArguments
SENSe:FREQuency:STARt <Frequency>Set Start Freq. Sets the sweep start frequency in Hz.Number
SENSe:FREQuency:STOP <Frequency>Set Stop Freq. Sets the sweep stop frequency in Hz.Number
SENSe:FREQuency:CENTer <Frequency>Set Center Freq. Sets the sweep center frequency in Hz.Number
SENSe:FREQuency:SPAN <Frequency>Set Span Freq. Sets the sweep frequency span in Hz.Number
SENSe:FREQuency:STARt?Read Start Freq. Returns the current start frequency in Hz.None
SENSe:FREQuency:STOP?Read Stop Freq. Returns the current stop frequency in Hz.None
SENSe:SWEep:POINts <Points>Set Points. Sets the number of sweep points.Number
SENSe:SWEep:POINts?Read Points. Returns the number of sweep points.None
SENSe:SWEep:TYPE <Type>Set Sweep Type. Sets the sweep type.Text: LINear,LOGarithmic,SEGMent
SENSe:BANDwidth <Bandwidth>Set IF Bandwidth. Sets the measurement (IF) bandwidth in Hz.Number
SENSe:BANDwidth?Read IF Bandwidth. Returns the measurement bandwidth in Hz.None
SENSe:AVERage:STATe ONAverage On. Enables trace averaging for the channel.None
SENSe:AVERage:STATe OFFAverage Off. Disables trace averaging for the channel.None
SENSe:AVERage:COUNt <Count>Set Average Count. Sets the averaging factor (number of sweeps).Number
SENSe:AVERage:CLEarAverage Clear. Restarts the averaging measurement.None
SENSe:CORRection:STATe ONCorrection On. Turns system error correction on.None
SENSe:CORRection:STATe OFFCorrection Off. Turns system error correction off.None

Calculate (CALCulate) (13)

CommandWhat it doesArguments
CALCulate:PARameter:SDEFine '<Name>','<Parameter>'Define Trace. Creates a trace with the given name and S-parameter (R&S SDEFine syntax).Text; Text: S11,S12,S21,S22
CALCulate:PARameter:SELect '<Name>'Select Trace. Selects the trace as active for subsequent CALCulate commands.Text
CALCulate:PARameter:DELete '<Name>'Delete Trace. Deletes the named trace.Text
CALCulate:FORMat <Format>Set Format. Sets the display format of the active trace.Text: MLOGarithmic,MLINear,PHASe,UPHase,SMITh,ISMith,POLar,SWR,GDELay,REAL,IMAGinary,COMPlex
CALCulate:FORMat?Read Format. Returns the display format of the active trace.None
CALCulate:DATA? FDATaRead Formatted Data. Returns the formatted trace data of the active trace.None
CALCulate:DATA? SDATaRead Complex Data. Returns the complex (real/imag) trace data of the active trace.None
CALCulate:MARKer<Marker>:STATe ONMarker On. Turns on the specified marker.Number: 1,2,3,4,5,6,7,8,9,10
CALCulate:MARKer<Marker>:STATe OFFMarker Off. Turns off the specified marker.Number: 1,2,3,4,5,6,7,8,9,10
CALCulate:MARKer<Marker>:X <Frequency>Set Marker X. Sets the stimulus position of the marker in Hz.Number: 1,2,3,4,5,6,7,8,9,10; Number
CALCulate:MARKer<Marker>:Y?Read Marker Y. Returns the response value at the marker.Number: 1,2,3,4,5,6,7,8,9,10
CALCulate:MARKer<Marker>:FUNCtion:EXECute MAXMarker Search Max. Moves the marker to the trace maximum.Number: 1,2,3,4,5,6,7,8,9,10
CALCulate:MARKer<Marker>:FUNCtion:EXECute MINMarker Search Min. Moves the marker to the trace minimum.Number: 1,2,3,4,5,6,7,8,9,10

Initiate (INITiate) (3)

CommandWhat it doesArguments
INITiate:CONTinuous ONContinuous On. Enables continuous sweep on all channels.None
INITiate:CONTinuous OFFContinuous Off. Sets all channels to single-sweep (hold) mode.None
INITiate:IMMediateTrigger Single. Starts a single sweep when in single-sweep mode.None

Display (DISPlay) (3)

CommandWhat it doesArguments
DISPlay:TRACe:Y:SCALe:AUTO ONCEAutoscale. Autoscales the active trace once to fit the diagram.None
DISPlay:TRACe:Y:SCALe:PDIVision <Per_Div>Set Y Scale. Sets the vertical scale per division of the active trace.Number
DISPlay:TRACe:Y:SCALe:RLEVel <Level>Set Ref Level. Sets the reference level of the active trace.Number

Source (SOURce) (2)

CommandWhat it doesArguments
SOURce:POWer <Power>Set Power Level. Sets the internal source power level in dBm.Number
SOURce:POWer?Read Power Level. Returns the source power level in dBm.None

Output (OUTPut) (2)

CommandWhat it doesArguments
OUTPut:STATe ONRF Power On. Turns the RF source power on.None
OUTPut:STATe OFFRF Power Off. Turns the RF source power off.None

Mass memory (MMEMory) (2)

CommandWhat it doesArguments
MMEMory:STORe:STATe 1,'<Filename>'Save State. Saves the instrument setup to the named recall set file.Text
MMEMory:LOAD:STATe 1,'<Filename>'Recall State. Loads an instrument setup from the named file.Text

System (SYSTem) (2)

CommandWhat it doesArguments
SYSTem:PRESetPreset. Presets the analyzer to the default setup.None
SYSTem:ERRor:NEXT?Read Error. Reads the next entry from the error queue.None

Trigger (TRIGger) (1)

CommandWhat it doesArguments
TRIGger:SOURce <Source>Set Trigger Source. Sets the trigger source for the sweep.Text: IMMediate,EXTernal

HCOP subsystem (1)

CommandWhat it doesArguments
HCOPy:DESTination 'MMEM';:MMEMory:NAME '<Filename>';:HCOPy:IMMediateSave Screenshot. Saves a screenshot of the display to the named file.Text

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

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 measurement to a variableText

IEEE 488.2 common commands (7)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear Status. Clears all event registers and the error queue.None
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*TRGTrigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state.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 ZVL3 and ZVL6 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 ZVL3 support SCPI remote control?

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

How do I control the Rohde & Schwarz ZVL3 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?, OUTPut:STATe ON and SENSe:FREQuency:STARt?.

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

SENSe:FREQuency:STARt? (read start freq). Returns the current start frequency in Hz. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rohde & Schwarz ZVL3 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 ZVL3 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.