Program Quick Reference

Cub script commands for the Devices page.

Script commands

  • dwell 120 — run 120 seconds at the current frequency
  • amplitude 10 — output voltage (V); applies to the current program channel
  • waveform square — sine, square, or sawtooth on the current program channel
  • program a / program b — select channel A or B for subsequent frequency, waveform, and amplitude lines
  • sweep 1000 2000 0.1 — sweep start→end, step Hz
  • 728.1 — run frequency (Hz) on the current program channel
  • backfreq b 528 50 — background on channel B while the next Hz runs on channel A (gang/tandem; no extra dwell). Channel letter may be a or b.
  • pulse 4 50 — gate the current program frequency with a 4 Hz, 50% duty background signal on the other channel. Use pulse 0 0 to turn pulsing off.
  • Focal Pulse (program editor checkbox) — inserts pulse <focalHz> 50 just before each dwell that precedes a sweep. Focal Hz comes from a preceding # Focal: comment, otherwise the sweep midpoint.
  • offset + / offset - — DC / AC offset
  • # comment — ignored line
  • label msloopgoto msloop — loop the script

Dual-channel scripts (gang run, program b, backfreq) are fully supported on Spooky2, JDS6600, and GX. Feeltech/FY2300 has a single output — channel B commands are ignored with a log warning.

Example gang script:

dwell 10
backfreq b 528 50
1000
backfreq b 528 50
2000

Example script:

# example
dwell 120
sweep 10000 10100 0.03
728.1