15.61.1 Examples

TD:SET WINDOW 1 of V_SETS TD:REPEAT "HIST SET=V_WINDOW;SET WINDOW NEXT;" V_SETS produces histograms of all currently available data sets. TD:DEFINE VALUE THETA=0 TD:DEFINE COMMAND INCR="DEV VAL THETA=<V_THETA +1>;" TD:DEFINE COMMAND LEND="IF THETA .GT. 180.1 ENDREPEAT" TD:REPEAT "V_THETA,<SIN(V_THETA)>;INCR;LEND" or... TD:REPEAT "V_THETA,<SIN(V_THETA)>;INCR" 181 Produces a SINE function from 0 to 180 degrees in 1 degree steps. This example breaks the command into small separate commands. This is not really necessary since the total length of a command may be 256 characters. TD:REPEAT "<V_REPEAT-1>,<SIN<V_REPEAT-1>>" 181 Also generates a sine function from 0 to 180 degrees, in a much faster fashion.