Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

'Response' and 'Correct' in log file

Hello

I am creating a continuous performance task with Open Sesame, but it seems that the responses are not being registered correctly. During the task the participants will see or hear the numbers 1 or 2 and they have to press the left mouse button when they see or hear the number 1 and do nothing when they see or hear the number 2. I used coroutines so that the participants can see or hear the stimulus for a certain amount of time and they can click as soon as they see or hear the stimulus. The experiment seems to be working as I want, but when I open the log file I see that it is not registering my responses as it should. For the first trial of each block the 'correct' is always undefined and in the 'response' column it always says I clicked the button even though I didn't. For all the other trials it seems to record my answer from the previous trial. In the picture below you can see the 'response column' and it says I didn't click the button for trials 2 and 3 when I actually clicked for trials 3 and 4 (and not for trials 1 and 2). I cannot find what exactly causes this problem. Did I do something wrong?

(I have included the experiment to make it more clear what exactly the task is)

Thank you!



Comments

  • Hi @DVdB ,

    The experiment is quite complex so it's difficult to see in one glance how everything works. But one thing that is certainly related to these issues is that you've inserted the logger item into the coroutines with a start time of 0. This means that logging will happen before the response has been collected, in turn resulting the logger always reflecting the previous trial. Do you see what I mean?

    To solve this, simply carry the logger out of the coroutines so that it is executed at the end of each trial.

    More generally, your experiment contains lots of duplicate items, which makes it big and hard to debug. I would take a moment to think about how to simplify the structure!

    Hope this helps!

    — Sebastiaan

  • Hi Sebastiaan

    Thank you for the response! I tried to carry the logger out of the coroutines, but than it only logs the last trial of the loop. I also simplified the structure, but I still don't know what's wrong with the logger (if the problem is the logger). Because it seems that it even does not register my mouse-responses correctly. Is there something else I can try to fix my problem?

    Thank you!

  • Hi @DVdB,

    Adding to what @sebastiaan recommended, you should move the logger out of the co-coutinres object but withing the same sequence as that the co-routine object is part of (otherwise, it odes indeed only log the last trial because your logger is actually only executed after the loop finishes). I noticed that you're not defining the events in a trial within a sequence. You should use one, and then place the co-routines and the logger on the same level within that sequence:

    I tried it out on a stripped down version of your task:

    As far as I can tell, it registers responses to all trials.

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

  • Thank you, it's working!

Sign In or Register to comment.