Oscilloscope · SCPI command comparison

Rigol DHO804 vs DS1054Z: SCPI commands and remote control compared

In TestFlow's instrument library, the Rigol DHO804 takes 150 SCPI commands, 50 of them queries, and the Rigol DS1054Z takes 149 SCPI commands, 50 of them queries. That is 1 more on the DHO804. Counting distinct command headers (the command path without its arguments), 106 are accepted by both, 13 exist only on the DHO804, and 11 only on the DS1054Z. 89% of the DHO804's command headers also exist on the DS1054Z.

Both libraries have commands under MEASure, CHANnel, TRIGger, WAVeform, TIMebase, CURSor, ACQuire, and MATH, plus 9 more roots. Only the DS1054Z has CALibrate.

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

TestFlow's library gives the DHO814 the same command set as the DHO804, so the DHO804 column applies to it too. TestFlow's library gives the DS1202Z-E the same command set as the DS1054Z, so the DS1054Z column applies to it too.

DHO804 commands
150
DS1054Z commands
149
Shared headers
106
Unique headers
24

Run this on your bench

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

Get started

DHO804 vs DS1054Z 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 DHO804Rigol DS1054Z
Commands in TestFlow's library150149
Queries (read a value or state)5050
Settings and actions10099
Subsystems2021
Distinct command headers119117
Headers the other lacks1311
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setDHO804, DHO814DS1054Z, DS1202Z-E

Commands both accept

106 command headers are in both libraries. Here are 12, taken across subsystems. Where the DS1054Z library writes the command differently, its form is shown under the DHO804's.

CommandWhat it does
:MEASure:SOURce <Source>Measure Source. Sets the source of the automatic measurement parameters.
:CHANnel<Channel>:DISPlay ONChannel On. Turns on the display of the specified analog channel.
:TRIGger:MODE <Type>Trigger Type. Selects the trigger type.
:WAVeform:SOURce <Source>Waveform Source. Sets the channel whose waveform data will be read.
:TIMebase:MAIN:SCALe <Scale>Timebase Scale. Sets the main timebase scale in s/div.
:CURSor:MODE <Mode>Cursor Mode. Enables cursor measurement in the selected mode.
:ACQuire:TYPE <Type>Acquire Type. Sets the acquisition mode of the oscilloscope.
:MATH<Math>:DISPlay ONDS1054Z: :MATH:DISPlay ONMath On. Turns on the math operation display.
:DISPlay:TYPE <Type>Display Type. Sets the waveform display mode to vectors or dots.
:SYSTem:BEEPer ONBeeper On. Turns on the instrument beeper.
[PNG:DISPlay:DATA? PNG]DS1054Z: [PNG:DISPlay:DATA? ON,OFF,PNG]Capture. Reads the screenshot of the current display back to the controller as a PNG image.
:AUTosetDS1054Z: :AUToscaleAuto Scale. Enables the waveform auto setting function to display the input signals at the best status.

Only on the Rigol DHO804

13 command headers in the DHO804 library have no match in the DS1054Z library. Below are 12 of them from the 5 largest subsystems; the full list is in the Rigol DHO804 command reference.

TRIGger (5 only on the DHO804)

CommandWhat it does
:TRIGger:EDGE:SOURce <Source>Trigger Edge Source. Sets the trigger source used by the edge trigger.
:TRIGger:EDGE:SLOPe <Slope>Trigger Edge Slope. Sets the edge type (rising, falling or either) used by the edge trigger.
:TRIGger:EDGE:LEVel <Level>Trigger Edge Level. Sets the edge trigger level in the amplitude unit of the trigger source.
:TRIGger:EDGE:LEVel?Get Trigger Edge Level. Queries the edge trigger level.

CURSor (4 only on the DHO804)

CommandWhat it does
:CURSor:MANual:CAX <Position>Cursor AX. Sets the horizontal position of cursor A in screen pixels.
:CURSor:MANual:CBX <Position>Cursor BX. Sets the horizontal position of cursor B in screen pixels.
:CURSor:MANual:CAY <Position>Cursor AY. Sets the vertical position of cursor A in screen pixels.
:CURSor:MANual:CBY <Position>Cursor BY. Sets the vertical position of cursor B in screen pixels.

