New User - unexpected error
Hello! I am still very new to opensesame and have very little programming experience, so I have encountered an issue to which I can't seem to find a solution by myself.
I am planning to conduct an experiment where participants are instructed to select the lager/smaller number of a presented pair by clicking on the correct answer and I want to use mouse-tracking to observe the path of the participants' responses using the mousetrap plug-in.
The structure of my experiment is very similar to the example_experiment for the mousetrap function, so I used it as a guide on how to incorporate the mousetrap response in the script but I always get an Unexpected Error I can't make sense of.
From what I gathered, a KeyError means that the program is not able to access the items (number pairs)? I have no idea how to fix this though, as the experiment runs perfectly and smoothly when i use the keyboard response option for example - no errors and correct presentation of my items.
Any idea what I can do differently/have to change to make it work?
Thanks in advance :D
Comments
Hi there,
the issue is likely caused by the following: If you use the standard mousetrap_response example experiment, variable names are used to specify the buttons in the mousetrap_response item (which is called get_response): Under Button 1, you see [CategoryLeft] and under Button 2, you see [CategoryRight]. These variables are defined in the stimuli loop. And they are also assigned as names to the rectangles in the present_stimulus sketchpad. If you have changed / not defined these variable names, this might cause the error you mentioned.
Best regards,
Pascal