Multimeter · SCPI command reference

Rigol DM3068 SCPI commands

The Rigol DM3068 multimeter is controlled remotely with SCPI commands. TestFlow's instrument library holds 102 commands for it, 35 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the DM3068 on a real bench.

Commands
102
Queries
35
Subsystems
10
Models covered
1

Control the Rigol DM3068 from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Rigol DM3068's VISA address

# Paste the address of your Rigol DM3068 (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write(":FUNCtion:VOLTage:DC")  # Func DCV
print(inst.query(":MEASure:VOLTage:DC?"))  # Measure DCV

inst.close()

Run a DM3068 test without writing code

Describe the test in a sentence, for example “func dcv on the DM3068, then measure dcv and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

102 commands in 10 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

Measurement (MEASure) (31)

CommandWhat it doesArguments
:MEASure:VOLTage:DC?Measure DCV. Returns the measured DC voltage value in volts (scientific notation).None
:MEASure:VOLTage:AC?Measure ACV. Returns the measured AC voltage value in volts (scientific notation).None
:MEASure:CURRent:DC?Measure DCI. Returns the measured DC current value in amps (scientific notation).None
:MEASure:CURRent:AC?Measure ACI. Returns the measured AC current value in amps (scientific notation).None
:MEASure:RESistance?Measure 2W Resistance. Returns the measured 2-wire resistance value in ohms.None
:MEASure:FRESistance?Measure 4W Resistance. Returns the measured 4-wire resistance value in ohms.None
:MEASure:FREQuency?Measure Frequency. Returns the measured frequency value in Hz (3 Hz to 300 kHz).None
:MEASure:PERiod?Measure Period. Returns the measured period value in seconds.None
:MEASure:CONTinuity?Measure Continuity. Returns the measured resistance value under continuity test in ohms.None
:MEASure:DIODe?Measure Diode. Returns the measured forward voltage across the diode in volts.None
:MEASure:CAPacitance?Measure Capacitance. Returns the measured capacitance value in farads.None
:MEASure?New Data Ready. Queries whether new data has been acquired under the current trigger setting (TRUE/FALSE).None
:MEASure <Type>Set Measure Type. Sets the measurement type to Auto (auto-range) or Manual.Text: AUTO,MANU
: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).Number: 0,1,2,3,4
:MEASure:VOLTage:AC <Range>Set ACV Range. Sets the AC voltage range index: 0=200mV,1=2V,2=20V,3=200V,4=750V.Number: 0,1,2,3,4
:MEASure:CURRent:DC <Range>Set DCI Range. Sets the DC current range index: 0=200uA,1=2mA,2=20mA,3=200mA,4=2A,5=10A.Number: 0,1,2,3,4,5
:MEASure:CURRent:AC <Range>Set ACI Range. Sets the AC current range index: 0=200uA,1=2mA,2=20mA,3=200mA,4=2A,5=10A.Number: 0,1,2,3,4,5
:MEASure:RESistance <Range>Set 2W Res Range. Sets the 2-wire resistance range index: 0=200ohm,1=2k,2=20k,3=200k,4=1M,5=10M,6=100M,7=1G.Number: 0,1,2,3,4,5,6
:MEASure:FRESistance <Range>Set 4W Res Range. Sets the 4-wire resistance range index: 0=200ohm,1=2k,2=20k,3=200k,4=1M,5=10M,6=100M,7=1G.Number: 0,1,2,3,4,5,6
:MEASure:FREQuency <Range>Set Frequency Range. Sets the frequency voltage range index: 0=200mV,1=2V,2=20V,3=200V,4=750V.Number: 0,1,2,3,4
:MEASure:PERiod <Range>Set Period Range. Sets the period voltage range index: 0=200mV,1=2V,2=20V,3=200V,4=750V.Number: 0,1,2,3,4
:MEASure:CAPacitance <Range>Set Capacitance Range. Sets the capacitance range index: 0=2nF,1=20nF,2=200nF,3=2uF,4=200uF,5=10000uF.Number: 0,1,2,3,4,5
:MEASure:VOLTage:DC:RANGe?Read DCV Range. Queries the current DC voltage measurement range.None
:MEASure:VOLTage:AC:RANGe?Read ACV Range. Queries the current AC voltage measurement range.None
:MEASure:CURRent:DC:RANGe?Read DCI Range. Queries the current DC current measurement range.None
:MEASure:CURRent:AC:RANGe?Read ACI Range. Queries the current AC current measurement range.None
:MEASure:RESistance:RANGe?Read 2W Res Range. Queries the current 2-wire resistance measurement range.None
:MEASure:FRESistance:RANGe?Read 4W Res Range. Queries the current 4-wire resistance measurement range.None
:MEASure:CAPacitance:RANGe?Read Capacitance Range. Queries the current capacitance measurement range.None
:MEASure:VOLTage:DC:IMPEdance <Impedance>Set DCV Impedance. Sets the DC voltage input impedance to 10 MOhm or >10 GOhm (10G only valid on 200mV/2V range).Text: 10M,10G
:MEASure:CONTinuity <Ohm>Set Continuity Threshold. Sets the continuity beep resistance threshold (1 to 2000 ohms, default 10).Number

