Multimeter · SCPI command comparison

Keithley DAQ6510 vs Keysight 34401A: SCPI commands and remote control compared

In TestFlow's instrument library, the Keithley DAQ6510 takes 96 SCPI commands, 26 of them queries, and the Keysight 34401A takes 94 SCPI commands, 27 of them queries. That is 2 more on the DAQ6510. Counting distinct command headers (the command path without its arguments), 34 are accepted by both, 36 exist only on the DAQ6510, and 45 only on the 34401A. 49% of the DAQ6510's command headers also exist on the 34401A.

Both libraries have commands under SENSe, MEASure, TRIGger, READ, FETCh, INITiate, and SYSTem. Only the DAQ6510 has TRACe and ABORt. Only the 34401A has CALCulate, CONFigure, DISPlay, INPut, SAMPle, and DATA.

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

TestFlow's library gives the DMM7510 the same command set as the DAQ6510, so the DAQ6510 column applies to it too.

DAQ6510 commands
96
34401A commands
94
Shared headers
34
Unique headers
81

Run this on your bench

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

Get started

DAQ6510 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.

Keithley DAQ6510Keysight 34401A
Commands in TestFlow's library9694
Queries (read a value or state)2627
Settings and actions7067
Subsystems1317
Distinct command headers7079
Headers the other lacks3645
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setDAQ6510, DMM751034401A

Commands both accept

34 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 DAQ6510's.

CommandWhat it does
:SENSe:FUNCtion "VOLT:DC"34401A: SENSe:FUNCtion "<Function>"Func DCV. Selects DC voltage as the active measurement function.
:MEASure:VOLTage:DC?34401A: MEASure:VOLTage:DC? <Range>,<Resolution>Measure DCV. Sets the function to DC voltage and returns one measured reading in volts.
: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.
:INITiateInit Trigger Model. Starts the trigger model and begins the configured measurement sequence.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
:SENSe:FUNCtion?Read Function. Queries the currently selected measurement function string.
:MEASure:VOLTage:AC?34401A: MEASure:VOLTage:AC? <Range>,<Resolution>Measure ACV. Sets the function to AC voltage and returns one measured reading in volts.
*RSTReset. Resets the instrument to its default state.
:SENSe:VOLTage:DC:RANGe <Range>Set DCV Range. Sets the DC voltage measurement range in volts.
:MEASure:CURRent:DC?34401A: MEASure:CURRent:DC? <Range>,<Resolution>Measure DCI. Sets the function to DC current and returns one measured reading in amps.
*CLSClear Status. Clears all event registers and the error queue.

Only on the Keithley DAQ6510

36 command headers in the DAQ6510 library have no match in the 34401A library. Below are 16 of them from the 6 largest subsystems; the full list is in the Keithley DAQ6510 command reference.

SENSe (20 only on the DAQ6510)

CommandWhat it does
:SENSe:CAPacitance:RANGe <Range>Set Capacitance Range. Sets the capacitance measurement range in farads.
:SENSe:VOLTage:DC:INPutimpedance AUTODCV Input Impedance Auto On. Sets DC voltage input impedance to AUTO (>10 GOhm on 100 mV/1 V/10 V ranges).
:SENSe:VOLTage:DC:AZERo:STATe ONSet DCV AZero On. Enables autozero for the DC voltage function.
:SENSe:VOLTage:AC:DETector:BANDwidth <Bandwidth>Set ACV Detector BW. Sets the AC voltage detector bandwidth in Hz (3, 30 or 300).

TRACe (7 only on the DAQ6510)

CommandWhat it does
:TRACe:CLEarClear Buffer. Clears all readings and statistics from the default reading buffer.
:TRACe:ACTual?Read Buffer Actual. Returns the number of readings currently stored in the default reading buffer.
:TRACe:STATistics:AVERage?Read Buffer Stat Mean. Returns the mean (average) of the readings stored in the default reading buffer.
:TRACe:STATistics:MINimum?Read Buffer Stat Min. Returns the minimum reading stored in the default reading buffer.

MEASure (3 only on the DAQ6510)

CommandWhat it does
:MEASure?Measure. Makes a measurement using the active function and returns the reading.
:MEASure:CAPacitance?Measure Capacitance. Sets the function to capacitance and returns one reading in farads.
:MEASure:TEMPerature?Measure Temperature. Sets the function to temperature and returns one reading in the configured units.

TRIGger (3 only on the DAQ6510)

