Howdy, Stranger!

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

Supported by

[open] want my target item to be disappeared after 500 ms, I also want a 2000 ms timeout

edited November 2015 in OpenSesame

Hi everyone,

I have been working with OpenSesame for the last 3 or 4 weeks, and I'm totally new to this, and unfortunately I know nothing of programming or any kind of code writing. My experiment is a prime-target lexical choice decision. That is I have a prime item (a string of letters) for about 60 ms which becomes masked and then the target item appears on the screen and my participants needs to decide whether that target item is a word or a non-word by pressing either m or z. My question is that; I want my target item be on the screen for 500 ms and then DISAPPEAR but I also want to have a timeout on the keyboard responses, for 2000 ms, which I find no way of doing it!

I tried having a blank sketchpad after the target sketchpad so that I make the target item disappear. But my concern is that, I want the measurement of reaction time start as soon as the target item appears on the screen, soo how does the software know when to start measuring the reaction time if I have other sketchpads in between the target one and the keyboard response?

Comments

  • edited 11:38PM

    Hi, and welcome to OpenSesame.

    One way of doing this would be to set the duration of your target sketchpad to 0ms, with the keyboard_response item following immediately after that. The timeout of the keyboard_response item should be set to 500. After that, you place your empty sketchpad, with again its duration set to 0ms. As you want participants to have a maximum of 2000ms to respond, you would finish up with another keyboard_response item with timeout set to 1500ms. One tricky bit though: you don't want this last item to be used if participants responded during the first keyboard_response item, right?

    To make this work, click on the sequence item that the sketchpads and keyboard_responses are placed in. You'll see that its items have always as a run-if statement. As you may have surmised by now, we need to change the run-if statement of the second keyboard item. It should be run only if the response at that time is still 'None'. Double-click 'always' and change it into [response]=None.

    Does this help?

    Cheers,

    Josh

  • edited November 2015

    Hi Josh,

    Thank you so much for your time.

    Yes, it does work very well. I still have one concern. Does the reaction time measurement start when the target item appears on the screen or when it disappears from the screen? I myself tried the experiment and it seems that it starts after the item disappears from the screen, and this is not what I want. As I tried responding after the word disappears and it shows a reaction time less than 500 ms, which I believe should be more than 500 ms (having in mind that, the target item is there for 500 ms and then it disappears and the participant have another 2000 ms to respond before getting to the next cycle).

    Best,

    Sarvenaz

  • edited 11:38PM

    Hi Sarvenaz,

    Reaction times are recorded from the moment on a keyboard_response gets activated. That said, using two of these items in succession won't work, because the two keyboards will have two different starting points. This is also the reason why your reaction times are so quick. To fix that, you can either move the entire procedure into an inline_script and use a while loop to do it, or you adapt the reaction times post-hoc. To do that, you simply put an inline_script after the second keyboard_response and before the logger and add the duration of the sketchpad to current reaction_times, if the second keyboard_response was run.
    So, if you name the second keyboard kb2, something like this will do:


    if var.time_kb2 > 0: var.response_time += 500

    Can you try whether this solves the issue for you? You might have to adjust the variable names. I am not sure whether I used to correct ones. But if you check your logfile, you should be able to find them.

    Good luck,

    Eduard

    Buy Me A Coffee

  • edited 11:38PM

    Hi Eduard,

    Thank you for your time.

    But unfortunately it's not working. I get error messages regarding the inline_script. I'm not sure whether I'm doing it right or not. I'm really puzzled here. I did everything as you told me to. But still not working.

    Sarvenaz

  • edited 11:38PM

    Hi Sarvenaz,

    What kind of error message are you getting? Can you post it here? (It usually doesn't work the first time, but a little bit of tweaking here and there, will solve it)

    Eduard

    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