Vector Network Analyzer · SCPI command comparison

Anritsu MS46122A vs Pico Technology PicoVNA 106: SCPI commands and remote control compared

In TestFlow's instrument library, the Anritsu MS46122A takes 57 SCPI commands, 14 of them queries, and the Pico Technology PicoVNA 106 takes 61 SCPI commands, 14 of them queries. That is 4 more on the PicoVNA 106. Counting distinct command headers (the command path without its arguments), 32 are accepted by both, 16 exist only on the MS46122A, and 19 only on the PicoVNA 106. 67% of the MS46122A's command headers also exist on the PicoVNA 106.

Both libraries have commands under SENSe, CALCulate, SYSTem, DISPlay, MMEMory, TRIGger, and INITiate. Only the MS46122A has SOURce. Only the PicoVNA 106 has MARKer and OUTPut.

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

TestFlow's library gives the MS46122B, MS46131A, MS46322A, and MS46322B the same command set as the MS46122A, so the MS46122A column applies to them too. TestFlow's library gives the PicoVNA 108 the same command set as the PicoVNA 106, so the PicoVNA 106 column applies to it too.

MS46122A commands
57
PicoVNA 106 commands
61
Shared headers
32
Unique headers
35

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Anritsu MS46122A or Pico Technology PicoVNA 106 and writes the report from the measured results.

Get started

MS46122A vs PicoVNA 106 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.

Anritsu MS46122APico Technology PicoVNA 106
Commands in TestFlow's library5761
Queries (read a value or state)1414
Settings and actions4347
Subsystems1213
Distinct command headers4851
Headers the other lacks1619
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setMS46122A, MS46122B, MS46131A, MS46322A, MS46322BPicoVNA 106, PicoVNA 108

Commands both accept

32 command headers are in both libraries. Here are 12, taken across subsystems. Where the PicoVNA 106 library writes the command differently, its form is shown under the MS46122A's.

CommandWhat it does
SENSe:FREQuency:STARt <Frequency>Set Start Freq. Sets the sweep start frequency in Hz.
CALCulate:PARameter<Trace>:SELectPicoVNA 106: CALCulate:PARameter:SELect '<Name>'Select By Number. Selects the active measurement by its trace number.
SYSTem:PRESetPreset. Presets the analyzer to its default measurement state.
DISPlay:WINDow:TRACe:Y:SCALe:PDIVision <Per_Div>Set Y Scale. Sets the vertical scale per division for the active trace.
MMEMory:STORe '<Filename>'Save State. Saves the instrument state/data to the named file.
TRIGger:SOURce <Source>Set Trigger Source. Sets the trigger source for the sweep.
INITiate:CONTinuous ONContinuous On. Enables continuous (free-run) triggering.
*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.
SYSTem:ERRor?Read Error. Reads the next message from the error queue.
DISPlay:WINDow:TRACe:Y:SCALe:RLEVel <Level>Set Ref Level. Sets the reference level for the active trace.

Only on the Anritsu MS46122A

16 command headers in the MS46122A library have no match in the PicoVNA 106 library. Below are 12 of them from the 6 largest subsystems; the full list is in the Anritsu MS46122A command reference.

CALCulate (8 only on the MS46122A)

CommandWhat it does
CALCulate:PARameter<Trace>:DEFine <Parameter>Define Measurement. Creates a new measurement trace with the given name and S-parameter.
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.
CALCulate:MARKer<Marker>:STATe ONMarker On. Turns on the specified marker on the active trace.

SENSe (3 only on the MS46122A)

CommandWhat it does
SENSe:SWEep:TYPe <Type>Set Sweep Type. Sets the sweep type (linear, log, segment, power, or CW).
SENSe:AVERage:STATe ONAverage On. Enables trace averaging.
SENSe:AVERage:COUNt <Count>Set Average Count. Sets the number of sweeps to average.

SOURce (2 only on the MS46122A)

CommandWhat it does
SOURce:POWer <Power>Set Power Level. Sets the source output power level in dBm.
SOURce:POWer?Read Power Level. Returns the source output power level in dBm.

