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.
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.
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 DHO804 | Rigol DS1054Z | |
|---|---|---|
| Commands in TestFlow's library | 150 | 149 |
| Queries (read a value or state) | 50 | 50 |
| Settings and actions | 100 | 99 |
| Subsystems | 20 | 21 |
| Distinct command headers | 119 | 117 |
| Headers the other lacks | 13 | 11 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | DHO804, DHO814 | DS1054Z, DS1202Z-E |
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.
| Command | What it does |
|---|---|
| :MEASure:SOURce <Source> | Measure Source. Sets the source of the automatic measurement parameters. |
| :CHANnel<Channel>:DISPlay ON | Channel 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 ON | Math On. Turns on the math operation display. |
| :DISPlay:TYPE <Type> | Display Type. Sets the waveform display mode to vectors or dots. |
| :SYSTem:BEEPer ON | Beeper 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: :AUToscale | Auto Scale. Enables the waveform auto setting function to display the input signals at the best status. |
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.
| Command | What 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. |
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :CHANnel<Channel>:POSition <Position> | Channel Position. Sets the vertical position (screen offset) of the specified channel. |
| Command | What it does |
|---|---|
| :MEASure:COUNter:ENABle OFF | Counter Off. Disables the hardware frequency counter. |
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.
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :CALibrate:STARt | Self Calibration Start. Starts the instrument self-calibration; disconnect all inputs before running it. |
| :CALibrate:QUIT | Self Calibration Quit. Exits the self-calibration procedure. |
| Command | What it does |
|---|---|
| :CHANnel<Channel>:RANGe <Range> | Channel Range. Sets the full vertical range of the specified channel in volts (vertical scale = range/8). |
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()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.
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).
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.
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.
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.