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.
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.
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 DM3058E | Siglent SDM3045X | |
|---|---|---|
| Commands in TestFlow's library | 106 | 116 |
| Queries (read a value or state) | 28 | 31 |
| Settings and actions | 78 | 85 |
| Subsystems | 10 | 18 |
| Distinct command headers | 83 | 85 |
| Headers the other lacks | 60 | 62 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | DM3058E | SDM3045X, SDM3055 |
23 command headers are in both libraries. Here are 12, taken across subsystems.
| Command | What 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 ON | Beeper 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). |
| *RST | Reset. 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. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| :MEASure:CURRent:AC? | Measure ACI. Returns the measured AC current value in amps (scientific notation). |
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.
| Command | What 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). |
| Command | What it does |
|---|---|
| :FUNCtion:VOLTage:DC | Func DCV. Selects DC voltage as the active measurement function. |
| :FUNCtion:VOLTage:AC | Func ACV. Selects AC voltage as the active measurement function. |
| :FUNCtion:CURRent:DC | Func DCI. Selects DC current as the active measurement function. |
| :FUNCtion:CURRent:AC | Func ACI. Selects AC current as the active measurement function. |
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :SYSTem:BEEPer | Beep. 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). |
| Command | What 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 ON | Auto 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:TRIGgered | Single Trigger. Issues one manual single trigger. |
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.
| Command | What 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. |
| Command | What it does |
|---|---|
| CALCulate:SCALe:STATe ON | Scale 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. |
| Command | What it does |
|---|---|
| CONFigure:VOLTage:DC | Conf DCV. Configures the instrument for DC voltage measurement using autorange. |
| CONFigure:VOLTage:AC | Conf ACV. Configures the instrument for AC voltage measurement using autorange. |
| CONFigure:CURRent:DC | Conf DCI. Configures the instrument for DC current measurement using autorange. |
| CONFigure:CURRent:AC | Conf ACI. Configures the instrument for AC current measurement using autorange. |
| Command | What 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 ON | Set 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. |
| Command | What 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. |
| Command | What 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. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.