Skip to content

SCPI Reference

Val edited this page Nov 17, 2026 · 8 revisions

Commands work over USBTMC and the CDC serial port (USB and Remote Mode). This is an overview of the most useful commands, not a complete list.

Syntax

  • Short and long forms (TRIG:EDGE:LEV = TRIGger:EDGE:LEVel), case-insensitive, ; between commands, LF or CRLF.
  • Units: Hz/kHz/MHz, V/mV/uV, s/ms/us/ns, %.
  • Errors go to SYST:ERR?: -113 unknown command, -222/-224 bad value, -221 not possible in the current state, -230 no data yet. A failed query returns NAN.
  • An unsupported feature returns an error, never a fake success.

Common

Command
*IDN? OpenOSC,<profile>,<serial>,<version>; the profile name is a compatibility alias
*CLS, SYST:ERR?, *ESR?, *STB? Status and error queue
*OPC?, *WAI Wait for multimeter commands and single captures
SYST:MODE SCOPe|DMM|GENerator Same as the MODE key
SYST:REM ON|OFF Remote mode
SYST:CLOC:MODE 200|280|360 Performance Profiles
SYST:REC Restart into Recovery
SYST:CAL:FACT?, SYST:CAL:FACT:FORM? The calibration record as read at boot, and its format

Oscilloscope

Command
RUN, STOP, SING, TFORce Capture control
TRIG:STAT? RUN, WAIT, STOP
CHAN<n>:DISP, :COUP, :PROB, :SCAL, :OFFS Channel settings
TIM:SCAL, TIM:OFFS Timebase and horizontal position
ACQ:MDEP, ACQ:SRAT?, ACQ:ROLL Record depth, sample rate, Roll
TRIG:SWE AUTO|NORM|SING, TRIG:EDGE:SOUR, :SLOP, :LEV, :NREJ, TRIG:POS Trigger
AUToscale Auto Setup
CHAN<n>:FCNT?, MEAS:FCNT?, MEAS:FCNT:QUAL? Hardware frequency counter and its quality
WAV:SOUR, WAV:MODE RAW, WAV:FORM BYTE, WAV:STAR, WAV:STOP, WAV:PRE?, WAV:DATA? Read waveforms (up to 524,288 points per channel)
WAV:SNAP, WAV:SEQ?, ACQ:FRAMe? Frame handling: release the held frame, frame numbers

Protocol decoder

Command
DECode:STATe?, DECode:PROTocol? Is the decoder on, which protocol
DECode:RESult? Summary of the latest result: status, events, lost events, sample rate …
DECode:DATA? The decoded events as CSV
DECode:SAVE, DECode:SAVE? Save the CSV on the device; path of the last file

Decoder settings are changed on the device (Protocol Decoders).

Multimeter

Command
CONF:VOLT:DC|AC, CONF:CURR:DC|AC, CONF:MVOL:…, CONF:MCUR:…, CONF:RES, CONF:CAP, CONF:CONT, CONF:DIOD Select the function
FUNC? Current function
MEAS?, FETCH? Latest reading (respects HOLD and REL)
READ? Next new reading (waits up to 2 s)
AUTO, RANGE <n> Auto range, manual range index
SYST:DMM:RANG:LIST? Full-scale values of the ranges of the current function
SYST:DMM:RES? Reading and its metadata in one line
SYST:DMM:HOLD ON|OFF, SYST:DMM:HOLD:MODE MAN|DEL|STAB|AUTO, …:DEL, …:STAB, …:BAND, …:REAR, …:COUN, …:ARM, …:STAT? HOLD and HOLD modes
SYST:DMM:REL ON|OFF Relative measurement
SYST:DMM:STAT?, SYST:DMM:STAT:RES Statistics, reset

SYST:DMM:RES? fields: function, value, status, secondary value, secondary quantity, range index, range mode (1 auto, 0 manual, −1 unknown), HOLD, REL, sequence, timestamp in µs. Status 14 means the meter showed no number.

Signal generator

Command
SOUR:FUNC SIN|SQU|TRI|HALF|POS|RAMP Waveform
SOUR:FREQ <f> Frequency
SOUR:PULS:DCYC <%> Duty (square)
OUTP ON|OFF Output
OUTP:STAR OFF|REST Output at power-on
SOUR:LEV:PROF, SOUR:LEV:LOW, SOUR:LEV:HIGH, SOUR:LEV:PATH?, SOUR:SQU:DRIV ZT703S: level profile, DAC codes, output path, square drive
SOUR:VOLT <V> ZT706S: amplitude

On the other model, model-specific commands return -241 Hardware missing.

Example

Read one DC voltage (multimeter screen active):

*IDN?
CONF:VOLT:DC
READ?

Take a single capture and read CH1 (oscilloscope screen active):

TIM:SCAL 1e-3
SING
*OPC?
WAV:SOUR CHAN1
WAV:MODE RAW
WAV:FORM BYTE
WAV:PRE?
WAV:DATA?

SYST:MODE between oscilloscope and multimeter re-connects USB, so reopen the connection after it before sending the next command.

Clone this wiki locally