How to chose two different pictures in one event

0 votes
22 views
asked Apr 26, 2016 by Olga
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
answered Apr 26, 2016 by Maria Molodova (8,320 points)
selected May 2, 2016 by qandaadmin
 
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

FAQ questions

Installation and License


Coding


Eye-tracking


EEG Analysis


Visual Stimuli


Runtime and Data Collection


Hardware

...