Reference error: 'x' is not defined

Hi Jens,

I just double-checked the version I sent you and I also found that version didn’t work when checking for whether the response was correct. Sorry about that! I will send you one shortly whose code should work as intended.

Thank you for spotting the typo. Also, I did try using a loop for the two additional blocks, but it would also repeat the between-block text which is something I didn’t want. Is there any way to get it to skip that?

Any reason why you start registering the response after stimulus onset instead of at stimulus onset?

Apologies, I’m not sure what you mean, are you referring to the ‘if correct’ code which decides whether to give the reward feedback?

Hello James,

ok, here I attach a PsychoPy toy-experiment that provides feedback for correct, wrong and missing responses with two block of 10 trials each. Block.xlsx (8.4 KB) Feedback.psyexp (17.6 KB) Feedback.xlsx (8.7 KB)

This worked for me. :grinning:

Ok,what did I mean by this?

No, I do not refer to the feedback but to your trial-element. I don’t have your code any longer available but I remember that you started the probe earlier than you started registering the participant’s response. Put differently, the keyboard-component had a later onset that the text-stimulus the participants have to react to.

Best wishes Jens