Multimeter · SCPI command comparison

Rigol DM3058E vs Siglent SDM3045X: SCPI commands and remote control compared

In TestFlow's instrument library, the Rigol DM3058E takes 106 SCPI commands, 28 of them queries, and the Siglent SDM3045X takes 116 SCPI commands, 31 of them queries. That is 10 more on the SDM3045X. Counting distinct command headers (the command path without its arguments), 23 are accepted by both, 60 exist only on the DM3058E, and 62 only on the SDM3045X. 28% of the DM3058E's command headers also exist on the SDM3045X.

Both libraries have commands under MEASure, FUNCtion, CALCulate, SYSTem, and TRIGger. Only the DM3058E has RATE. Only the SDM3045X has SENSe, CONFigure, DATA, SAMPle, READ, and FETCh and 3 more.

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

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

DM3058E commands
106
SDM3045X commands
116
Shared headers
23
Unique headers
122

Run this on your bench

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

Get started

DM3058E vs SDM3045X 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.

Rigol DM3058ESiglent SDM3045X
Commands in TestFlow's library106116
Queries (read a value or state)2831
Settings and actions7885
Subsystems1018
Distinct command headers8385
Headers the other lacks6062
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setDM3058ESDM3045X, SDM3055

Commands both accept

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

CommandWhat it does
:MEASure:VOLTage:DC?Measure DCV. Returns the measured DC voltage value in volts (scientific notation).
:FUNCtion?Read Function. Queries the current main-display measurement function (DCV, ACV, DCI, etc.).
:SYSTem:BEEPer:STATe ONBeeper On. Turns the beeper on.
:TRIGger:SOURce <Source>Set Trigger Source. Sets the trigger source: Auto, Single, or External.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
:MEASure:VOLTage:AC?Measure ACV. Returns the measured AC voltage value in volts (scientific notation).
:SYSTem:ERRor?Read Error. Reads the first message from the error queue (0,"No error" if empty).
*RSTReset. Resets the instrument to its default state.
:MEASure:CURRent:DC?Measure DCI. Returns the measured DC current value in amps (scientific notation).
:SYSTem:VERSion?Read SCPI Version. Returns the SCPI version supported by the instrument.
*CLSClear Status. Clears all event registers and the error queue.
:MEASure:CURRent:AC?Measure ACI. Returns the measured AC current value in amps (scientific notation).

Only on the Rigol DM3058E

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

CALCulate (18 only on the DM3058E)

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 (13 only on the DM3058E)

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.

MEASure (13 only on the DM3058E)

CommandWhat it does
:MEASure?New Data Ready. Queries whether new data has been acquired under the current trigger setting (TRUE/FALSE).
: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.

RATE (6 only on the DM3058E)

CommandWhat it does
:RATE:VOLTage:DC <Rate>Set DCV Rate. Sets DC voltage measuring rate: F=Fast(123/s), M=Medium(20/s), S=Slow(2.5/s).
: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.

SYSTem (5 only on the DM3058E)

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

TRIGger (5 only on the DM3058E)

CommandWhat it does
:TRIGger:AUTO:INTErval <ms>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.

Only on the Siglent SDM3045X

62 command headers in the SDM3045X library have no match in the DM3058E library. Below are 20 of them from the 6 largest subsystems; the full list is in the Siglent SDM3045X command reference.

SENSe (20 only on the SDM3045X)

CommandWhat it does
SENSe:VOLTage:DC:RANGe <Range>Set DCV Range. Sets the fixed DC voltage range in volts (0.2, 2, 20, 200 or 1000).
SENSe:VOLTage:AC:RANGe <Range>Set ACV Range. Sets the fixed AC voltage range in volts (0.2, 2, 20, 200 or 750).
SENSe:CURRent:DC:RANGe <Range>Set DCI Range. Sets the fixed DC current range in amps.
SENSe:CURRent:AC:RANGe <Range>Set ACI Range. Sets the fixed AC current range in amps.

CALCulate (13 only on the SDM3045X)

CommandWhat it does
CALCulate:SCALe:STATe ONScale On. Enables the scale (dB or dBm) math operation.
CALCulate:SCALe:FUNCtion <Function>Set Scale Function. Selects whether the scale operation computes dB or dBm.
CALCulate:SCALe:DB:REFerence <Reference>Set dB Reference. Sets the dB reference value in dBm.
CALCulate:SCALe:DBM:REFerence <Reference>Set dBm Reference. Sets the dBm reference resistance in ohms.

CONFigure (13 only on the SDM3045X)

CommandWhat it does
CONFigure:VOLTage:DCConf DCV. Configures the instrument for DC voltage measurement using autorange.
CONFigure:VOLTage:ACConf ACV. Configures the instrument for AC voltage measurement using autorange.
CONFigure:CURRent:DCConf DCI. Configures the instrument for DC current measurement using autorange.
CONFigure:CURRent:ACConf ACI. Configures the instrument for AC current measurement using autorange.

TRIGger (5 only on the SDM3045X)

CommandWhat it does
TRIGger:SOURce?Read Trigger Source. Returns the present trigger source setting.
TRIGger:DELay <Seconds>Set Trigger Delay. Sets the delay in seconds between the trigger event and each measurement.
TRIGger:DELay:AUTO ONSet Trigger Delay Auto On. Enables automatic trigger delay determined by function and range.
TRIGger:COUNt <Count>Set Trigger Count. Sets the number of triggers accepted before returning to the idle state.

DATA (2 only on the SDM3045X)

CommandWhat it does
DATA:POINts?Read Data Points. Returns the number of readings currently stored in the reading memory.
DATA:REMove? <Count>Remove Data. Reads and removes the specified number of oldest readings from the reading memory.

SAMPle (2 only on the SDM3045X)

CommandWhat it does
SAMPle:COUNt <Count>Set Sample Count. Sets the number of samples taken per trigger.
SAMPle:COUNt?Read Sample Count. Returns the number of samples taken per 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 (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_DM3058E_ADDRESS")  # Rigol DM3058E
b = rm.open_resource("PASTE_SDM3045X_ADDRESS")  # Siglent SDM3045X
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: 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 Rigol DM3058E or Siglent SDM3045X and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Rigol DM3058E and the Siglent SDM3045X for remote control?

In TestFlow's library the DM3058E has 106 SCPI commands and the SDM3045X has 116 SCPI commands. 23 command headers are common to both, 60 are only on the DM3058E (mostly CALCulate and FUNCtion), and 62 are only on the SDM3045X (mostly SENSe and CALCulate).

Can I use the same SCPI code for the Rigol DM3058E and the Siglent SDM3045X?

Partly. 23 command headers are accepted by both, including :MEASure:VOLTage:DC?, :FUNCtion?, and :SYSTem:BEEPer:STATe. 122 are not, for example :CALCulate:FUNCtion on the DM3058E and SENSe:VOLTage:DC:RANGe on the SDM3045X, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the DM3058E or the SDM3045X?

The SDM3045X: 106 commands for the DM3058E against 116 for the SDM3045X in TestFlow's library. Of those, 28 on the DM3058E and 31 on the SDM3045X are queries that read a value or state, and the library splits them into 10 and 18 subsystems.

How do the DM3058E and SDM3045X 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.