Howdy, Stranger!

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

Supported by

[open] consecutive correct responses detection

edited March 2013 in OpenSesame

Hello

My experiment displays pictures and for each picture it expects key response, one is correct and the other is wrong ("A" or "L"). After 10 consecutive correct responses the loop should break and display success and additional text display. The dependent variable is the number of trials until the full completion of the assignment (including the 10 consecutive correct responses).
I also need to add to the logger the log of the number of total trials until the full completion of the assignment (i.e. 10 consecutive correct responses).

The total number of the pictures is 48. If participant does not learn the stopping rule after the first loop of 48 images, then another loop should start until the completion of the learning rule or to the end of the second loop. Then display failure and additional text display.
I would be very thankful if you can help with this problem?

Shira kremer Sharon

Comments

  • edited 3:59AM

    Hi Shira,

    My experiment displays pictures and for each picture it expects key response, one is correct and the other is wrong ("A" or "L"). After 10 consecutive correct responses the loop should break and display success and additional text display. The dependent variable is the number of trials until the full completion of the assignment (including the 10 consecutive correct responses). I also need to add to the logger the log of the number of total trials until the full completion of the assignment (i.e. 10 consecutive correct responses).

    You can use a 'Break if' statement in your block_loop (under 'Show advanced options'). Let's assume that you have tracked the number of consecutive correct responses as correct_in_a_row, then the following 'Break if' statement should do the trick:

    [correct_in_a_row] >= 10

    Then, of course, you need to keep track of the number of correct responses. Before your block_loop, set it to 0 with an inline_script, so that it has an initial value (otherwise OpenSesame will complain about not knowing the variable):

    exp.set('correct_in_a_row', 0)
    

    In the trial_sequence, after your response item, increment correct_in_a_row by 1 after a correct response, and reset it to 0 after an incorrect response. You can do this with the following inline_script:

    if self.get('correct') == 1:
        exp.set('correct_in_a_row', self.get('correct_in_a_row')+1)
    else:
        exp.set('correct_in_a_row', 0)
    

    The total number of the pictures is 48. If participant does not learn the stopping rule after the first loop of 48 images, then another loop should start until the completion of the learning rule or to the end of the second loop.

    You can use the same principle one level up: Use the same break-if statement in your experimental_loop, to keep running blocks until correct_in_a_row is 10. Set the cycles of the experimental_loop to a value that corresponds to the maximum number of attempts that the participant has.

    In general, using 'Break if' and 'Run if' statements, you can add considerable flexibility to the structure of your experiment. Hopefully my post will get you started, and after playing around with your experiment for a bit you will get a better feeling of how this works.

    Cheers!
    Sebastiaan

  • edited March 2013

    Hi.

    Thank you for your help. Now it is working just fine.

    What I need to know now is:

    1. How to ask from the logger to keep track of the total number of trials for each participant (total sum of all trials until the learning of the stopping rule). Means that in the Excel file' each row will show the total number of steps for each subject separately

    2. How to add questionnaires at the end of the experiment, at the end_text_display

    Again, thank you for your help
    shira

  • edited 3:59AM

    How to ask from the logger to keep track of the total number of trials for each participant (total sum of all trials until the learning of the stopping rule). Means that in the Excel file' each row will show the total number of steps for each subject separately

    If you add a logger item to the end of your trial sequence, your data file will contain a row for every trial. This should contain all the information that you need.

    How to add questionnaires at the end of the experiment, at the end_text_display

    The best way to implement questionnaires is using forms, as described here:

    Good luck!

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