Kevin asked:
Is there any way to set a PAUSE with a number in W? I have an j indexed program (15 channel) and need to have a pause for each one set by a multitude of parameters.
Hi Kevin, take a look at this:
tmrJTimer defTIME24 15 ;Set aside 15 timers
fJTargetInterval defFloat 15 ;15 target times
; ...... in jndexed code, want to delay W x 10mS
fStore fJTargetInterval ;Save target interval from W
STStart tmrJTimer ;Capture "now"
jTiming:
YieldTask
fSTTimeSince tmrJTimer ;How long since STStart
fRecallQ fJTargetInterval ;How long we want
fSUB ;Target-Elapsed.
;Negative if Elapsed > Target
fGoIfPos jTiming ;G/ Elapsed <= Target
;.... delay done
You would include this code in a MultiTrack task, and simply launch 15 instances of the task with J values 0-14. The rest is automatic. In effect you get an array of tasks.
