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.
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()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.
102 commands in 10 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 ON | Statistic On. Enables the statistics (MIN/MAX/AVERAGE) function. | None |
| :CALCulate:STATistic:STATe OFF | Statistic 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 ON | REL On. Enables the REL (relative/null) operation. | None |
| :CALCulate:REL:STATe OFF | REL 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 ON | DB On. Enables the dB operation. | None |
| :CALCulate:DB:STATe OFF | DB 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 ON | DBm On. Enables the dBm operation. | None |
| :CALCulate:DBM:STATe OFF | DBm 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 ON | PF On. Enables the Pass/Fail (limit) operation. | None |
| :CALCulate:PF:STATe OFF | PF Off. Disables the Pass/Fail (limit) operation. | None |
| Command | What it does | Arguments |
|---|---|---|
| :FUNCtion:VOLTage:DC | Func DCV. Selects DC voltage as the active measurement function. | None |
| :FUNCtion:VOLTage:AC | Func ACV. Selects AC voltage as the active measurement function. | None |
| :FUNCtion:CURRent:DC | Func DCI. Selects DC current as the active measurement function. | None |
| :FUNCtion:CURRent:AC | Func ACI. Selects AC current as the active measurement function. | None |
| :FUNCtion:RESistance | Func 2W Resistance. Selects 2-wire resistance as the active measurement function. | None |
| :FUNCtion:FRESistance | Func 4W Resistance. Selects 4-wire resistance as the active measurement function. | None |
| :FUNCtion:FREQuency | Func Frequency. Selects frequency as the active measurement function. | None |
| :FUNCtion:PERiod | Func Period. Selects period as the active measurement function. | None |
| :FUNCtion:CONTinuity | Func Continuity. Selects continuity as the active measurement function. | None |
| :FUNCtion:DIODe | Func Diode. Selects diode test as the active measurement function. | None |
| :FUNCtion:CAPacitance | Func 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:FREQuency | Vice 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:CLEar | Vice Display Clear. Disables the secondary (vice) display. | None |
| Command | What it does | Arguments |
|---|---|---|
| :SYSTem:BEEPer:STATe ON | Beeper On. Turns the beeper on. | None |
| :SYSTem:BEEPer:STATe OFF | Beeper Off. Turns the beeper off. | None |
| :SYSTem:BEEPer | Beep. 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:DEFault | Default 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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 ON | Auto Trig Hold On. Enables the reading-hold function under auto trigger. | None |
| :TRIGger:AUTO:HOLD OFF | Auto 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:TRIGgered | Single 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 |
| Command | What it does | Arguments |
|---|---|---|
| :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 |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). | None |
| *RST | Reset. Resets the instrument to its default state. | None |
| *CLS | Clear 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 |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. | None |
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.
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.
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?.
: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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.