PennController for IBEX › Forums › Support › Feedback after selecting an image › Reply To: Feedback after selecting an image
February 11, 2020 at 4:24 pm
#4692
Jeremy
Keymaster
Hi Elise,
The problem is coming from the PennController
command that you call from inside another PennController
command, just before your getKey("answer")
. It simply shouldn’t be there. Try again with the fixed script below:
PennController.Template("Materials_Practice.csv", row => ["dashed_practice", "DashedSentence", {s: row.Sentence}, "PennController", PennController( newImage("CoveredPicture", "covered.png") .settings.size(500,500) , newImage("1", row.Picture) .settings.size(500,500) , newText("leftLabel","(F)") , newText("rightLabel","(J)") , newCanvas(700,500) .settings.add( 350 , 0 , getImage("CoveredPicture")) .settings.add( -250, 0 , getImage("1") ) .print() , newCanvas(500,500) .settings.add(0,500, getText("leftLabel")) .settings.add(600,500, getText("rightLabel")) .print() , newKey("answer","FJ") .wait() , newText("positive feedback", "Correct!") , newText("negative feedback", "Wrong...") , getKey("answer") .test.pressed("F") .success( getText("positive feedback") .print() ) .failure( getText("negative feedback") .print() ) , newButton("continue", "Next") .print() .wait() // You need to wait before going to the next trial )] )
Jeremy