Oscilloscope · SCPI command comparison

Keysight DSOX1102G vs Rigol DS1054Z: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight DSOX1102G takes 168 SCPI commands, 64 of them queries, and the Rigol DS1054Z takes 149 SCPI commands, 50 of them queries. That is 19 more on the DSOX1102G. Counting distinct command headers (the command path without its arguments), 51 are accepted by both, 98 exist only on the DSOX1102G, and 66 only on the DS1054Z. 34% of the DSOX1102G's command headers also exist on the DS1054Z.

Both libraries have commands under MEASure, CHANnel, TRIGger, WAVeform, TIMebase, ACQuire, DISPlay, and SYSTem, plus 5 more roots. Only the DSOX1102G has WGEN, FUNCtion, DVM, DIGitize, TER, and AER. Only the DS1054Z has CURSor, MATH, CALibrate, TFORce, and CLEar.

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

TestFlow's library gives the EDUX1002G the same command set as the DSOX1102G, so the DSOX1102G 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.

DSOX1102G commands
168
DS1054Z commands
149
Shared headers
51
Unique headers
164

Run this on your bench

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

Get started

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

Keysight DSOX1102GRigol DS1054Z
Commands in TestFlow's library168149
Queries (read a value or state)6450
Settings and actions10499
Subsystems2221
Distinct command headers149117
Headers the other lacks9866
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setDSOX1102G, EDUX1002GDS1054Z, DS1202Z-E

Commands both accept

51 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 DSOX1102G's.

CommandWhat it does
:MEASure:SOURce <Source>Measure Source. Selects the source used by subsequent measurement commands.
:CHANnel<Channel>:DISPlay ONChannel On. Turns on the display of the specified analog channel.
:TRIGger:MODE <Mode>DS1054Z: :TRIGger:MODE <Type>Trigger Mode. Selects the trigger type used by the oscilloscope.
:WAVeform:SOURce <Source>Waveform Source. Selects the source of the waveform data read back over the bus.
:TIMebase:MODE <Mode>Timebase Mode. Sets the horizontal timebase mode (main, zoomed window, XY or roll).
:ACQuire:TYPE <Type>Acquire Type. Selects the acquisition type used to build each waveform record.
:DISPlay:CLEarClear Display. Clears the display and resets all associated measurements.
:SYSTem:ERRor?Get Error. Reads and clears the next entry in the error queue.
[PNG:DISPlay:DATA? PNG,COLor]DS1054Z: [PNG:DISPlay:DATA? ON,OFF,PNG]Capture. Reads a colour PNG screenshot of the current display back to the controller.
:AUToscaleAuto Scale. Evaluates all input signals and sets the correct vertical, horizontal and trigger settings to display the signals.
:RUNRun. Starts repetitive acquisitions (same as pressing the Run key on the front panel).
:STOPStop. Stops the acquisition system and freezes the last acquired waveform on screen.

Only on the Keysight DSOX1102G

98 command headers in the DSOX1102G library have no match in the DS1054Z library. Below are 24 of them from the 6 largest subsystems; the full list is in the Keysight DSOX1102G command reference.

MEASure (25 only on the DSOX1102G)

CommandWhat it does
:MEASure:SOURce?Get Measure Source. Queries the source currently selected for measurements.
:MEASure:WINDow <Window>Measure Window. Selects whether measurements are made in the main window, the zoomed window or gated by markers.
:MEASure:VPP? <Source>Measure Vpp. Measures the peak-to-peak voltage of the selected source.
:MEASure:VMAX? <Source>Measure Vmax. Measures the maximum voltage of the selected source.

TRIGger (12 only on the DSOX1102G)

CommandWhat it does
:TRIGger:FORCeForce Trigger. Forces an immediate trigger event regardless of whether the trigger condition is met.
:TRIGger:SWEep?Get Trigger Sweep. Queries the current trigger sweep mode.
:TRIGger:EDGE:SOURce <Source>Trigger Source. Selects the source used for edge triggering.
:TRIGger:EDGE:SOURce?Get Trigger Source. Queries the current edge trigger source.

WGEN (12 only on the DSOX1102G)

CommandWhat it does
:WGEN:FUNCtion <Function>Wgen Function. Selects the waveform shape produced by the built-in waveform generator.
:WGEN:FREQuency <Frequency>Wgen Frequency. Sets the waveform generator output frequency in hertz.
:WGEN:VOLTage <Amplitude>Wgen Amplitude. Sets the waveform generator output amplitude in volts peak-to-peak.
:WGEN:VOLTage:OFFSet <Offset>Wgen Offset. Sets the waveform generator DC offset voltage.

TIMebase (10 only on the DSOX1102G)

CommandWhat it does
:TIMebase:SCALe <Scale>Timebase Scale. Sets the main timebase in seconds per division.
:TIMebase:SCALe?Get Timebase Scale. Queries the main timebase in seconds per division.
:TIMebase:RANGe <Range>Timebase Range. Sets the full-scale horizontal time in seconds for 10 divisions.
:TIMebase:POSition <Position>Timebase Position. Sets the time in seconds between the trigger event and the display reference point.

FUNCtion (8 only on the DSOX1102G)

