0 votes
2.5k views
by
Hi, I have a set of pictures and I want to present two different pictures from this set in one event. How can I do this with Roulette?

1 Answer

0 votes
by (8.7k points)
selected by
 
Best answer

I guess, you probably need to pick up randomly two pictures from the same set, so that the two pictures are always different. For this, you can use the Roulette Element in the following manner.

Add new Roulette Element and set it up to produce a random block with all picture numbers. Normally, Roulette would draw a single number from this block on each trial. What you need is to draw the whole random block and pick up any two numbers, for example, first two. After that you command Roulette to regenerate the block for the next trial.

In order to do this, set a proxy variable to Random Values Property of the added Roulette (not to Random Value, as usual!). The random values property returns an Int32 array containing the whole block of random numbers. Set a proxy variable to “ForceNewBlock” property of the same Roulette. In the trial onset snippet (e.g. “After Onset”) write the following code:

Picture1=RandomValues[0];
Picture2=RandomValues[1];
ForceNewBlock=true;

The above code would draw two different random numbers on each trial that can be used to select pictures. However, if you a need balanced randomization of two pictures in many trials, something more complicated need to be implemented.

Welcome to EventIDE Q&A forum where you can ask questions about EventIDE software and receive answers from other members of the community

Categories

FAQ questions

Installation and License


Coding


Eye-tracking


EEG Analysis


Visual Stimuli


Runtime and Data Collection


Hardware

...