TIMebase (2 only on the DHO804)

CommandWhat it does
:TIMebase:HREFerence:MODE <Mode>Horizontal Reference Mode. Sets the horizontal reference used when the timebase scale is changed.
:TIMebase:HREFerence:POSition <Position>Horizontal Reference Position. Sets the user-defined horizontal reference position on the screen.

CHANnel (1 only on the DHO804)

CommandWhat it does
:CHANnel<Channel>:POSition <Position>Channel Position. Sets the vertical position (screen offset) of the specified channel.

MEASure (1 only on the DHO804)

CommandWhat it does
:MEASure:COUNter:ENABle OFFCounter Off. Disables the hardware frequency counter.

Only on the Rigol DS1054Z

11 command headers in the DS1054Z library have no match in the DHO804 library. Below are 11 of them from the 4 largest subsystems; the full list is in the Rigol DS1054Z command reference.

CURSor (4 only on the DS1054Z)

CommandWhat it does
:CURSor:MANual:AX <Position>Cursor AX. Sets the horizontal position of cursor A in screen pixels.
:CURSor:MANual:BX <Position>Cursor BX. Sets the horizontal position of cursor B in screen pixels.
:CURSor:MANual:AY <Position>Cursor AY. Sets the vertical position of cursor A in screen pixels.
:CURSor:MANual:BY <Position>Cursor BY. Sets the vertical position of cursor B in screen pixels.

TRIGger (4 only on the DS1054Z)

CommandWhat it does
:TRIGger:EDGe:SOURce <Source>Trigger Edge Source. Sets the trigger source used by the edge trigger.
:TRIGger:EDGe:SLOPe <Slope>Trigger Edge Slope. Sets the edge type (rising, falling or either) used by the edge trigger.
:TRIGger:EDGe:LEVel <Level>Trigger Edge Level. Sets the edge trigger level in the amplitude unit of the trigger source.
:TRIGger:EDGe:LEVel?Get Trigger Edge Level. Queries the edge trigger level.

CALibrate (2 only on the DS1054Z)

CommandWhat it does
:CALibrate:STARtSelf Calibration Start. Starts the instrument self-calibration; disconnect all inputs before running it.
:CALibrate:QUITSelf Calibration Quit. Exits the self-calibration procedure.

CHANnel (1 only on the DS1054Z)

CommandWhat it does
:CHANnel<Channel>:RANGe <Range>Channel Range. Sets the full vertical range of the specified channel in volts (vertical scale = range/8).

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 :AUToset (auto scale); the DS1054Z library writes it as :AUToscale. For the reading, both libraries hold :MEASure:ITEM? (get measure item), 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_DHO804_ADDRESS")  # Rigol DHO804
b = rm.open_resource("PASTE_DS1054Z_ADDRESS")  # Rigol DS1054Z
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Auto Scale
a.write(":AUToset")
b.write(":AUToscale")

# The same reading on both: Get Measure Item
print(a.query(":MEASure:ITEM? VMAX,CHANnel1"))
print(b.query(":MEASure:ITEM? VMAX,CHANnel1"))

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

What is the difference between the Rigol DHO804 and the Rigol DS1054Z for remote control?

In TestFlow's library the DHO804 has 150 SCPI commands and the DS1054Z has 149 SCPI commands. 106 command headers are common to both, 13 are only on the DHO804 (mostly TRIGger and CURSor), and 11 are only on the DS1054Z (mostly CURSor and TRIGger).

Can I use the same SCPI code for the Rigol DHO804 and the Rigol DS1054Z?

Partly. 106 command headers are accepted by both, including :MEASure:SOURce, :CHANnel<Channel>:DISPlay, and :TRIGger:MODE. 24 are not, for example :TRIGger:EDGE:SOURce on the DHO804 and :CURSor:MANual:AX on the DS1054Z, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the DHO804 or the DS1054Z?

The DHO804: 150 commands for the DHO804 against 149 for the DS1054Z in TestFlow's library. Of those, 50 on the DHO804 and 50 on the DS1054Z are queries that read a value or state, and the library splits them into 20 and 21 subsystems.

How do the DHO804 and DS1054Z 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.