Skip to content

REPL Command Reference — Auto-Generated

Info

This page is auto-generated from the REPL source code at build time. Subcommands are extracted from the command handlers, and help text is captured from the built-in _show_help() methods.

For detailed usage guides with examples, see the individual instrument pages (PSU, AWG, DMM, Scope, SMU).

PSU — Power Supply

Subcommands: psu chan, psu set, psu meas, psu get, psu track, psu save, psu recall, psu on, psu state, psu off

Single-channel PSU

============================================================
   PSU
============================================================


psu on|off
psu chan <1-1|all> on|off
psu set <channel> <voltage> [current]
  - channels: 1-1
  - example: psu set 1 5.0 0.2
psu meas <channel> v|i
  - example: psu meas 1 v
  - or assign: value = psu read [unit=]
psu get  (show setpoints)
psu state on|off|safe|reset

Multi-channel PSU

============================================================
   PSU
============================================================


psu on|off
psu chan <1-1|all> on|off
psu set <channel> <voltage> [current]
  - channels: 1-1
  - example: psu set 1 5.0 0.2
psu meas <channel> v|i
  - example: psu meas 1 v
  - or assign: value = psu read [unit=]
psu get  (show setpoints)
psu state on|off|safe|reset

AWG — Function Generator

Subcommands: awg chan, awg wave, awg freq, awg amp, awg offset, awg duty, awg phase, awg sync, awg state, awg on, awg off

============================================================
   AWG
============================================================


awg on|off <1|2|all>
awg chan <1|2|all> on|off
awg wave <1|2|all> <type> [freq=] [amp=] [offset=] [duty=] [phase=]
  - type: sine|square|ramp|triangle|pulse|noise|dc|arb
  - example: awg wave 1 sine freq=1000 amp=5.0 offset=2.5
  - example: awg wave all sine freq=1000

awg freq <1|2|all> <Hz>
awg amp <1|2|all> <Vpp>
awg offset <1|2|all> <V>
awg duty <1|2|all> <%>
awg phase <1|2|all> <deg>

awg sync on|off
awg state on|off|safe|reset

DMM — Multimeter

Subcommands: dmm read, dmm fetch, dmm meas, dmm beep, dmm display, dmm text, dmm text_loop, dmm cleartext, dmm state, dmm ranges, dmm limits, dmm config, dmm mode

============================================================
   DMM
============================================================


dmm config <vdc|vac|idc|iac|res|fres|freq|per|cont|diode|cap|temp> [range] [res] [nplc=]
  - range/res/nplc are optional (auto-configured if not specified)
  - nplc=0.02|0.2|1|10|100 (DC only, if supported)
  - example: dmm config vdc
  - example: dmm config vdc 10 0.001 nplc=10

dmm read
  - or assign: value = dmm read [unit=]
dmm fetch
dmm meas <mode> [range] [res]
dmm beep
dmm display on|off
dmm text <message> [scroll=auto|on|off] [delay=] [loops=] [pad=] [width=]
dmm ranges
dmm state safe|reset

Scope — Oscilloscope

Subcommands: scope autoset, scope run, scope stop, scope single, scope wait_stop, scope chan, scope coupling, scope probe, scope hscale, scope hpos, scope hmove, scope vscale, scope vpos, scope vmove, scope trigger, scope meas, scope meas_loop, scope meas_setup, scope meas_force, scope meas_clear, scope meas_delay, scope meas_delay_store, scope save, scope awg, scope counter, scope dvm, scope state, scope screenshot, scope label, scope invert, scope bwlimit, scope force, scope display, scope acquire, scope cursor, scope math, scope record, scope mask, scope reset

============================================================
   SCOPE
============================================================


scope autoset
scope run - start/resume continuous acquisition
scope stop - pause acquisition (freeze current display)
scope single - arm single-shot trigger (capture one event and stop)

scope chan <1-4|all> on|off
scope coupling <1-4|all> <DC|AC|GND>
  - example: scope coupling 1 AC
  - example: scope coupling all DC
scope probe <1-4|all> <attenuation> - set probe attenuation (1, 10, 100, etc.)
  - example: scope probe 1 10

