Howdy, Stranger!

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

Supported by

Coroutines

I am trying to get a psychological refractory period experiment to work. A green circle is presented followed by a red circle. The soa between these varies from short (100ms) to long (500ms)... Paticapnts are required to respond to the green cricle then red circle as quickly as possible.

I have used a coroutine as with short soa, the green circle would end before the red circle was presented.

This is how I have set it up. I have a couple of problems. Responses someitme not logged for either stimulus. Also, the coroutine does not always end when response2 is initiated.

Any help would be appreicated.


Many thanks


Deiniol

Comments

  • Hi,

    I am not sure, but I don't think you can have two response items open simultaneously, which might cause the problems. Also, if you specify the end time as 2000 it will stop after 2 seconds, not after 2 seconds and the SOA. So maybe change it to [SOA] + 2000.

    However, if you describe your experiment in a little more detail I might be able to help you out a bit better and provide a solution that works, that is, if you still need help.


    Good luck,

    Eduard

    Buy Me A Coffee

  • Hi @eduard


    Thanks for you'r reply. This is a workshop I run with undergraduates and I ran the experiemnt with the imperfections but I I am now revisiting.

    The experiemnt presents a green circle then a red circle. The time difference between the onset of the green and red circle varies (SOA, 100ms, 200ms and 400ms). The idea is to respond to the green cricle then red circle as quicikly as possible. RT to the red circle is often longer than RT to the Green circle espceially with a shorter SOA (PRP effect)


    Responses to both stimuli need to happen in parallel so I have used a coroutine. I extended the end time to 3000ms.



    However, on some trials, the trial does not end with response 2 and on some trials, response 1 is not registered. Do coroutines not cope with mutliple response items?


    Best wishes and thanks for any help you might be able to offer.


    Deiniol



  • Yay!!!!! I found a solution at this thread below using an inline script coroutines generator, suggested by Sebastiaan, that aborts the coroutine after both responses have given a value.


    https://forum.cogsci.nl/discussion/5709/multiple-responses-and-tone-during-coroutine

  • Good to hear! Thanks for sharing.

    Buy Me A Coffee

Sign In or Register to comment.