Howdy, Stranger!

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

Supported by

[open] how to limit allowed response to 'down' key in a sequence of sketchpads?

edited April 2013 in OpenSesame

Hi again!

We have another question for our experiment. In a sequence of 20 sketchpads on which participants have to react as quickly as possible we want to limit the allowed response to the 'down' (arrow key).

In short:
present sketchpad#1 >
participant responds by pressing 'down' key >
present sketchpad#2 >
participant responds by pressing 'down' key >
present sketchpad#3 >
participant responds by pressing 'down' key >
etc.

We have tried this by including 20 keyboard_response items after each sketchpad, however, this solution slowed down the presentation of the sketchpads too much. This is a problem in our design, because we want to measure the responsetimes on all sketchpads for all participants; we want to measure how quickly participants get to the next sketchpad (this is an outcome variable).

We have also tried to implement an inline_code before the sketchpad sequence:

from openexp.keyboard import keyboard

my_keyboard = keyboard(exp)

my_keyboard.set_keylist( ['down'] )

and:

from openexp.keyboard import keyboard

my_keyboard = keyboard(exp, keylist=['down'])

but these options didn't seem to work

We wonder whether it is possible to limit the allowed response inside of the script of each sketchpad or by adding another inline_script at the start of the sketchpad sequence?

We hope someone can provide us with the solution :)
Many thanks in advance!

Comments

  • edited 6:07PM

    Hi Martine,

    I'm not completely sure whether I understand your question correctly. But herewith already a few comments.

    We have tried this by including 20 keyboard_response items after each sketchpad.

    This doesn't mean that after every sketchpad, participants have to press the down key 20 times, does it? By looking at your trial sequence I assume that they press once after every stimulus.

    This solution slowed down the presentation of the sketchpads too much.

    OpenSesame's prepare-run strategy makes sure sequences are prepared in advance: All sketchpads are constructed at the start of a sequence, such that they can be used with minimal delay during the execution of the sequence.
    In other words, the delay caused by the preparation time will normally occur prior to the start of your sequence, and not from sketchpad to sketchpad during your sequence.

    Therefore, I think a trial sequence like you described should work fine:

    • sketchpad1 (with 'Duration' set to 0)
    • keyboard_response item (with 'Allowed responses' set to 'down')
    • sketchpad2, etc.

    Additionally, you could try to use the Legacy back-end for your experiment, because this one is fastest in preparing the sketchpad items.

    If in your experience this still slows down the presentation of the sketchpads too much, could you perhaps indicate in a little more detail what you mean exactly by that?

    We have also tried to implement an inline_code before the sketchpad sequence, but these options didn't seem to work.

    I think the problem is that you're not getting any keyboard input yet. Adding the get_key() function to your inline code should solve this:

    # Import module:
    from openexp.keyboard import keyboard
    
    # Create keyboard item:
    my_keyboard = keyboard(exp, keylist=['down'])
    
    # Pull keyboard input:
    my_keyboard.get_key()
    

    Note, however, that this way of pulling a keyboard response is not really faster than using a keyboard_response item in the GUI.

    Do those comments help a little bit? Feel free to post again, perhaps with a little bit more detail about your experiment (e.g. a screenshot of your overview area, or the code of your experiment).

    Best,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 6:07PM

    Thanks for the quick response!

    I will explain what we want to achieve in our experiment. Participants are presented with a picture of a hallway. At the end of this hallway, there is an object. Everytime the 'down' arrow key is pressed by the participant, this object increases in size (so that it appear that the object is coming towards the participant). After 20 presses, the object is now very close to the participant and the next trial starts. The rationale behind this is that the faster participants bring the object towards them, the more they 'want' the object.

    In our experiment, we present 20 sketchpad items in a sequence. Everytime the participant presses the 'down' key, the next sketchpad in the sequence should be presented on the screen. However, we want to limit the response that participants can give the the 'down' key only. When they press any other key, nothing should happen.

    We tried what you suggested with adding a keyboard_response (allowed response set to 'down') after every sketchpad item. However, there appears to be a noticable amount of lag between each sketchpad. It is very important that the transition between the sketchpads should be very fluent because the response time between presses is our outcome measure.

    Below is a screenshot of the sketchpad sequence:

    image

    Thanks again for helping!
    Martine

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