CommandWhat it does
:TRIGger:BLOCk:MDIGitize <BlockNumber>Set Trigger Source. Defines a trigger-model block that makes measurements at the specified block number.
:TRIGger:LOAD "SimpleLoop", <Count>Trigger Load SimpleLoop. Loads the SimpleLoop trigger model template that makes the specified number of readings.
:TRIGger:EXTernal:IN:EDGE <Edge>Set Trigger Ext In Edge. Sets the edge used to detect external input triggers on the rear-panel line.

ABORt (1 only on the DAQ6510)

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

IEEE 488.2 common (*) (1 only on the DAQ6510)

CommandWhat it does
*WAIWait To Continue. Waits until all pending operations are complete before continuing.

Only on the Keysight 34401A

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

CALCulate (11 only on the 34401A)

CommandWhat it does
CALCulate:STATe ONMath Null On. Enables the scaling (null/dB/dBm) math operation on measurements.
CALCulate:FUNCtion <Function>Set Scale Function. Selects the scaling function applied to measurements.
CALCulate:NULL:OFFSet <Reference>Set Null Reference. Sets the reference (null) value used by the scaling function.
CALCulate:DB:REFerence <Reference>Set dBm Reference. Sets the relative dB reference value in dBm.

CONFigure (11 only on the 34401A)

CommandWhat it does
CONFigure:VOLTage:DC <Range>,<Resolution>Conf DCV. Configures the instrument for DC voltage measurement with the given range and resolution.
CONFigure:VOLTage:AC <Range>,<Resolution>Conf ACV. Configures the instrument for AC voltage measurement with the given range and resolution.
CONFigure:CURRent:DC <Range>,<Resolution>Conf DCI. Configures the instrument for DC current measurement with the given range and resolution.
CONFigure:CURRent:AC <Range>,<Resolution>Conf ACI. Configures the instrument for AC current measurement with the given range and resolution.

SYSTem (6 only on the 34401A)

CommandWhat it does
SYSTem:BEEPer:STATe ONBeeper On. Enables the beeper for continuity and other audible alerts.
SYSTem:BEEPerBeep. Issues a single beep from the instrument.
SYSTem:ERRor?Read Error. Reads and clears one error from the error queue (returns 0,"No error" if empty).
SYSTem:VERSion?Read SCPI Version. Returns the SCPI version to which the instrument complies.

TRIGger (5 only on the 34401A)

CommandWhat it does
TRIGger:SOURce <Source>Set Trigger Source. Selects the trigger source for measurements.
TRIGger:SOURce?Read Trigger Source. Returns the present trigger source.
TRIGger:COUNt <Count>Set Trigger Count. Sets the number of triggers accepted before returning to the idle state.
TRIGger:DELay <Seconds>Set Trigger Delay. Sets the delay between the trigger signal and the first measurement.

DISPlay (3 only on the 34401A)

CommandWhat it does
DISPlay:STATe ONDisplay On. Turns the front-panel display on.
DISPlay:TEXT "<Message>"Set Display Text. Displays the specified text message on the front-panel display.
DISPlay:TEXT:CLEarClear Display Text. Clears the text message shown on the front-panel display.

SENSe (3 only on the 34401A)

CommandWhat it does
SENSe:VOLTage:DC:RESolution <Resolution>Set DCV Resolution. Sets the measurement resolution for DC voltage measurements.
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.

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 34401A library writes it as SENSe:FUNCtion "VOLTage:DC". 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_DAQ6510_ADDRESS")  # Keithley DAQ6510
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: Func DCV
a.write(":SENSe:FUNCtion \"VOLT:DC\"")
b.write("SENSe:FUNCtion \"VOLTage:DC\"")

# 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 Keithley DAQ6510 or Keysight 34401A and writes the report from the measured results.

Get started

Frequently asked questions

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

In TestFlow's library the DAQ6510 has 96 SCPI commands and the 34401A has 94 SCPI commands. 34 command headers are common to both, 36 are only on the DAQ6510 (mostly SENSe and TRACe), and 45 are only on the 34401A (mostly CALCulate and CONFigure).

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

Partly. 34 command headers are accepted by both, including :SENSe:FUNCtion, :MEASure:VOLTage:DC?, and :READ?. 81 are not, for example :SENSe:CAPacitance:RANGe on the DAQ6510 and CALCulate:STATe on the 34401A, so a script that uses those needs a separate branch for each instrument.

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

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

How do the DAQ6510 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.