Program Quick Reference
Cub script commands for the Devices page.
Script commands
dwell 120— run 120 seconds at the current frequencyamplitude 10— output voltage (V); applies to the current program channelwaveform square— sine, square, or sawtooth on the current program channelprogram a/program b— select channel A or B for subsequent frequency, waveform, and amplitude linessweep 1000 2000 0.1— sweep start→end, step Hz728.1— run frequency (Hz) on the current program channelbackfreq b 528 50— background on channel B while the next Hz runs on channel A (gang/tandem; no extra dwell). Channel letter may beaorb.pulse 4 50— gate the current program frequency with a 4 Hz, 50% duty background signal on the other channel. Usepulse 0 0to turn pulsing off.- Focal Pulse (program editor checkbox) — inserts
pulse <focalHz> 50just before eachdwellthat precedes asweep. Focal Hz comes from a preceding# Focal:comment, otherwise the sweep midpoint. offset +/offset -— DC / AC offsetpause 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 currentdwellis 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