Multimeter · SCPI command comparison

Keithley 2001 vs Keysight 34460A: SCPI commands and remote control compared

In TestFlow's instrument library, the Keithley 2001 takes 81 SCPI commands, 22 of them queries, and the Keysight 34460A takes 50 SCPI commands, 18 of them queries. That is 31 more on the 2001. Counting distinct command headers (the command path without its arguments), 22 are accepted by both, 34 exist only on the 2001, and 24 only on the 34460A. 39% of the 2001's command headers also exist on the 34460A.

Both libraries have commands under SENSe, MEASure, SYSTem, TRIGger, READ, FETCh, and INITiate. Only the 2001 has UNIT, CALCulate, TRACe, and ABORt. Only the 34460A has CONF, DISP, and SAMP.

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

TestFlow's library gives the 2002 the same command set as the 2001, so the 2001 column applies to it too. TestFlow's library gives the 34470A the same command set as the 34460A, so the 34460A column applies to it too.

2001 commands
81
34460A commands
50
Shared headers
22
Unique headers
58

Run this on your bench

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

Get started

2001 vs 34460A 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.

Keithley 2001Keysight 34460A
Commands in TestFlow's library8150
Queries (read a value or state)2218
Settings and actions5932
Subsystems1514
Distinct command headers5646
Headers the other lacks3424
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command set2001, 200234460A, 34470A

Commands both accept

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

CommandWhat it does
:SENSe:FUNCtion "VOLT:DC"34460A: :SENS:FUNC "<Sense>"Func DCV. Selects DC voltage as the active measurement function.
:MEASure:VOLTage:DC?34460A: :MEAS:VOLT:DC? <Range>,<Resolution>Measure DCV. Sets the function to DC voltage and returns one measured reading in volts.
:TRIGger:COUNt <Count>34460A: :TRIG:COUN <Trigger_Count>Set Sample Count. Sets the number of measurements made when a measurement is requested (1 to 1000000).
:READ?Read. Triggers and returns one reading from the active function using the default reading buffer.
:FETCh?Fetch. Returns the latest reading from the buffer without triggering a new measurement.
:INITiate34460A: :INITInit Trigger Model. Starts the trigger model and begins the configured measurement sequence.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
:SENSe:VOLTage:DC:RANGe <Range>34460A: :SENS:VOLT:DC:RANG <Range>Set DCV Range. Sets the DC voltage measurement range in volts.
:MEASure:VOLTage:AC?34460A: :MEAS:VOLT:AC? <Range>,<Resolution>Measure ACV. Sets the function to AC voltage and returns one measured reading in volts.
:TRIGger:SOURce <Source>34460A: :TRIG:SOUR <Source>Set Trigger Source. Defines a trigger-model block that makes measurements at the specified block number.
*RSTReset. Resets the instrument to its default state.
:SENSe:VOLTage:DC:RANGe:AUTO ON34460A: :SENS:VOLT:DC:RANG:AUTO ONDCV Autorange On. Enables autorange for the DC voltage function.

Only on the Keithley 2001

34 command headers in the 2001 library have no match in the 34460A library. Below are 14 of them from the 6 largest subsystems; the full list is in the Keithley 2001 command reference.

SENSe (22 only on the 2001)

CommandWhat it does
:SENSe:FUNCtion?Read Function. Queries the currently selected measurement function string.
:SENSe:VOLTage:AC:RANGe <Range>Set ACV Range. Sets the AC voltage measurement range in volts.
:SENSe:CURRent:DC:RANGe <Range>Set DCI Range. Sets the DC current measurement range in amps.
:SENSe:CURRent:AC:RANGe <Range>Set ACI Range. Sets the AC current measurement range in amps.

UNIT (4 only on the 2001)

CommandWhat it does
:UNIT:VOLTage:AC DBSet ACV Unit dB. Sets the AC voltage measurement unit to dB.
:UNIT:VOLTage:AC:DB:REFerence <Reference>Set ACV dB Reference. Sets the dB reference voltage for the AC voltage function (1e-7 to 1000 V).
:UNIT:VOLTage:AC:DBM:IMPedance <Impedance>Set ACV dBm Reference. Sets the dBm reference impedance for the AC voltage function (1 to 9999 ohms).
:UNIT:TEMPerature <Unit>Set Temp Unit. Sets the units used for temperature measurements.

SYSTem (2 only on the 2001)

CommandWhat it does
:SYSTem:AZERo:STATe ONSet DCV AZero On. Enables autozero for the DC voltage function.
:SYSTem:ERRor:NEXT?Read Error. Reads and removes the oldest message from the error queue (0,"No error" if empty).

