PennController for IBEX › Forums › Support › Putting 4s time pressure on experimental trials › Reply To: Putting 4s time pressure on experimental trials
December 7, 2022 at 3:21 pm
#9776
Jeremy
Keymaster
Hi,
Yes, the logic is exactly the same:
newTrial( newTimer("timeout", 4000).start() , newText("Please click on A, B or C").css("margin-bottom","1em").print() , newScale("answer", "A", "B", "C") .css({"max-width":"unset",width:"10vw"}) .button() .callback( getTimer("timeout").stop() ) .print() .log() , getTimer("timeout").wait() , clear() , getScale("answer").test.selected().failure( newText("Time out! Press SPACE to proceed").print() , newKey(" ").wait() ) )
Jeremy