Howdy, Stranger!

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

Supported by

[open] Keyboard Response stops working at random

edited August 2015 in OpenSesame

Hi all,

Thanks for your time.

I am helping out with a PhD study and have had a horrendous time with the opensesame program breaking at random.

We have setup the study and tested it on several different computers with Windows 7 and 8.

70% of the time it works without issue, but 30% of the time it doesn't collect keyboard responses and then times out. Unfortunately that 30% of the time it has broken when participants are testing and we've lost 4 people (out of 16)!

We can't figure out what the issue is, hence the post here. We would really appreciate any insight into the problem and how to fix it.

Simplifying it, the protocol has two paradigms, pictures and word.

1) show 120 words or pictures
2) recall words or pictures (out of 240, 120 old stimuli shown previously, 120 new) and press z if you've remembered it or m if you haven't seen it before

In the Run phase of the python script (adapted from scripting on the forum) I have:


from openexp.keyboard import keyboard # The keypress timeout timeout = 5000 # We poll for two responses. The first 'keyboard_response_1' # waits for a 'z'. The second waits for a 'm' These # responses can be given in arbitrary order, are stored in # different variables, and can time out indendently of each # other. exp.set('keyboard_response_1', None) exp.set('keyboard_response_time_1', None) keylist_1 = ['z'] exp.set('keyboard_response_2', None) exp.set('keyboard_response_time_2', None) keylist_2 = ['m'] # Create a keyboard object that doesn't block the # experiment, so we can use it to poll for keypresses # continuously. my_keyboard = keyboard(exp, timeout=0) my_keyboard.flush() # Loop until we timeout start_time = self.time() while self.time() - timeout < start_time: key, key_time = my_keyboard.get_key() # If a key from keylist 1 is pressed, set keyboard_response_1 # and keyboard_response_time_1. Also, set key_list_1 to [], so # that we do not capture multiple keypresses from this list. if key in keylist_1: exp.set('keyboard_response_1', key) exp.set('keyboard_response_time_1', key_time - start_time) keylist_1 = [] break # The same principle is applied for keylist 2. if key in keylist_2: exp.set('keyboard_response_2', key) exp.set('keyboard_response_time_2', key_time - start_time) keylist_2 = [] break

I don't have anything in the prepare phase. But as I said I don't understand why occasionally it breaks.

Thanking you all in advance.

Comments

  • edited 6:29PM

    Hey,

    On first inspection, I can't tell for sure what could be the reason for an occasional breaking of the experiment (I have a hunch, though). Would you mind uploading the entire experiment with a subset of all images (otherwise the file be too big)? Then I can have a more careful look on it.

    Thanks,

    Eduard

    Buy Me A Coffee

  • edited 6:29PM

    Thanks so much Eduard!

    Is it possible to share this with you via email? Not allowed to post the stimuli on a public forum.

  • edited 6:29PM

    If it's only about the stimuli, you could also just replace your stimuli with some random pictures you can find now. One image per condition that you repeat a few times would be enough.

    Eduard

    Buy Me A Coffee

  • edited 6:29PM

    Done !

    It only goes through 3 pictures of dogs now. No words either.

    https://drive.google.com/file/d/0B1L-ZQ3KAhQ8QlFadHU0Zy01Q2M/view?usp=sharing

    Let me know if it works as it should

  • edited 6:29PM

    It seems that I can't reproduce the bugs. I ran the experiment 7-8 times and it went alright each time. Also your code doesn't seem to have an obvious error in it.
    However, if you believe that the problem has to be in that part, there is good news. You can replace it entirely by an keyboard_response item. Actually, I don't know why you decided to do it in an inline_script. You're doing nothing a keyboard_response item couldn't do.
    And if the problem persists afterwards, you know that you're in bigger trouble.

    Let me know, if you need help doing it.

    Good luck,

    Eduard

    Btw. Those are pretty dogs!

    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