scope hscale <seconds_per_div>
  - example: scope hscale 1e-3
scope hpos <seconds> - set horizontal offset (0 = trigger at center)
scope hmove <delta> - move horizontal offset by delta seconds

scope vscale <1-4|all> <volts_per_div> [pos]
  - example: scope vscale 1 0.5 0
  - example: scope vscale all 1.0
scope vpos <1-4|all> <divisions> - set vertical position
scope vmove <1-4|all> <delta> - move vertical position by delta

scope trigger <chan> <level> [slope=RISE] [mode=AUTO]

scope meas <1-4|all> <type> - measure waveform parameter
scope meas_loop <1-4|all> <type> [interval=1.0] [count=0] [label=] [unit=]
  - continuously measure at an interval; Ctrl+C to stop
  - count=0 means run until stopped
  - label= stores each reading to the measurement log
  - example: scope meas_loop 1 FREQUENCY interval=0.5
  - example: scope meas_loop 1 RMS count=10 label=vrms unit=V
  - types: FREQUENCY, PK2PK, RMS, MEAN, PERIOD, MINIMUM, MAXIMUM
  - types: RISE, FALL, AMPLITUDE, HIGH, LOW, PWIDTH, NWIDTH, CRMS
  - example: scope meas 1 FREQUENCY
  - example: scope meas all PK2PK
scope meas_delay <ch1> <ch2> [edge1=RISE] [edge2=RISE] [direction=FORWARDS]
scope meas_delay_store <ch1> <ch2> <label> [edge1=RISE] [edge2=RISE] [direction=FORWARDS] [unit=]

scope save <channels> <filename> [record=<secs>] [time=<secs>] [points=<n>]
  - channels: single channel (1-4) or comma-separated list (1,3)
  - record=<secs>: WAIT and record for X seconds before saving
  - time=<secs>: filter to last X seconds of buffer (no waiting)
  - points=<n>: limit to specific number of points
  - example: scope save 1 ch1_data.csv
  - example: scope save 1,3 data.csv record=15  (wait 15s then save)
  - example: scope save 2 output.csv time=5 (filter to last 5s)
  - example: scope save 2 output.csv points=1000

scope awg <subcmd> - built-in AWG control (type 'scope awg' for help)
scope counter <subcmd> - frequency counter (type 'scope counter' for help)
scope dvm <subcmd> - digital voltmeter (type 'scope dvm' for help)
scope state on|off|safe|reset


============================================================
   DHO804-SPECIFIC
============================================================

scope screenshot [filename] - save screenshot to PNG
scope label <ch> <text> - set channel label
scope invert <ch> on|off - invert channel display
scope bwlimit <ch> <20M|OFF> - set bandwidth limit
scope force - force trigger

scope display <subcmd> - display settings (type 'scope display' for help)
scope acquire <subcmd> - acquisition settings (type 'scope acquire' for help)
scope cursor <subcmd> - cursor control (type 'scope cursor' for help)
scope math <subcmd> - math channels (type 'scope math' for help)
scope record <subcmd> - waveform recording (type 'scope record' for help)
scope mask <subcmd> - pass/fail mask testing (type 'scope mask' for help)

SMU — Source Measure Unit

Subcommands: smu on, smu set, smu set_mode, smu meas, smu compliance, smu source_delay, smu avg, smu temp, smu get, smu state, smu off

============================================================
   SMU (SOURCE MEASURE UNIT)
============================================================


smu on|off
smu set <voltage> [current_limit]
  - voltage: -60 to 60V, current_limit: 0 to 3A
  - example: smu set 5.0 0.01
smu set_mode voltage <v> [current_limit]
smu set_mode current <i> [voltage_limit]
  - example: smu set_mode current 0.05 5.0
smu meas [v|i|vi]
  - no arg or vi: atomic V+I+compliance in one call
  - assign + log: label = smu meas v [unit=V]
smu compliance  (query compliance state)
smu source_delay [<seconds>]  (get/set settle delay)
smu avg [<N>]  (get/set samples_to_average)
smu temp  (read instrument temperature)
smu get  (show setpoints)
smu state on|off|safe|reset