CommandWhat it does
:FUNCtion:DISPlay ONMath Display On. Turns on the display of the specified math function waveform.
:FUNCtion:OPERation <Operation>Math Operation. Selects the operation performed by the math function.
:FUNCtion:SOURce1 <Source>Math Source 1. Selects the first input source for the math function.
:FUNCtion:SCALe <Scale>Math Scale. Sets the vertical scale of the math function waveform in units per division.

ACQuire (7 only on the DSOX1102G)

CommandWhat it does
:ACQuire:COUNt <Count>Acquire Count. Sets the number of acquisitions averaged per time bucket in AVERage acquisition type (2 to 65536).
:ACQuire:COUNt?Get Acquire Count. Queries the averaging count currently selected.
:ACQuire:MODE <Mode>Acquire Mode. Sets the acquisition mode to real time or segmented memory.
:ACQuire:MODE?Get Acquire Mode. Queries the acquisition mode of the oscilloscope.

Only on the Rigol DS1054Z

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

MEASure (15 only on the DS1054Z)

CommandWhat it does
:MEASure:ITEM <Item>,<Source>Measure Item. Adds an automatic measurement of the selected parameter on the selected source.
:MEASure:ITEM? <Item>,<Source>Get Measure Item. Queries the measurement result of the selected parameter on the selected source.
:MEASure:AMSource <Source>Measure All Source. Sets the source of the all-parameter measurement function.
:MEASure:STATistic:DISPlay ONStatistics On. Turns on the statistic function for the automatic measurements.

TRIGger (12 only on the DS1054Z)

CommandWhat it does
:TRIGger:COUPling <Coupling>Trigger Coupling. Sets the trigger coupling type (edge trigger with an analog source only).
:TRIGger:STATus?Get Trigger Status. Queries the current trigger status (TD, WAIT, RUN, AUTO or STOP).
:TRIGger:POSition?Get Trigger Position. Queries the memory position that corresponds to the waveform trigger position.
:TRIGger:EDGe:SOURce <Source>Trigger Edge Source. Sets the trigger source used by the edge trigger.

CURSor (9 only on the DS1054Z)

CommandWhat it does
:CURSor:MODE <Mode>Cursor Mode. Enables cursor measurement in the selected mode.
:CURSor:MANual:SOURce <Source>Cursor Source. Sets the channel the manual cursors measure.
:CURSor:MANual:TYPE <Type>Cursor Type. Sets the manual cursor type (X for time, Y for amplitude).
:CURSor:MANual:AX <Position>Cursor AX. Sets the horizontal position of cursor A in screen pixels.

TIMebase (7 only on the DS1054Z)

CommandWhat it does
:TIMebase:MAIN:SCALe <Scale>Timebase Scale. Sets the main timebase scale in s/div.
:TIMebase:MAIN:SCALe?Get Timebase Scale. Queries the main timebase scale in s/div.
:TIMebase:MAIN:OFFSet <Offset>Timebase Offset. Sets the main timebase (horizontal) offset in seconds relative to the trigger point.
:TIMebase:MAIN:OFFSet?Get Timebase Offset. Queries the main timebase (horizontal) offset in seconds.

DISPlay (5 only on the DS1054Z)

CommandWhat it does
:DISPlay:TYPE <Type>Display Type. Sets the waveform display mode to vectors or dots.
:DISPlay:GRADing:TIME <Time>Persistence Time. Sets the waveform persistence time in seconds (MIN or INFinite also accepted).
:DISPlay:GRID <Grid>Display Grid. Sets the screen grid type.
:DISPlay:WBRightness <Percent>Waveform Brightness. Sets the waveform display brightness from 0 to 100 percent.

MATH (5 only on the DS1054Z)

CommandWhat it does
:MATH:DISPlay ONMath On. Turns on the math operation display.
:MATH:OPERator <Operator>Math Operator. Sets the operator of the math operation.
:MATH:SOURce1 <Source>Math Source 1. Sets source A of the math operation.
:MATH:SCALe <Scale>Math Scale. Sets the vertical scale of the math operation result.

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 :AUToscale (auto scale), and the same line runs on each. For the reading, both libraries hold :CHANnel<Channel>:DISPlay? (get channel state), 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_DSOX1102G_ADDRESS")  # Keysight DSOX1102G
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(":AUToscale")
b.write(":AUToscale")

# The same reading on both: Get Channel State
print(a.query(":CHANnel1:DISPlay?"))
print(b.query(":CHANnel1:DISPlay?"))

a.close()
b.close()

Run this on your bench

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

Get started

Frequently asked questions

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

In TestFlow's library the DSOX1102G has 168 SCPI commands and the DS1054Z has 149 SCPI commands. 51 command headers are common to both, 98 are only on the DSOX1102G (mostly MEASure and TRIGger), and 66 are only on the DS1054Z (mostly MEASure and TRIGger).

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

Partly. 51 command headers are accepted by both, including :MEASure:SOURce, :CHANnel<Channel>:DISPlay, and :TRIGger:MODE. 164 are not, for example :MEASure:SOURce? on the DSOX1102G and :MEASure:ITEM on the DS1054Z, so a script that uses those needs a separate branch for each instrument.

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

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

How do the DSOX1102G 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.