[open] Limiting the duration of part of the experiment
Hello. In my experiment, subjects must do a distraction task for several minutes before starting the actual task that I would like them to do. But I would like to limit the sequence of the distraction task to ten minutes, even if the subjects haven't finished the whole task yet, then the sequence of the real task will begin. I was wondering if you could tell me how I can limit the distraction task to a determined amount of minutes before the real task begins?
Comments
Hi RitaMary,
You can calculate the duration of every trial before you actually start a block and collect them in a list, until their total duration exceeds the time you want them to do the distractor task. Something like:
Next, set the number of repetitions in the
variable assistantof aloopitem to the number of trials in that list. Alternatively, you can include aninline_scriptin the beginning of yoursequencethat will break the loop as soon as the last trial was presented.Give it a try. If you get lost have a look on the documentation pages or ask again here.
Good luck,
Eduard