Howdy, Stranger!

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

Supported by

[open] Present multiple different trials within a block

edited March 2013 in OpenSesame

As a relatively unexperienced OpenSesame user, I am running into this problem while designing my experiment:

I know how to present the same item/block of trials repeatedly in a loop, but I want to present different items/block of trials mixed in one loop (in random order). Does anyone know whether this is possible and if so, how to do this?

Thanks!

Comments

  • edited 3:57PM

    Hi Martine,

    I'm not sure I understand your question. Do you want to have a single block_loop, which can run a number of different trial sequences?

    If so, you could create a number of different trial sequences, say trial_sequence1, and trial_sequence2 and insert these in turn into a "meta sequence". Then you decide using "run if" statements which of the trial sequences should actually be executed. Schematically, this would look like this (assuming that there is a variable trial_type that is used to specify which trial sequence should be executed):

    block_loop
      meta_sequence
        trial_sequence1 (run if: "[trial_type] = 1")
        trial_sequence2 (run if: "[trial_type] = 2")
    

    If this doesn't answer your question, could you please a bit more specific?

    Cheers,
    Sebastiaan

  • edited 3:57PM

    Hi Sebastiaan,

    Thanks for your comment! We indeed want to run a number of different trial sequences within one block_loop. In specific, we want to run 2 different trial_sequences in random order (each 5 times), counterbalanced between participants.

    For example, for some participants 1, 1, 2, 1, 2, 2, 2, 1, 2, 1; for other participants 2, 1, 1, 2, 1, 2, 2, 2, 1, 1; and so on...

    I am not sure whether the 'run_if' statement is appropriate for this question?

    I hope you understand my problem and that you can help!

  • edited 3:57PM

    Hi Sebastiaan,

    Although we have not found an answer to the previous question yet, we are running into another problem.

    We will try to explain our design and our problem.
    We want to present a fixation point that consists of rapidly changing letterstrings (e.g. "HJAKSNZKA"). After 6-8 seconds, we present a sound, which indicates that participants have to press the spacebar. After they have pressed the spacebar, the letterstring disappears and a picture is presented on the screen. After the presentation of this picture (approximately 2000ms), the same trial has to start again AUTOMATICALLY, beginning with the random letterstrings.
    In addition, the letterstring should ONLY disappear and be followed by a picture when the participant presses the spacebar. In other words, the letterstring should continue indefinitely until a response (spacebar) is given.

    So far, we are able to run this trial one time, however, our problem is that we are not able to let the sequence start again automatically. The strange thing is that the sound part does start over, but the letterstring does not. So now, the picture remains on the screen while the participant keeps hearing the sound every few seconds.

    We do not understand why the sound does start over, but the letterstring does not.

    Our experiment looks like this:

    image

    We hope this explains our problem clear enough for you to understand and help us out. If you need more information, please let us know.

    Many thanks in advance,
    Martine

  • edited 3:57PM

    Hi Martine,

    For example, for some participants 1, 1, 2, 1, 2, 2, 2, 1, 2, 1; for other participants 2, 1, 1, 2, 1, 2, 2, 2, 1, 1; and so on...

    Right, then I understood correctly. Perhaps you can first try my suggestion (which should do exactly this!) and if you get stuck please post what you have and we take it from there.

    So far, we are able to run this trial one time, however, our problem is that we are not able to let the sequence start again automatically. The strange thing is that the sound part does start over, but the letterstring does not. So now, the picture remains on the screen while the participant keeps hearing the sound every few seconds.

    Could you perhaps post the script for this experiment (for example to http://www.pastebin.com)?

    Cheers,
    Sebastiaan

  • edited 3:57PM

    Hi Sebastiaan,

    Thanks for your answer, we will definitely try your suggestion :-)

    This is the script for the letterstring experiment:
    http://pastebin.com/ANfxwcpQ

    I posted the complete script, we hope it makes any sense to you, since we are pretty unexperienced with using Open Sesame.

    Thanks again!

  • edited 3:57PM

    Hi Martine,

    Interesting structure! There are few things here. The first is that you use a [correct] = 1 break-if statement. This makes sense, but it does require that correct is set back to 0 before you start the trial sequence again. Otherwise the loop will break immediately on the second run, and you will never see visual stimuli on the second trial. To do this, simply add an inline_script to the top of sequence_trial with the following code in the run phase:

    exp.set('correct', 0)
    

    The second problem is that both 'parts', which run in parallel, present things on the screen and get in each others way. Doing things in parallel is awkward at the best of times, but if there is overlapping functionality things become really messy. Luckily it's not necessary in your case, because the empty_space sketchpad can simply come after the letterstring_part loop. In that case, all the display presentation stuff is handled by the letterstring_sequence, as you can see in the screenshot below.

    A structure like this works for me:

    image

    However, I'm not sure whether this situation is best dealt with using the GUI, even though it's possible. It's quite complex and requires an unwieldy structure of loops and sequences. If you intend to develop more of these types of experiments, it might be worthwhile to invest some time in learning Python. With inline scripting this situation could be dealt with much more gracefully.

    Hope this helps!

    Cheers,
    Sebastiaan

  • edited 3:57PM

    Thanks a lot Sebastiaan, this really helps us a lot! :)

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