PennController for IBEX › Forums › Support › Behavioural task score › Reply To: Behavioural task score
May 27, 2020 at 12:56 pm
#5446
Jeremy
Keymaster
Hi Zoë,
You Text element does get printed onto the page, but notice that you’re also ending the Timer element (early) at the same time, and there’s nothing left to do in your trial once the Timer has ended, so your script immediately goes to the next trial. Maybe this would make more sense:
Template("recall_practice_stimuli.csv", row => newTrial("recall-"+row.block, newVar("score", 0).global(), newText(row.item) .center() .css("font-size", "2em") .css("font-family", "verdana") .print() , newText("instruction", "In which condition did you encounter this word in the experiment? Press the F KEY for INNER, the J KEY for OUTER, and the SPACEBAR for NEW WORD") .print() , newTimer("window", 5000) .start() , newKey("question1", "FJ ") .log() .callback( getText(row.item).remove() , getText("instruction").remove() , getTimer("window").stop() ) , getTimer("window") .wait() , getKey("question1") .test.pressed("F") .success( newText("Good job!").print() , newTimer(1000).start().wait() ) ) .log(row.item) .log(row.Group) .log(row.condition) .log(row.correctKey) );
This way you leave 1s for your participant to read the “Good job!” feedback
Jeremy