Howdy, Stranger!

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

Supported by

[solved] repeat cycle until keypress

edited April 2014 in OpenSesame

Hi guys,

We are making a change blindness experiment in OpenSesame. A picture is shown, then a gray field, followed with the picture with the change and then again a gray field. This continues until the participant notices the change. When the participant notices the change, he has to press space. The reaction time is measured in the logger. Then the cycle must stop and the participant has to tell us where the change in the picture was. The problem is that the cycle has to repeat until there is a keypress, but we don't know how to do this. Can anyone help us?

Thank you!

Comments

  • edited April 2014

    Hi,

    You could consider setting the repeat value of your change_blindness_loop very high, and using a break-if statement to break out of the loop as soon as a response has been collected.

    For example, let's assume that you have an image_sequence that consists of presenting an image (defined by the variable image) and a keyboard_response with a certain timeout (say 100 ms). The following loop will then do the trick: image1.png and image2.png will be alternately presented until the keyboard_response doesn't time out.

    image

    In addition, you will have to reset the response variable to None right before the loop. You can do this with an inline_script like this:

    # Reset the `response` variable to None
    exp.set('response', None)
    

    This may do the trick for you. Alternatively, if you need more flexibility, you could consider implementing everything with an inline_script.

    Cheers!
    Sebastiaan

  • edited 4:37AM

    Hi Sebastiaan,

    Thanks for the tips, you helped us a lot :)

  • edited 4:37AM

    Hi, we're back!

    Our experiment works! But now we have a problem with the logger (output).. We want to know how many cycles it took for the participant to see the change. We clicked 'correct' in the logger. First the output showed us a '0' or '1' for a correct response or not, only now it shows different values, such as '41', '0' or '23'. What does this mean? Is it a problem in excel or do we have to select different options in opensesame?

    Bye bye,
    Fenna

  • edited 4:37AM

    We got a tip from a friend it may had something to do with multiple keyboard response objects.. We have four keyboard responses in our experiment :ar!

  • edited 4:37AM

    Hi Fenna,

    Are you sure you're looking at the right column in the output? It kind of sounds like you're looking at the count_keyboard_response variable rather than the correct_keyboard_response.

    If this is not the case, could you post your script?

    Thanks!

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