I’m trying to conduct the stroop test and I want to include a buzz whenever the participant makes a mistake. I went through YouTube videos and some of the posts about the same topic and I tried to mimic the procedure. However, whenever the experiment starts and when it’s supposed to give a noise it crashes.
I’m attaching snippets from the experiment, the code and the error that I got. Just as a note in the code you’ll find the “a” variable, it’s just a dummy variable to fill in the if statement.
Your help is much appreciated.
Thank you in advance.