Calculate (CALCulate) (23)

CommandWhat it doesArguments
:CALCulate:FUNCtion <Function>Set Math Function. Selects the math operation to apply to the measurement.Text: NONE,REL,DB,DBM,MIN,MAX,AVERAGE,TOTAL,PF
:CALCulate:STATistic:MIN?Stat Min. Returns the minimum of the current statistics (MIN operation enabled).None
:CALCulate:STATistic:MAX?Stat Max. Returns the maximum of the current statistics (MAX operation enabled).None
:CALCulate:STATistic:AVERage?Stat Average. Returns the average of the current statistics (AVERAGE operation enabled).None
:CALCulate:STATistic:COUNt?Stat Count. Returns the number of measurements included in the current statistics.None
:CALCulate:STATistic:STATe ONStatistic On. Enables the statistics (MIN/MAX/AVERAGE) function.None
:CALCulate:STATistic:STATe OFFStatistic Off. Disables the statistics function.None
:CALCulate:REL:OFFSet <Offset>Set REL Offset. Sets the offset (reference) value used by the REL (relative/null) operation.Number
:CALCulate:REL:STATe ONREL On. Enables the REL (relative/null) operation.None
:CALCulate:REL:STATe OFFREL Off. Disables the REL (relative/null) operation.None
:CALCulate:DB?Read dB. Returns the calculated dB value (dB operation enabled).None
:CALCulate:DB:REFErence <Reference>Set dB Reference. Sets the dB reference value (-120 dBm to +120 dBm).Number
:CALCulate:DB:STATe ONDB On. Enables the dB operation.None
:CALCulate:DB:STATe OFFDB Off. Disables the dB operation.None
:CALCulate:DBM?Read dBm. Returns the calculated dBm value (dBm operation enabled).None
:CALCulate:DBM:REFErence <Reference>Set dBm Reference. Sets the dBm reference resistance (2 to 8000 ohms, default 600).Number
:CALCulate:DBM:STATe ONDBm On. Enables the dBm operation.None
:CALCulate:DBM:STATe OFFDBm Off. Disables the dBm operation.None
:CALCulate:PF?Read PF. Returns the Pass/Fail (limit) result: PASS, HI or LO.None
:CALCulate:PF:LOWEr <Lower>Set PF Lower. Sets the lower limit for the Pass/Fail (limit) operation.Number
:CALCulate:PF:UPPEr <Upper>Set PF Upper. Sets the upper limit for the Pass/Fail (limit) operation.Number
:CALCulate:PF:STATe ONPF On. Enables the Pass/Fail (limit) operation.None
:CALCulate:PF:STATe OFFPF Off. Disables the Pass/Fail (limit) operation.None

Function (FUNCtion) (17)

CommandWhat it doesArguments
:FUNCtion:VOLTage:DCFunc DCV. Selects DC voltage as the active measurement function.None
:FUNCtion:VOLTage:ACFunc ACV. Selects AC voltage as the active measurement function.None
:FUNCtion:CURRent:DCFunc DCI. Selects DC current as the active measurement function.None
:FUNCtion:CURRent:ACFunc ACI. Selects AC current as the active measurement function.None
:FUNCtion:RESistanceFunc 2W Resistance. Selects 2-wire resistance as the active measurement function.None
:FUNCtion:FRESistanceFunc 4W Resistance. Selects 4-wire resistance as the active measurement function.None
:FUNCtion:FREQuencyFunc Frequency. Selects frequency as the active measurement function.None
:FUNCtion:PERiodFunc Period. Selects period as the active measurement function.None
:FUNCtion:CONTinuityFunc Continuity. Selects continuity as the active measurement function.None
:FUNCtion:DIODeFunc Diode. Selects diode test as the active measurement function.None
:FUNCtion:CAPacitanceFunc Capacitance. Selects capacitance as the active measurement function.None
:FUNCtion?Read Function. Queries the current main-display measurement function (DCV, ACV, DCI, etc.).None
:FUNCtion2:FREQuencyVice Frequency. Sets the secondary (vice) display to frequency.None
:FUNCtion2?Read Vice Function. Queries the current secondary (vice) display measurement function.None
:FUNCtion2:VALUe1?Read Main Value. Returns the main-display measured value (dual-display mode).None
:FUNCtion2:VALUe2?Read Vice Value. Returns the vice-display measured value (dual-display mode).None
:FUNCtion2:CLEarVice Display Clear. Disables the secondary (vice) display.None

