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.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games