In TestFlow's instrument library, the Keysight EDU34450A takes 87 SCPI commands, 28 of them queries, and the Rigol DM3058E takes 106 SCPI commands, 28 of them queries. That is 19 more on the DM3058E. Counting distinct command headers (the command path without its arguments), 23 are accepted by both, 52 exist only on the EDU34450A, and 60 only on the DM3058E. 31% of the EDU34450A's command headers also exist on the DM3058E.
Both libraries have commands under CALCulate, MEASure, SYSTem, and TRIGger. Only the EDU34450A has SENSe, CONFigure, SAMPle, DISPlay, INITiate, and READ and 4 more. Only the DM3058E has FUNCtion and RATE.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight EDU34450A or Rigol DM3058E 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.
| Keysight EDU34450A | Rigol DM3058E | |
|---|---|---|
| Commands in TestFlow's library | 87 | 106 |
| Queries (read a value or state) | 28 | 28 |
| Settings and actions | 59 | 78 |
| Subsystems | 18 | 10 |
| Distinct command headers | 75 | 83 |
| Headers the other lacks | 52 | 60 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | EDU34450A | DM3058E |
23 command headers are in both libraries. Here are 12, taken across subsystems. Where the DM3058E library writes the command differently, its form is shown under the EDU34450A's.
| Command | What it does |
|---|---|
| CALCulate:FUNCtion <Function> | Set Scale Function. Selects the scaling function applied to measurements. |
| MEASure:VOLTage:DC? <Range>,<Resolution>DM3058E: :MEASure:VOLTage:DC? | Measure DCV. Configures and returns a one-shot DC voltage measurement in volts. |
| SYSTem:BEEPer:STATe ON | Beeper On. Enables the beeper for continuity and other audible alerts. |
| TRIGger:SOURce <Source> | Set Trigger Source. Selects the trigger source for measurements. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| MEASure:VOLTage:AC? <Range>,<Resolution>DM3058E: :MEASure:VOLTage:AC? | Measure ACV. Configures and returns a one-shot AC voltage measurement in volts. |
| SYSTem:BEEPer | Beep. Issues a single beep from the instrument. |
| *RST | Reset. Resets the instrument to its factory default state. |
| MEASure:CURRent:DC? <Range>,<Resolution>DM3058E: :MEASure:CURRent:DC? | Measure DCI. Configures and returns a one-shot DC current measurement in amps. |
| SYSTem:ERRor? | Read Error. Reads and clears one error from the error queue (returns 0,"No error" if empty). |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| MEASure:CURRent:AC? <Range>,<Resolution>DM3058E: :MEASure:CURRent:AC? | Measure ACI. Configures and returns a one-shot AC current measurement in amps. |
52 command headers in the EDU34450A library have no match in the DM3058E library. Below are 18 of them from the 6 largest subsystems; the full list is in the Keysight EDU34450A command reference.
| Command | What it does |
|---|---|
| SENSe:FUNCtion "<Function>" | Set Function. Selects the active measurement function using the SENSe function name. |
| SENSe:FUNCtion? | Read Function. Returns the present measurement function as a quoted string. |
| SENSe:VOLTage:DC:RANGe <Range> | Set DCV Range. Sets the manual range for DC voltage measurements. |
| SENSe:VOLTage:AC:RANGe <Range> | Set ACV Range. Sets the manual range for AC voltage measurements. |
| Command | What it does |
|---|---|
| CONFigure:VOLTage:DC <Range>,<Resolution> | Conf DCV. Configures the instrument for DC voltage measurement with the given range and resolution. |
| CONFigure:VOLTage:AC <Range>,<Resolution> | Conf ACV. Configures the instrument for AC voltage measurement with the given range and resolution. |
| CONFigure:CURRent:DC <Range>,<Resolution> | Conf DCI. Configures the instrument for DC current measurement with the given range and resolution. |
| CONFigure:CURRent:AC <Range>,<Resolution> | Conf ACI. Configures the instrument for AC current measurement with the given range and resolution. |
| Command | What it does |
|---|---|
| CALCulate:STATe ON | Math Null On. Enables the scaling (null/dB/dBm) math operation on measurements. |
| CALCulate:NULL:OFFSet <Reference> | Set Null Reference. Sets the reference (null) value used by the scaling function. |
| CALCulate:DB:REFerence <Reference> | Set dBm Reference. Sets the relative dB reference value in dBm. |
| CALCulate:DBM:REFerence <Resistance> | Set dBm Resistance. Sets the reference resistance in ohms used for dBm calculations. |
| Command | What it does |
|---|---|
| SAMPle:COUNt <Count> | Set Sample Count. Sets the number of measurements taken per trigger. |
| SAMPle:COUNt? | Read Sample Count. Returns the number of measurements taken per trigger. |
| SAMPle:TIMer <Seconds> | Set Sample Timer. Sets the sample interval when the sample source is set to TIMer. |
| Command | What it does |
|---|---|
| TRIGger:SOURce? | Read Trigger Source. Returns the present trigger source. |
| TRIGger:DELay <Seconds> | Set Trigger Delay. Sets the delay between the trigger signal and the first measurement. |
| Command | What it does |
|---|---|
| ABORt | Abort. Aborts a measurement in progress and returns the instrument to the idle state. |
60 command headers in the DM3058E library have no match in the EDU34450A 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: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). |
| :CALCulate:STATistic:COUNt? | Stat Count. Returns the number of measurements included in the current statistics. |
| 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:PERiod? | Measure Period. Returns the measured period value in seconds. |
| :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). |
| 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 |
|---|---|
| :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. |
| Command | What it does |
|---|---|
| :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). |
| :SYSTem:CONFigure:DEFault | Default Config. Restores the system configuration to factory defaults. |
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 CALCulate:FUNCtion (set scale function); the DM3058E library writes it as :CALCulate:FUNCtion NONE. For the reading, both libraries hold MEASure:VOLTage:DC? (measure dcv); the DM3058E library writes it as :MEASure:VOLTage:DC?. 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_EDU34450A_ADDRESS") # Keysight EDU34450A
b = rm.open_resource("PASTE_DM3058E_ADDRESS") # Rigol DM3058E
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Set Scale Function
a.write("CALCulate:FUNCtion NULL")
b.write(":CALCulate:FUNCtion NONE")
# The same reading on both: Measure DCV
print(a.query("MEASure:VOLTage:DC? AUTO,MIN"))
print(b.query(":MEASure:VOLTage:DC?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight EDU34450A or Rigol DM3058E and writes the report from the measured results.
In TestFlow's library the EDU34450A has 87 SCPI commands and the DM3058E has 106 SCPI commands. 23 command headers are common to both, 52 are only on the EDU34450A (mostly SENSe and CONFigure), and 60 are only on the DM3058E (mostly CALCulate and FUNCtion).
Partly. 23 command headers are accepted by both, including CALCulate:FUNCtion, MEASure:VOLTage:DC?, and SYSTem:BEEPer:STATe. 112 are not, for example SENSe:FUNCtion on the EDU34450A and :CALCulate:STATistic:MIN? on the DM3058E, so a script that uses those needs a separate branch for each instrument.
The DM3058E: 87 commands for the EDU34450A against 106 for the DM3058E in TestFlow's library. Of those, 28 on the EDU34450A and 28 on the DM3058E are queries that read a value or state, and the library splits them into 18 and 10 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.