Multimeter · SCPI command comparison

Keysight 34401A vs 34410A: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight 34401A takes 94 SCPI commands, 27 of them queries, and the Keysight 34410A takes 110 SCPI commands, 31 of them queries. That is 16 more on the 34410A. Counting distinct command headers (the command path without its arguments), 74 are accepted by both, 5 exist only on the 34401A, and 21 only on the 34410A. 94% of the 34401A's command headers also exist on the 34410A.

Both libraries have commands under SENSe, CALCulate, CONFigure, MEASure, SYSTem, TRIGger, DISPlay, and SAMPle, plus 4 more roots. Only the 34401A has INPut. Only the 34410A has ABORt and UNIT.

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

TestFlow's library gives the 34411A the same command set as the 34410A, so the 34410A column applies to it too.

34401A commands
94
34410A commands
110
Shared headers
74
Unique headers
26

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight 34401A or Keysight 34410A and writes the report from the measured results.

Get started

34401A vs 34410A 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 34401AKeysight 34410A
Commands in TestFlow's library94110
Queries (read a value or state)2731
Settings and actions6779
Subsystems1718
Distinct command headers7995
Headers the other lacks521
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command set34401A34410A, 34411A

Commands both accept

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

CommandWhat it does
SENSe:FUNCtion?Read Function. Returns the present measurement function as a quoted string.
CALCulate:STATe ONMath Null On. Enables the scaling (null/dB/dBm) math operation on measurements.
CONFigure:VOLTage:DC <Range>,<Resolution>Conf DCV. Configures the instrument for DC voltage measurement with the given range and resolution.
MEASure:VOLTage:DC? <Range>,<Resolution>Measure DCV. Configures and returns a one-shot DC voltage measurement in volts.
SYSTem:BEEPer:STATe ONBeeper On. Enables the beeper for continuity and other audible alerts.
TRIGger:SOURce <Source>Set Trigger Source. Selects the trigger source for measurements.
DISPlay:STATe ONDisplay On. Turns the front-panel display on.
SAMPle:COUNt <Count>Set Sample Count. Sets the number of measurements taken per trigger.
INITiateInit. Places the instrument in the wait-for-trigger state and stores readings in memory when triggered.
READ?Read. Starts a new measurement and returns the reading directly without storing it in reading memory.
FETCh?Fetch. Returns measurements stored in reading memory by the INITiate command.
DATA:POINts?Data Points. Returns the total number of measurements currently stored in reading memory.

Only on the Keysight 34401A

5 command headers in the 34401A library have no match in the 34410A library. Below are 5 of them from the 2 largest subsystems; the full list is in the Keysight 34401A command reference.

SENSe (3 only on the 34401A)

CommandWhat it does
SENSe:FUNCtion "<Function>"Set Function. Selects the active measurement function using the SENSe function name.
SENSe:DETector:BANDwidth 3ACV Filter 3Hz. Sets the AC voltage filter bandwidth to 3 Hz (slow).
SENSe:ZERO:AUTO <State>Set AutoZero. Enables or disables the autozero mode for DC voltage measurements.

INPut (2 only on the 34401A)

CommandWhat it does
INPut:IMPedance:AUTO <State>Set DCV Impedance. Enables or disables automatic input impedance selection for DC voltage (OFF gives fixed 10 MOhm).
INPut:IMPedance:AUTO?Read DCV Impedance. Returns the automatic input impedance state for DC voltage measurements.

Only on the Keysight 34410A

21 command headers in the 34410A library have no match in the 34401A library. Below are 13 of them from the 6 largest subsystems; the full list is in the Keysight 34410A command reference.

SENSe (7 only on the 34410A)

CommandWhat it does
SENSe:FUNCtion:ON "<Function>"Set Function. Selects the active measurement function using the SENSe function name.
SENSe:CAPacitance:RANGe <Range>Set Cap Range. Sets the manual range for capacitance measurements.
SENSe:VOLTage:DC:APERture <Seconds>Set DCV Aperture. Sets the integration time (aperture) in seconds for DC voltage measurements.
SENSe:VOLTage:DC:IMPedance:AUTO <State>Set DCV Impedance. Enables or disables automatic input impedance selection for DC voltage (OFF gives fixed 10 MOhm).

CALCulate (2 only on the 34410A)

CommandWhat it does
CALCulate:AVERage:SDEViation?Stat SDev. Returns the standard deviation of all readings since statistics were enabled.
CALCulate:AVERage:CLEarStat Clear. Clears all accumulated statistics values.

CONFigure (2 only on the 34410A)

CommandWhat it does
CONFigure:CAPacitance <Range>,<Resolution>Conf Capacitance. Configures the instrument for capacitance measurement with the given range and resolution.
CONFigure:TEMPerature <Probe>,<Type>Conf Temperature. Configures the instrument for temperature measurement using the specified probe type and sensor type.

MEASure (2 only on the 34410A)

CommandWhat it does
MEASure:CAPacitance? <Range>,<Resolution>Measure Capacitance. Configures and returns a one-shot capacitance measurement in farads.
MEASure:TEMPerature? <Probe>,<Type>Measure Temperature. Configures and returns a one-shot temperature measurement.

SAMPle (2 only on the 34410A)

CommandWhat it does
SAMPle:SOURce <Source>Set Sample Source. Selects the sample timing source for samples following the trigger.
SAMPle:TIMer <Seconds>Set Sample Timer. Sets the sample interval when the sample source is set to TIMer.

ABORt (1 only on the 34410A)

CommandWhat it does
ABORtAbort. Aborts a measurement in progress and returns the instrument to the idle state.

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 CONFigure:CONTinuity (conf continuity), and the same line runs on each. For the reading, both libraries hold MEASure:VOLTage:DC? (measure dcv), 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_34401A_ADDRESS")  # Keysight 34401A
b = rm.open_resource("PASTE_34410A_ADDRESS")  # Keysight 34410A
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Conf Continuity
a.write("CONFigure:CONTinuity")
b.write("CONFigure:CONTinuity")

# The same reading on both: Measure DCV
print(a.query("MEASure:VOLTage:DC? AUTO,MIN"))
print(b.query("MEASure:VOLTage:DC? AUTO,MIN"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight 34401A or Keysight 34410A and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight 34401A and the Keysight 34410A for remote control?

In TestFlow's library the 34401A has 94 SCPI commands and the 34410A has 110 SCPI commands. 74 command headers are common to both, 5 are only on the 34401A (mostly SENSe and INPut), and 21 are only on the 34410A (mostly SENSe and CALCulate).

Can I use the same SCPI code for the Keysight 34401A and the Keysight 34410A?

Partly. 74 command headers are accepted by both, including SENSe:FUNCtion?, CALCulate:STATe, and CONFigure:VOLTage:DC. 26 are not, for example SENSe:FUNCtion on the 34401A and SENSe:FUNCtion:ON on the 34410A, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the 34401A or the 34410A?

The 34410A: 94 commands for the 34401A against 110 for the 34410A in TestFlow's library. Of those, 27 on the 34401A and 31 on the 34410A are queries that read a value or state, and the library splits them into 17 and 18 subsystems.

How do the 34401A and 34410A 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.