Howdy, Stranger!

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

Supported by

Balloon analogue risk task

I am struggling to find a way to create the balloon analogue risk task in opensesame. Is it doable with just the GUI or is it needed to code everything from scratch?

This is a link with a simpler version for those who do not know this task:


  • Hi bdnf (if that is your real name :p ),
    I created a version of the BART a couple of times. If you want a copy that is a pretty straightforward version for replicating the original this might help. If I'm not mistaken it required some coding to accomplish, but thankfully nothing crazy. Unfortunately it isn't on me at the moment, but I can get it for you tomorrow.
    I also have a version designed for EEG purposes, although that one DOES have more complicated coding to account for timing and sending EEG flags. If that is what you're looking for then you'll have some extra legwork in the coding.

    Let me know which is preferable and I'll send along the files (publicly here of course so others can make use of it).

    Josh Zosky

  • That would be extremely helpful! Thank you Josh! I only need the not for EEG BART version.

  • Hey Joao,

    Here's a link to the Behavioral BART for OpenSesame. Let me know if you have any questions. Feel free to pass the experiment around if you like it.


  • Thank you very much Josh for the experiment!

    I am adapting your version, especially the practice part. I am changing the explode_round values in the Outside_Practice_loop. However, if I put for example a cycle with an explode_round of 50, when it gets to the 20th round, the trial ends as if I pressed the return key to cash in money. No matter what value I enter, if it is bigger than 20, the balloon never explodes when it is supposed to.

    What do I need to change in the inline code for this to work?


  • edited March 2017

    Ok I already figured this out. It is the number of times the Practice_sequence will be called was set to 20. Changing this does the trick.

  • Glad you could figure it out on your own! I hope that was in part due to the clear coding on my end. ;)
    This experiment was designed to perform 20 pumps max per round. Hopefully this doesn't effect the end performance for you. It is probably worth testing multiple times to make sure it works as expected.

    Let me know if you have further questions.

  • Hello,

    I also need help with this code. If I did not misunderstand, the balloon pops up randomly. How does this random popping up measure risk behaviour? Can you please explain? I may have misunderstood it. And is it enough to change var.Probability to change it to a non-random popping? Thank you. =)

  • Hi GoSugar,

    I've made a number of revisions to the original paradigm to match various other versions of the experiment.

    The original implementation and underlying discussion can be found here:

    The original paper can subsequently be found here:

    Let me know if you'd be interested in a new version that's a direct replication of the original study (or one of the many other versions I've put together).



  • I am really interested in the direct replication of the original study. It would be great and very helpful if you could send me that one. Thanks a lot. I appreciate your help. =)

Sign In or Register to comment.