Multimeter · SCPI command comparison

Fluke 8846A vs Keysight 34401A: SCPI commands and remote control compared

In TestFlow's instrument library, the Fluke 8846A takes 118 SCPI commands, 35 of them queries, and the Keysight 34401A takes 94 SCPI commands, 27 of them queries. That is 24 more on the 8846A. Counting distinct command headers (the command path without its arguments), 57 are accepted by both, 33 exist only on the 8846A, and 22 only on the 34401A. 63% of the 8846A's command headers also exist on the 34401A.

Both libraries have commands under CALCulate, MEASure, CONFigure, TRIGger, SYSTem, DISPlay, SAMPle, and READ, plus 3 more roots. Only the 8846A has VOLTage, FUNCtion, CURRent, RESistance, and FRESistance. Only the 34401A has SENSe and INPut.

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

8846A commands
118
34401A commands
94
Shared headers
57
Unique headers
55

Run this on your bench

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

Get started

8846A vs 34401A 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.

Fluke 8846AKeysight 34401A
Commands in TestFlow's library11894
Queries (read a value or state)3527
Settings and actions8367
Subsystems2017
Distinct command headers9079
Headers the other lacks3322
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command set8846A34401A

Commands both accept

57 command headers are in both libraries. Here are 12, taken across subsystems. Where the 34401A library writes the command differently, its form is shown under the 8846A's.

CommandWhat it does
CALCulate:FUNCtion <Function>Set Math Function. Selects the math operation applied to readings.
MEASure:VOLTage:DC?34401A: MEASure:VOLTage:DC? <Range>,<Resolution>Measure DCV. Configures DC voltage and returns one measured value in volts.
CONFigure:VOLTage:DC34401A: CONFigure:VOLTage:DC <Range>,<Resolution>Config DCV. Configures the meter for DC voltage measurement using default range and resolution.
TRIGger:SOURce <Source>Set Trigger Source. Sets the trigger source for the measurement.
SYSTem:BEEPer:STATe ONBeeper On. Enables the beeper.
DISPlay:TEXT <Message>34401A: DISPlay:TEXT "<Message>"Set Display Text. Displays the specified text message on the front-panel display.
SAMPle:COUNt <Count>Set Sample Count. Sets the number of samples taken per trigger (1 to 50000).
READ?Read Reading. Starts a new measurement and returns the reading using the current configuration.
FETCh?Fetch Reading. Returns readings already stored in memory from the current trigger without starting a new measurement.
INITiateInitiate. Changes the trigger state from idle to wait-for-trigger and stores readings in memory.
DATA:POINts?Read Data Count. Returns the number of readings currently stored in reading memory.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).

Only on the Fluke 8846A

33 command headers in the 8846A library have no match in the 34401A library. Below are 19 of them from the 6 largest subsystems; the full list is in the Fluke 8846A command reference.

VOLTage (10 only on the 8846A)

CommandWhat it does
VOLTage:DC:RANGe <Range>Set DCV Range. Sets the manual DC voltage range in volts.
VOLTage:DC:RANGe?Read DCV Range. Returns the present DC voltage range in volts.
VOLTage:DC:RANGe:AUTO ONDCV Autorange On. Enables autoranging for DC voltage.
VOLTage:AC:RANGe <Range>Set ACV Range. Sets the manual AC voltage range in volts.

CURRent (6 only on the 8846A)

CommandWhat it does
CURRent:DC:RANGe <Range>Set DCI Range. Sets the manual DC current range in amps.
CURRent:DC:RANGe:AUTO ONDCI Autorange On. Enables autoranging for DC current.
CURRent:AC:RANGe <Range>Set ACI Range. Sets the manual AC current range in amps.
CURRent:AC:RANGe:AUTO ONACI Autorange On. Enables autoranging for AC current.

CALCulate (3 only on the 8846A)

CommandWhat it does
CALCulate:NULL:OFFSet?Read Null Offset. Returns the present null (relative) offset value.
CALCulate:DB:REFerence?Read dB Reference. Returns the present dB reference value.
CALCulate:DBM:REFerence?Read dBm Reference. Returns the present dBm reference resistance in ohms.

FRESistance (3 only on the 8846A)

CommandWhat it does
FRESistance:RANGe <Range>Set 4W Res Range. Sets the manual 4-wire resistance range in ohms.
FRESistance:RANGe:AUTO ONRes 4W Autorange On. Enables autoranging for 4-wire resistance.
FRESistance:NPLC <NPLC>Set 4W Res NPLC. Sets the integration time for 4-wire resistance in number of power line cycles.

RESistance (3 only on the 8846A)

CommandWhat it does
RESistance:RANGe <Range>Set 2W Res Range. Sets the manual 2-wire resistance range in ohms.
RESistance:RANGe:AUTO ONRes 2W Autorange On. Enables autoranging for 2-wire resistance.
RESistance:NPLC <NPLC>Set 2W Res NPLC. Sets the integration time for 2-wire resistance in number of power line cycles.

FUNCtion (2 only on the 8846A)

CommandWhat it does
FUNCtion "VOLTage:DC"Func DCV. Selects DC voltage as the active measurement function.
FUNCtion?Read Function. Queries the currently selected measurement function (returns quoted string such as "VOLT:DC").

Only on the Keysight 34401A

22 command headers in the 34401A library have no match in the 8846A library. Below are 7 of them from the 3 largest subsystems; the full list is in the Keysight 34401A command reference.

SENSe (19 only on the 34401A)

CommandWhat it does
SENSe:FUNCtion "<Function>"Set Function. Selects the active measurement function using the SENSe function name.
SENSe:FUNCtion?Read Function. Returns the present measurement function as a quoted string.
SENSe:VOLTage:DC:RANGe <Range>Set DCV Range. Sets the manual range for DC voltage measurements.
SENSe:VOLTage:AC:RANGe <Range>Set ACV Range. Sets the manual range for AC 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.

DISPlay (1 only on the 34401A)

CommandWhat it does
DISPlay:STATe ONDisplay On. Turns the front-panel display 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 CALCulate:FUNCtion (set math function), and the same line runs on each. For the reading, both libraries hold MEASure:VOLTage:DC? (measure dcv); the 34401A library writes it as MEASure:VOLTage:DC? AUTO,MIN. 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_8846A_ADDRESS")  # Fluke 8846A
b = rm.open_resource("PASTE_34401A_ADDRESS")  # Keysight 34401A
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Set Math Function
a.write("CALCulate:FUNCtion NULL")
b.write("CALCulate:FUNCtion NULL")

# The same reading on both: Measure DCV
print(a.query("MEASure:VOLTage:DC?"))
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 Fluke 8846A or Keysight 34401A and writes the report from the measured results.

Get started

Frequently asked questions

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

In TestFlow's library the 8846A has 118 SCPI commands and the 34401A has 94 SCPI commands. 57 command headers are common to both, 33 are only on the 8846A (mostly VOLTage and CURRent), and 22 are only on the 34401A (mostly SENSe and INPut).

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

Partly. 57 command headers are accepted by both, including CALCulate:FUNCtion, MEASure:VOLTage:DC?, and CONFigure:VOLTage:DC. 55 are not, for example VOLTage:DC:RANGe on the 8846A and SENSe:FUNCtion on the 34401A, so a script that uses those needs a separate branch for each instrument.

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

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

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