Howdy, Stranger!

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

Supported by

[solved] How to get a pause mixed in with 120 trials

edited October 2013 in OpenSesame

Hi all

I have created and successfully tested an 523*2 experiment with opensesame. This gave 60 possibilities/trials which were drawn randomly for each of 6 blocks. When testing it, it seemed appropriate to have a pause every 60 trials.
However, I would now like to add another variable into the experiment. This will give me 120 trials between each pause and I suspect, that such a duration will make everyone sore.
Is there any way to insert a pause every 60 trials in my situation?

Thanks in advance.

Comments

  • edited October 2013

    Hi,

    What I usually do is add a sketchpad called 'pause' to the sequence item that is run via your loop (let's call it 'trial_sequence'). Write some text en the sketchpad (e.g. "Break! Press any key to continue") and set it's duration to 'keypress'.

    Now, in trial_sequence, set the 'Run if' statement to [count_trial_sequence]%60 = 59. This will make the pause sketchpad run only when the remainder of the number of trial_sequence's runs divided by 60 is 59. I.e.: once every 60 trials.

    Good luck!

  • edited 6:28PM

    Hi Edwin

    That worked flawlessly. Thank you for your help and your fast reply.

    Best, Simon.

  • Hi all,

    I react to this topic in particular because I have nearly the same issue as SimonDP except that the formula doesn't seem to work for me. I have 240 trials, so I'd like my break to happen after the 120th trial. I created a sketchpad as explained and tried to change the "run if" statement on my sequence for [count_trial_sequence]%120 = 119 on the same basis as yours. What did I do wrong ?


    Thank you in advance,

    Ire

  • Hi @Irekaeru,

    Have a look at your data log and identify the variable that counts the trial number in your experiment. If your sequence is not called "trial_sequence", then "count_trial_sequence" does not exist. Having a look at your data log will help you determine a variable that does increment with every trial. Note that there multiple "count_" variables and that you could use that corresponding to the trial sequence but also to any object contained in your sequence.

    Good luck!

    Fabrice.

    Buy Me A Coffee

Sign In or Register to comment.