Howdy, Stranger!

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

Supported by

Using variables in a loop to define trial stimulus

edited February 2017 in OpenSesame

Hi, I am trying to create an experiment where a series of videos are shown in a random order. However the videos are in pairs and these pairs must always appear together. Additionally, once the order has been set, the videos need to be shown again in the same order. My sequence looks like this:

At the end of the loop there will be a conditional where if participants do not reach a particular performance then the loop is repeated (but in the same order as before).

To do this I have tried to define the order using an inline script at the beginning of the experiment. The names of the video files are identical to the videos I have in the file pool:

And then call the videos in the loop like so:

However I am getting this error:

I have no experience with Python (or with any programming language really) so I am not sure where I am going wrong or if what I am trying to do is even possible.

Comments

Sign In or Register to comment.