Howdy, Stranger!

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

Supported by

[solved] Double-press issue on Mac

edited June 2014 in OpenSesame

Hi,
Our lab is running an experiment for which we are measuring reaction time after a participant's key-press to stimuli. The response is a single key-press that is supposed to trigger the next trial, but on some trials it's requiring two key-presses instead of one which interferes with our reaction time data. However, it only seems to be a problem on our Mac computer and not our PC. We run the same script on both computers, so this shouldn't be happening. We have all duration times set correctly, so we can't figure out why it does this. We have the 27.2 program on both the Mac and the PC.

Our experiment is structured so that we have a sketchpad presenting a stimulus for 300ms followed by a blank sketchpad whose duration is set to zero (this is the response window), and then a keyboard response icon with duration set to 8000. Again, the program is correctly logging RT and accuracy for most of the trials, and the error is not linked to a specific trial type. And again, the identical script works just fine on the PC. If you could help, that would be great. Thanks.

Emily

Comments

  • edited 1:00AM

    Hi Emily,

    I think this is related to a bug in the Mac OS version, in which keypresses are not flushed. Basically, your structure is as follows:

    • target sketchpad (300ms)
    • blank sketchpad (0ms)
    • keyboard_response

    This means that the keyboard_response starts collecting responses only 300 ms after the target sketchpad has been shown. All keypresses that are faster than 300 ms are therefore not recorded, and you have to press the key again, as you noticed.

    So this is actually what your experiment is supposed to do, even though you probably didn't intend it this way. On Mac OS, things go 'wrong' because the keyboard_response doesn't flush pending keypresses, and therefore also collects 'old' keypresses from before the keyboard_response was called. But the timestamps of those keypresses (and therefore your RTs) will probably be incorrect. Does this make sense?

    In your case, you could probably implement your structure as follows:

    • inline_script_reset_response
    • target sketchpad (0ms)
    • keyboard_response1 (timeout=300ms)
    • blank sketchpad (0ms)
    • keyboard_response2 (timeout=7700ms), Run if [response] = None

    The inline_script_reset_response should reset the response variable to None, with the following code in the run phase:

    exp.set('response', 'None')
    

    So this structure will first wait for a keypress for 300 ms, then blank the screen, and then wait for a keypress for another 7700 ms, if no keypress was collected yet. Does that make sense?

    Cheers!
    Sebastiaan

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