TRACe (2 only on the 2001)

CommandWhat it does
:TRACe:CLEarClear Buffer. Clears all readings and statistics from the default reading buffer.
:TRACe:FREE?Read Buffer Actual. Returns the number of readings currently stored in the default reading buffer.

ABORt (1 only on the 2001)

CommandWhat it does
:ABORtAbort Trigger Model. Stops all trigger-model commands and returns the instrument to idle.

CALCulate (1 only on the 2001)

CommandWhat it does
:CALCulate2:FORMat MEAN ; ...Read Buffer Stat Mean. Returns the mean (average) of the readings stored in the default reading buffer.

Only on the Keysight 34460A

24 command headers in the 34460A library have no match in the 2001 library. Below are 17 of them from the 6 largest subsystems; the full list is in the Keysight 34460A command reference.

CONF (8 only on the 34460A)

CommandWhat it does
:CONF:VOLT:DC <Range>,<Resolution>Configure Voltage DC. Configures DC voltage measurement.
:CONF:VOLT:AC <Range>,<Resolution>Configure Voltage AC. Configures AC voltage measurement.
:CONF:CURR:DC <Range>,<Resolution>Configure Current DC. Configures DC current measurement.
:CONF:CURR:AC <Range>,<Resolution>Configure Current AC. Configures AC current measurement.

IEEE 488.2 common (*) (7 only on the 34460A)

CommandWhat it does
*ESE <Mask>Standard Event Enable. Sets the Standard Event Status Enable register mask.
*ESE?Standard Event Enable Query. Queries the Standard Event Status Enable register.
*ESR?Event Status Register Query. Queries the Standard Event Status Register.
*OPCOperation Complete. Sets the Operation Complete flag when pending operations finish.

DISP (3 only on the 34460A)

CommandWhat it does
:DISP <ON_OFF>Display OnOff. Enables or disables the display.
:DISP:TEXT "<Message>"Display Text. Displays a custom message on the screen.
:DISP:TEXT:CLEDisplay Text Clear. Clears the displayed message.

SENS (3 only on the 34460A)

CommandWhat it does
:SENS:VOLT:NPLC <NPLC>Volt NPLC. Sets the integration time in number of power line cycles.
:SENS:VOLT:DC:ZERO:AUTO <ON_OFF>Auto zero. Enables or disables DC voltage autozero (ON, OFF, or ONCE).
:SENS:<Function>:RES <Resolution>Resolution. Sets the resolution for the selected measurement function.

SYST (2 only on the 34460A)

CommandWhat it does
:SYST:ERR?System Error Query. Queries the next system error in the queue.
:SYST:LOCSystem Local. Sets the instrument to local (front panel) control.

SAMP (1 only on the 34460A)

CommandWhat it does
:SAMP:COUN <Count>Sample Count. Sets the number of samples per trigger.

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:FUNCtion (func dcv); the 34460A library writes it as :SENS:FUNC "VOLT:DC". For the reading, both libraries hold :MEASure:TEMPerature? (measure temperature); the 34460A library writes it as :MEAS:TEMP? FRTD,85. 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_2001_ADDRESS")  # Keithley 2001
b = rm.open_resource("PASTE_34460A_ADDRESS")  # Keysight 34460A
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Func DCV
a.write(":SENSe:FUNCtion \"VOLT:DC\"")
b.write(":SENS:FUNC \"VOLT:DC\"")

# The same reading on both: Measure Temperature
print(a.query(":MEASure:TEMPerature?"))
print(b.query(":MEAS:TEMP? FRTD,85"))

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Keithley 2001 and the Keysight 34460A for remote control?

In TestFlow's library the 2001 has 81 SCPI commands and the 34460A has 50 SCPI commands. 22 command headers are common to both, 34 are only on the 2001 (mostly SENSe and UNIT), and 24 are only on the 34460A (mostly CONF and IEEE 488.2 common (*)).

Can I use the same SCPI code for the Keithley 2001 and the Keysight 34460A?

Partly. 22 command headers are accepted by both, including :SENSe:FUNCtion, :MEASure:VOLTage:DC?, and :TRIGger:COUNt. 58 are not, for example :SENSe:FUNCtion? on the 2001 and :CONF:VOLT:DC on the 34460A, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the 2001 or the 34460A?

The 2001: 81 commands for the 2001 against 50 for the 34460A in TestFlow's library. Of those, 22 on the 2001 and 18 on the 34460A are queries that read a value or state, and the library splits them into 15 and 14 subsystems.

How do the 2001 and 34460A 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.