I’m trying to add feedback to a timing task, but the two feedback messages I want to give the user are not displaying when I run the task. I’ve written some custom code that’s been added to Psychopy as a new routine. Under Code Properties, I have the following:
x=key_resp_3.rt/intervals y=abs(key_resp_3.rt-intervals) if y<=x/6.7: msg="Great" elif y>x/6.7: msg=" "
I want the first message to display when y is less than or = to the statement (1st condition) and no message to display (2nd condition) if it is more. Note that intervals is a variable that I created.
In the custom text GUI, I wrote $msg for the text and set it for a duration of 3 seconds. Not sure why the messages won’t display.
Is it a syntax error? Does anyone have any ideas?