Response logging in series of co-routines - first trial not being logged
My colleague and I ran an experiment that used a word-monitoring task that we built in Open Sesame. In the word monitoring task, participants are presented with a series of words in audio form and have to press the spacebar each time they hear a "target" word. Each trial consists of 16 sequentially presented words.
The way we went about implementing this in OS was to use a series of coroutines with a sampler, keyboard response, and logger in each so that participants can respond and have their responses collected during the presentation of the stimulus. There are a series of 16 of these coroutines in a trial. The issue we are encountering, which may not be an issue at all but may actually be something endemic to how OS works, is that the recording of a response seems to occur in the row of the logfile after the stimulus during which the person responded. Thus, the participants responses are essentially shifted down one row in the logfile.
I have attached an output logfile from one of our participants so you can see this, the first row has a response of "NA" for every participant. I've also attached our OS experiment.
Any thoughts or ideas as to why this occurs, we would totally appreciate!