I’d like to run a masked SPR task using 1.82.01 version (Win 10).
The overall procedure is as follows:
Instructions --> practice trials --> experimental trials
In each trials, fixation (during 2ms) will be followed by the presentation of trial sentence, comprehension question, and possible answers.
During the experiment, participants will be required to press ‘space bar’ to move on to the next step and to press the assigned buttons to answer the following question.
Since it is the first time to use Code component to run the experiment, I looked up several posts already uploaded in Coding category and found relevant one How do I get Moving window presentation in self paced reading task?
This post is almost the same as my experimetal design in that language used in the experiment is Korean and the aim of this study is to do a masked SPR task using a moving-window presentation.
Unlike this post, I used two separate Condition excel files – one for practice trials, the other for experimental trials – and each sentence consists of 7 words/segments.
So, I just manipulated some codes based on the instructions.
First, I changed the label of x.split() as sentencePrac.split() in Begin Routine because I set the variable as “sentencePrac” for practice items in Excel file.
Additionally, I input the number of segments in a sentence (i.e.,6) like this:
elif wordNumber==6: in Begin Routine
if wordNumber == 7: # the total number of words in a sentence is 7 in Each Frame
However, error messages popped up before presenting practical trials.
What’s the problem and what should I do?