Multimeter · SCPI command comparison

Keithley 2000 vs Rigol DM3068: SCPI commands and remote control compared

In TestFlow's instrument library, the Keithley 2000 takes 91 SCPI commands, 25 of them queries, and the Rigol DM3068 takes 102 SCPI commands, 35 of them queries. That is 11 more on the DM3068. Counting distinct command headers (the command path without its arguments), 19 are accepted by both, 43 exist only on the 2000, and 70 only on the DM3068. 31% of the 2000's command headers also exist on the DM3068.

Both libraries have commands under MEASure, SYSTem, CALCulate, and TRIGger. Only the 2000 has SENSe, UNIT, SAMPle, TRACe, READ, and FETCh and 2 more. Only the DM3068 has FUNCtion and RATE.

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

2000 commands
91
DM3068 commands
102
Shared headers
19
Unique headers
113

Run this on your bench

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

Get started

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

Keithley 2000Rigol DM3068
Commands in TestFlow's library91102
Queries (read a value or state)2535
Settings and actions6667
Subsystems1610
Distinct command headers6289
Headers the other lacks4370
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command set2000DM3068

Commands both accept

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

CommandWhat it does
:MEASure?Measure. Makes a measurement using the active function and returns the reading.
:SYSTem:BEEPer:STATe ONContinuity Beeper On. Enables the audible beeper used during continuity testing.
:TRIGger:SOURce <Source>Set Trigger Source. Defines a trigger-model block that makes measurements at the specified block number.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
:MEASure:VOLTage:DC?Measure DCV. Sets the function to DC voltage and returns one measured reading in volts.
*RSTReset. Resets the instrument to its default state.
:MEASure:VOLTage:AC?Measure ACV. Sets the function to AC voltage and returns one measured reading in volts.
*CLSClear Status. Clears all event registers and the error queue.
:MEASure:CURRent:DC?Measure DCI. Sets the function to DC current and returns one measured reading in amps.
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.
:MEASure:CURRent:AC?Measure ACI. Sets the function to AC current and returns one measured reading in amps.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.

Only on the Keithley 2000

43 command headers in the 2000 library have no match in the DM3068 library. Below are 15 of them from the 6 largest subsystems; the full list is in the Keithley 2000 command reference.

SENSe (26 only on the 2000)

CommandWhat it does
:SENSe:FUNCtion "VOLT:DC"Func DCV. Selects DC voltage as the active measurement function.
:SENSe:FUNCtion?Read Function. Queries the currently selected measurement function string.
:SENSe:VOLTage:DC:RANGe <Range>Set DCV Range. Sets the DC voltage measurement range in volts.
:SENSe:VOLTage:AC:RANGe <Range>Set ACV Range. Sets the AC voltage measurement range in volts.

UNIT (4 only on the 2000)

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.

SAMPle (2 only on the 2000)

CommandWhat it does
:SAMPle:COUNt <Count>Set Sample Count. Sets the number of measurements made when a measurement is requested (1 to 1000000).
:SAMPle:COUNt?Read Sample Count. Queries the number of measurements made per measurement request.

SYSTem (2 only on the 2000)

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 2000)

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 2000)

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

Only on the Rigol DM3068

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

MEASure (20 only on the DM3068)

CommandWhat it does
:MEASure:CAPacitance?Measure Capacitance. Returns the measured capacitance value in farads.
:MEASure <Type>Set Measure Type. Sets the measurement type to Auto (auto-range) or Manual.
:MEASure:VOLTage:DC <Range>Set DCV Range. Sets the DC voltage range index: 0=200mV,1=2V,2=20V,3=200V,4=1000V (switches to Manual).
:MEASure:VOLTage:AC <Range>Set ACV Range. Sets the AC voltage range index: 0=200mV,1=2V,2=20V,3=200V,4=750V.

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: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).
:SYSTem:DISPlay:CONTrast <Value>Set Display Contrast. Sets the screen contrast (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 :SYSTem:BEEPer:STATe (continuity beeper on), 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_2000_ADDRESS")  # Keithley 2000
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: Continuity Beeper On
a.write(":SYSTem:BEEPer:STATe ON")
b.write(":SYSTem:BEEPer:STATe ON")

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

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Keithley 2000 and the Rigol DM3068 for remote control?

In TestFlow's library the 2000 has 91 SCPI commands and the DM3068 has 102 SCPI commands. 19 command headers are common to both, 43 are only on the 2000 (mostly SENSe and UNIT), and 70 are only on the DM3068 (mostly MEASure and CALCulate).

Can I use the same SCPI code for the Keithley 2000 and the Rigol DM3068?

Partly. 19 command headers are accepted by both, including :MEASure?, :SYSTem:BEEPer:STATe, and :TRIGger:SOURce. 113 are not, for example :SENSe:FUNCtion on the 2000 and :MEASure:CAPacitance? on the DM3068, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the 2000 or the DM3068?

The DM3068: 91 commands for the 2000 against 102 for the DM3068 in TestFlow's library. Of those, 25 on the 2000 and 35 on the DM3068 are queries that read a value or state, and the library splits them into 16 and 10 subsystems.

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