Hi Jeremy,
I’m having trouble using test.pressed to give subjects feedback on a key press Stroop task. Here’s what I have right now.
Template("practice.csv",
row => newTrial ("practice",
newText("PracticeStim", row.StimWord)
.settings.css("font-size", "36")
.bold()
.color(row.StimColor)
.print()
,
newKey("key", "RBGO")
.wait()
.log()
,
getKey("key")
.test.pressed(row.CorrectResponse)
.success( newText("success", "Correct!").print() )
.failure( newText("failure", "Incorrect - press the key that matches the COLOR of the text, not the meaning of the word").print() )
)
)
I’ve been reading some previous posts and tried things like putting the .test.pressed in callback, or adding in a timer to allow time for the results to print, but nothing seems to work. The script runs just fine, I just never see the result of the test.pressed. I also saw a response about making sure I’m using PC 1.8. I’m not sure how to check that, but I am working in a new experiment which I started today, so I’m thinking it should be ok? Any help is appreciated!
Thanks!