DISPlay (1 only on the MS46122A)

CommandWhat it does
DISPlay:WINDow:TRACe:Y:AUTOAutoscale. Autoscales the active trace to fit the display.

SYSTem (1 only on the MS46122A)

CommandWhat it does
SYSTem:HOLD:RF ONRF Power On. Turns the RF source power output on.

TRIGger (1 only on the MS46122A)

CommandWhat it does
TRIGger:SINGleTrigger Single. Triggers a single sweep when not in continuous mode.

Only on the Pico Technology PicoVNA 106

19 command headers in the PicoVNA 106 library have no match in the MS46122A library. Below are 15 of them from the 6 largest subsystems; the full list is in the Pico Technology PicoVNA 106 command reference.

CALCulate (8 only on the PicoVNA 106)

CommandWhat it does
CALCulate:AVERaging ONAverage On. Enables trace averaging.
CALCulate:AVERaging:COUNT <Count>Set Average Count. Sets the number of sweeps to average.
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.

MARKer (4 only on the PicoVNA 106)

CommandWhat it does
MARKer<Marker>:VISible ONMarker On. Turns on the specified marker on the active trace.
MARKer<Marker>:X <Frequency>Set Marker X. Sets the stimulus (X) position of the marker in Hz.
MARKer<Marker>:X?Read Marker X. Returns the stimulus (X) position of the marker.
MARKer<Marker>:Query <Type>Read Marker Y. Returns the response (Y) value at the marker.

SENSe (4 only on the PicoVNA 106)

CommandWhat it does
SENSe:SWEep:TYPE <Type>Set Sweep Type. Sets the sweep type (linear, log, segment, power, or CW).
SENSe:SWEep:TIME <Seconds>Set Sweep Time. Sets the sweep time in seconds.
SENSe:LEVel <Power>Set Power Level. Sets the source output power level in dBm.
SENSe:LEVel?Read Power Level. Returns the source output power level in dBm.

DISPlay (1 only on the PicoVNA 106)

CommandWhat it does
DISPlay:WINDow:TRACe:Y:SCALe:AUTOAutoscale. Autoscales the active trace to fit the display.

INITiate (1 only on the PicoVNA 106)

CommandWhat it does
INITiateTrigger Single. Triggers a single sweep when not in continuous mode.

OUTPut (1 only on the PicoVNA 106)

CommandWhat it does
OUTPut:STATe ONRF Power On. Turns the RF source power output on.

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:CLEar (average clear), 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_MS46122A_ADDRESS")  # Anritsu MS46122A
b = rm.open_resource("PASTE_PICOVNA_106_ADDRESS")  # Pico Technology PicoVNA 106
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Average Clear
a.write("SENSe:AVERage:CLEar")
b.write("SENSe:AVERage:CLEar")

# 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 Anritsu MS46122A or Pico Technology PicoVNA 106 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Anritsu MS46122A and the Pico Technology PicoVNA 106 for remote control?

In TestFlow's library the MS46122A has 57 SCPI commands and the PicoVNA 106 has 61 SCPI commands. 32 command headers are common to both, 16 are only on the MS46122A (mostly CALCulate and SENSe), and 19 are only on the PicoVNA 106 (mostly CALCulate and MARKer).

Can I use the same SCPI code for the Anritsu MS46122A and the Pico Technology PicoVNA 106?

Partly. 32 command headers are accepted by both, including SENSe:FREQuency:STARt, CALCulate:PARameter<Trace>:SELect, and SYSTem:PRESet. 35 are not, for example CALCulate:PARameter<Trace>:DEFine on the MS46122A and CALCulate:AVERaging on the PicoVNA 106, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the MS46122A or the PicoVNA 106?

The PicoVNA 106: 57 commands for the MS46122A against 61 for the PicoVNA 106 in TestFlow's library. Of those, 14 on the MS46122A and 14 on the PicoVNA 106 are queries that read a value or state, and the library splits them into 12 and 13 subsystems.

How do the MS46122A and PicoVNA 106 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.