Corsi block tapping task
in OpenSesame
Hey there!
I'm programming the Corsi blocktapping task on OpenSesame, but when I run the file I just can get a white slide. I don't know where the squares went to. I'll appreciate your help.
Danny.
Comments
Hi @DOA,
The first issue is that you define a function ("run") that you never call at anby point in the task. I'm not sure why you chose to use such function instead of simply inserting the code to be run. So the first step would be to take th code you want to run out of this function (or else actually call that function when it is suppsed to run). It's likely there are a number of additional issues, but once you get the code out of that function and OpenSesame then actually runs it, error messages in the console will indicate to you what the further issues may be. Hopefully you can fix the issues from there.
Hope this helps,
Fabrice.
PS: incidentally, be careful with your naming of the variables. in one place you call a variable "activo" and then use "active". If you put a value in "activo" and then retrieve the content of "active", you'll get nothing, because these are two distinct variables.
Hi, @Fab
I'm begginer in this :(, and several times I didn't have idea how to solve some problems on OpenSesame. Maybe, could you help me to fix it?
I appreciated your help.
Danny.
Hi @DOA,
If you're a beginner, my advice would be to first follow the various tutorials provided in the documentation to familiarize yourself with Open Sesame and its various tools before you design your own experiment. A Corsi task can be programmed with minimal coding or, as you chose to do, with more coding (in Python, or in Javascript if you intend to run the experiment in a browser).
If you'd like to start from your version with Python code, as I mentioned, the way to go si to first either take the code out of the function you defined or to actually call it (otherwise the code will never actuall run when you execute the task). Before you start using Python code, my recommendation would be to first learn the basics about Python (otherwise it'll be very difficult to understand how to achieve what you want to achieve or to debug errors).
The alternativw way, with less coding, could be achieve using loops and sketchpads. In a Corsi task, the locations consist of a fixed set of locations. Hence you could create sketchpads containing a number of images marking the locations and then using a loop torun through the items to be presented, using information frmo that loop to specific which image should be presented in which location, thereby achieving a sequential presentation of the locations. For response collection, you could then use mouse response collection and regions of interest (there's a tutorial here: https://www.youtube.com/watch?v=21cgX_zHDiA - though done with an earlier version of Open Sesame, the principle remains the same).
The general idea would be to work with nested loops (loops within loops), with a top loop containing information about your individual trials (e.g., number of items to be presented), and then the inner loops used to actually present the items and collect the responses. That method would make it possible to create a Corsi task without the need for elaborate coding. Though I imagine that you may have your reasons to have chosen the Python route.
Hope this pointers help.
Best regards,
Fabrice.