Multimeter · SCPI command comparison

Keysight 34460A vs Rigol DM3068: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight 34460A takes 50 SCPI commands, 18 of them queries, and the Rigol DM3068 takes 102 SCPI commands, 35 of them queries. That is 52 more on the DM3068. Counting distinct command headers (the command path without its arguments), 15 are accepted by both, 31 exist only on the 34460A, and 74 only on the DM3068. 33% of the 34460A's command headers also exist on the DM3068.

Both libraries have commands under MEAS, TRIG, and SYST. Only the 34460A has CONF, SENS, DISP, INIT, FETCh, and READ and 1 more. Only the DM3068 has CALCulate, FUNCtion, and RATE.

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

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

34460A commands
50
DM3068 commands
102
Shared headers
15
Unique headers
105

Run this on your bench

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

Get started

34460A vs DM3068 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 34460ARigol DM3068
Commands in TestFlow's library50102
Queries (read a value or state)1835
Settings and actions3267
Subsystems1410
Distinct command headers4689
Headers the other lacks3174
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command set34460A, 34470ADM3068

Commands both accept

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

CommandWhat it does
:MEAS:VOLT:DC? <Range>,<Resolution>DM3068: :MEASure:VOLTage:DC?Measure Voltage DC. Measures DC voltage with specified range and resolution.
:TRIG:SOUR <Source>DM3068: :TRIGger:SOURce <Source>Trigger Source. Sets the trigger source.
:SYST:ERR?DM3068: :SYSTem:ERRor?System Error Query. Queries the next system error in the queue.
*RSTReset. Resets the instrument to its default state.
:MEAS:VOLT:AC? <Range>,<Resolution>DM3068: :MEASure:VOLTage:AC?Measure Voltage AC. Measures AC voltage with specified range and resolution.
*CLSClear Status. Clears status registers and the error queue.
:MEAS:CURR:DC? <Range>,<Resolution>DM3068: :MEASure:CURRent:DC?Measure Current DC. Measures DC current with specified range and resolution.
*IDN?Identify. Returns the instrument identification information.
:MEAS:CURR:AC? <Range>,<Resolution>DM3068: :MEASure:CURRent:AC?Measure Current AC. Measures AC current with specified range and resolution.
*OPC?Operation Complete Query. Queries if all pending operations are complete.
:MEAS:RES? <Range>,<Resolution>DM3068: :MEASure:RESistance?Measure Resistance 2W. Measures 2-wire resistance with specified range and resolution.
*TST?Self Test. Performs a self-test and returns the result.

Only on the Keysight 34460A

31 command headers in the 34460A library have no match in the DM3068 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.

SENS (6 only on the 34460A)

CommandWhat it does
:SENS:FUNC "<Sense>"Sense function. Selects the measurement function.
:SENS:VOLT:DC:RANG <Range>Sense volt range. Sets the DC voltage measurement range.
:SENS:VOLT:DC:RANG:AUTO ONVolt range auto. Enables automatic voltage range selection.
:SENS:VOLT:NPLC <NPLC>Volt NPLC. Sets the integration time in number of power line cycles.

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.

FETCh (1 only on the 34460A)

CommandWhat it does
:FETCh?Fetch Measurement. Returns the last completed measurement.

INIT (1 only on the 34460A)

CommandWhat it does
:INITInitiate Measurement. Starts the measurement process.

Only on the Rigol DM3068

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

MEASure (24 only on the DM3068)

CommandWhat it does
:MEASure:PERiod?Measure Period. Returns the measured period value in seconds.
:MEASure:CONTinuity?Measure Continuity. Returns the measured resistance value under continuity test in ohms.
:MEASure:DIODe?Measure Diode. Returns the measured forward voltage across the diode in volts.
:MEASure:CAPacitance?Measure Capacitance. Returns the measured capacitance value in farads.

CALCulate (18 only on the DM3068)

