PennController for IBEX › Forums › Support › Scale feedback and timeout › Reply To: Scale feedback and timeout
July 18, 2023 at 2:45 am
#10753
Jeremy
Keymaster
Hi,
There is no test command specific to the Question controller, because the Controller element can inject any IBEX controller in a PennController trial, including custom ones. The Question controller can very easily be coded manually, so I suggest you do that to get better control over the trial’s structure:
newTrial( newText("Is this a question?").center().print() , newTimer("timeout", 3000).start() , newScale("answer", "Yes", "No") .keys("Y","N") .button() .callback( getTimer("timeout").stop() ) .center() .print() , getTimer("timeout").wait() , getScale("answer") .test.selected() .success( getScale("answer").test.selected("Yes").failure( newText("Wrong answer!").print() ) ) .failure( newText("You didn't answer in time!").print() ) , newTimer(2000).start().wait() )
Jeremy