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
  • pause 5 — wait 5 seconds (Start Delay inserts this after the leading comment block)
  • fuzz 10 0.1 — walk ±10 Hz around each following frequency in 0.1 Hz steps. The current dwell is the wall time for that listed frequency and is split across the inclusive walk (example: dwell 100 + fuzz 5 1 → 11 holds of 9.09 s). Add Fuzz inserts this after the comment block / offset / label
  • # comment — ignored line
  • # patient: Name — optional header. The program page writes this from the Patient field before a run.
  • label msloop … goto msloop — loop the script

Dual-channel scripts (gang run, program b, backfreq) are fully supported on Spooky2, JDS6600, GX, and Feeltech/FY2300. Out1 carries program A; Out2 carries program B / backfreq.

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