PennController for IBEX › Forums › Support › Timing units › Reply To: Timing units
May 21, 2020 at 8:19 pm
#5301
Jeremy
Keymaster
Thank you for spotting the broken link, it looks like Alex Drummond removed the PDF version of the Ibex manual.
You can use a global Var element to keep track of a counter. Add this at the beginning of your template trials:
newVar("counter", 0).global().set(v=>v+1) .test.is(v=>v%40==0) .success( newButton("Take a break").print().log().wait().remove() ) ,
Jeremy