System (SYSTem) (9)

CommandWhat it doesArguments
:SYSTem:BEEPer:STATe ONBeeper On. Turns the beeper on.None
:SYSTem:BEEPer:STATe OFFBeeper Off. Turns the beeper off.None
:SYSTem:BEEPerBeep. Issues a single beep (beeper must be on).None
:SYSTem:LANGuage <Language>Set Language. Sets the system display language.Text: CH,EN
:SYSTem:DISPlay:BRIGht <Value>Set Display Brightness. Sets the screen brightness (0 to 32).Number
:SYSTem:DISPlay:CONTrast <Value>Set Display Contrast. Sets the screen contrast (0 to 32).Number
:SYSTem:CONFigure:DEFaultDefault Config. Restores the system configuration to factory defaults.None
:SYSTem:ERRor?Read Error. Reads the first message from the error queue (0,"No error" if empty).None
:SYSTem:VERSion?Read SCPI Version. Returns the SCPI version supported by the instrument.None

Trigger (TRIGger) (7)

CommandWhat it doesArguments
:TRIGger:SOURce <Source>Set Trigger Source. Sets the trigger source: Auto, Single, or External.Text: AUTO,SINGLE,EXT
:TRIGger:AUTO:INTErval <Seconds>Set Auto Trig Interval. Sets the auto-trigger interval in ms (8-2000 depending on rate).Number: 0-3600
:TRIGger:AUTO:HOLD ONAuto Trig Hold On. Enables the reading-hold function under auto trigger.None
:TRIGger:AUTO:HOLD OFFAuto Trig Hold Off. Disables the reading-hold function under auto trigger.None
:TRIGger:SINGle <Count>Set Single Trig Count. Sets the number of samples per single trigger (1 to 2000).Number
:TRIGger:SINGle:TRIGgeredSingle Trigger. Issues one manual single trigger.None
:TRIGger:EXT <Type>Set Ext Trig Type. Sets the external trigger type: rising, falling, high level or low level.Text: RISE,FALL

RATE subsystem (6)

CommandWhat it doesArguments
:RATE:VOLTage:DC <Rate>Set DCV Rate. Sets DC voltage measuring rate: F=Fast, M=Medium, S=Slow.Text: F,M,S
:RATE:VOLTage:AC <Rate>Set ACV Rate. Sets AC voltage measuring rate: Fast, Medium or Slow.Text: F,M,S
:RATE:CURRent:DC <Rate>Set DCI Rate. Sets DC current measuring rate: Fast, Medium or Slow.Text: F,M,S
:RATE:CURRent:AC <Rate>Set ACI Rate. Sets AC current measuring rate: Fast, Medium or Slow.Text: F,M,S
:RATE:RESistance <Rate>Set 2W Res Rate. Sets 2-wire resistance measuring rate: Fast, Medium or Slow.Text: F,M,S
:RATE:FRESistance <Rate>Set 4W Res Rate. Sets 4-wire resistance measuring rate: Fast, Medium or Slow.Text: F,M,S

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (6)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear Status. Clears all event registers and the error queue.None
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Rigol's programming documentation for the DM3068 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Rigol's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Rigol DM3068 support SCPI remote control?

Yes. The Rigol DM3068 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 102 SCPI commands for it: 35 queries that read values or state, and 67 settings and actions.

How do I control the Rigol DM3068 from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, :FUNCtion:VOLTage:DC and :MEASure:VOLTage:DC?.

Which command reads a value from the Rigol DM3068?

:MEASure:VOLTage:DC? (measure dcv). Returns the measured DC voltage value in volts (scientific notation). The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rigol DM3068 without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Rigol DM3068 through the TestFlow desktop app, and writes the report from the measured results.

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.