CommandWhat it does
:CALCulate:FUNCtion <Function>Set Math Function. Selects the math operation to apply to the measurement.
:CALCulate:STATistic:MIN?Stat Min. Returns the minimum of the current statistics (MIN operation enabled).
:CALCulate:STATistic:MAX?Stat Max. Returns the maximum of the current statistics (MAX operation enabled).
:CALCulate:STATistic:AVERage?Stat Average. Returns the average of the current statistics (AVERAGE operation enabled).

FUNCtion (14 only on the DM3068)

CommandWhat it does
:FUNCtion:VOLTage:DCFunc DCV. Selects DC voltage as the active measurement function.
:FUNCtion:VOLTage:ACFunc ACV. Selects AC voltage as the active measurement function.
:FUNCtion:CURRent:DCFunc DCI. Selects DC current as the active measurement function.
:FUNCtion:CURRent:ACFunc ACI. Selects AC current as the active measurement function.

SYSTem (7 only on the DM3068)

CommandWhat it does
:SYSTem:BEEPer:STATe ONBeeper On. Turns the beeper on.
:SYSTem:BEEPerBeep. Issues a single beep (beeper must be on).
:SYSTem:LANGuage <Language>Set Language. Sets the system display language.
:SYSTem:DISPlay:BRIGht <Value>Set Display Brightness. Sets the screen brightness (0 to 32).

RATE (6 only on the DM3068)

CommandWhat it does
:RATE:VOLTage:DC <Rate>Set DCV Rate. Sets DC voltage measuring rate: F=Fast, M=Medium, S=Slow.
:RATE:VOLTage:AC <Rate>Set ACV Rate. Sets AC voltage measuring rate: Fast, Medium or Slow.
:RATE:CURRent:DC <Rate>Set DCI Rate. Sets DC current measuring rate: Fast, Medium or Slow.
:RATE:CURRent:AC <Rate>Set ACI Rate. Sets AC current measuring rate: Fast, Medium or Slow.

TRIGger (5 only on the DM3068)

CommandWhat it does
:TRIGger:AUTO:INTErval <Seconds>Set Auto Trig Interval. Sets the auto-trigger interval in ms (8-2000 depending on rate).
:TRIGger:AUTO:HOLD ONAuto Trig Hold On. Enables the reading-hold function under auto trigger.
:TRIGger:SINGle <Count>Set Single Trig Count. Sets the number of samples per single trigger (1 to 2000).
:TRIGger:SINGle:TRIGgeredSingle Trigger. Issues one manual single 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 :TRIG:SOUR (trigger source); the DM3068 library writes it as :TRIGger:SOURce AUTO. For the reading, both libraries hold :SYST:ERR? (system error query); the DM3068 library writes it as :SYSTem:ERRor?. 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_34460A_ADDRESS")  # Keysight 34460A
b = rm.open_resource("PASTE_DM3068_ADDRESS")  # Rigol DM3068
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Trigger Source
a.write(":TRIG:SOUR IMM")
b.write(":TRIGger:SOURce AUTO")

# The same reading on both: System Error Query
print(a.query(":SYST:ERR?"))
print(b.query(":SYSTem:ERRor?"))

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Keysight 34460A and the Rigol DM3068 for remote control?

In TestFlow's library the 34460A has 50 SCPI commands and the DM3068 has 102 SCPI commands. 15 command headers are common to both, 31 are only on the 34460A (mostly CONF and IEEE 488.2 common (*)), and 74 are only on the DM3068 (mostly MEASure and CALCulate).

Can I use the same SCPI code for the Keysight 34460A and the Rigol DM3068?

Partly. 15 command headers are accepted by both, including :MEAS:VOLT:DC?, :TRIG:SOUR, and :SYST:ERR?. 105 are not, for example :CONF:VOLT:DC on the 34460A and :MEASure:PERiod? on the DM3068, so a script that uses those needs a separate branch for each instrument.

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

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

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