RF Shell Example Script
RFShell reads commands, either interactively or from a file. Commands are either RFControl commands, such as "rfon" or RFShell commands, like "wait" or "pause 10".
RFShell supports loops and variable/expression evaluation and substitution for RFControl and RFShell commands. RFShell also has built in wait (until the user presses the Enter key) and pause mS (for a specific time delay) commands.
##################################################
# attach to serial number and display the GUI
attach d04017edd70894f7 -show
# DEMO 1 : turn on the RF and wait; turn it off after wait
wait
rfon
wait
rfoff
clkext
wait
clkint
wait
#
# DEMO 2:
# loop 5 times
# In each pass double the frequency setting each pass
# increase the delay by 1.5 seconds each pass
#
#
wait
setvar frequency 35
setvar delay 1000
rfon
loop start freq 5
setfreq $frequency
delay $delay
setvar frequency $frequency*2
incvar delay 1500
loop end freq
rfoff
#
# DEMO 3:
# set up the synthmachine autoscan
# to scan from 100 to 200 by 10, and delay 2
# run it until we hit the return key
#
wait
setfreqfrom 100
setfreqto 200
setfreqstep 10
setfreqdelay 2
freqscan
wait
stop