OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 3
Standard Standalone? (y/n) y
What are you trying to achieve?: In my experiment, participants are supposed to learn new words. After a training phase I want to check how well they’ve learned the new words. For this I want to present the new word in the middle of the screen and let them choose one of two definitions shown on the bottom right or left on the screen (randomized where the correct and the distractor definition are presented). I wanted to give feedback on whether their response was correct.
What did you try to make it work?: I used a code component in the beginning of the feedback routine.
if key_resp.corr:
msg=“Richtig!”
else:
msg=“Leider falsch!”
In the routine were the response is given I put
msg = " "
in the begin routine code component so that it will refresh each trial.
What specifically went wrong when you tried that?: Feedback is shown after the choice is made, however in my excel data file key_resp_corr is always 0, even if the answer was correct. No error message occured. It might be a problem that the correct answer is a whole sentence and not a word. In the key_resp component I put the parameter $definition in the field for correctAns. This parameter is also used to display the definition. I cannot say right or left would be the correct answer as the correct definition’s location is randomized.
I hope this is understandable and gives enough information. I really hope someone can help me.
I already had a question concerning this set up regarding the randomization of the distractor definition, here: Participant choosing one of two choices fitting to a target - Builder - PsychoPy
Thank you!