Shared Scripts, Data, Stimuli, Files, and Demos

Stroop_Thesis Run Experiment

Stroop_Thesis

Jente

No comments yet
 




Comments

No comments yet

If you are a registered user and signed in, you can here copy this script and its stimuli to your own account, where you can edit it and change it in any way you want.

It is absolutely free to register (no credit card info asked!). You can then instantly copy this experiment with one click and edit it, change its accompanying texts, its landing page, stimuli, etc. Invite your colleagues, friends, or students to check out your experiment. There is no limit on how many people can do your experiment, even with a free account.

The catch? There is no catch! Just keep in mind that with a free account, you cannot collect data. For teaching that is usually not a problem. For research, prepaid data collection (unlimited subjects) starts as low as €10.00 for a 10-day period.

 
var colRed = new Array(10).fill('red');
var colGre = new Array(10).fill('green');
var colBlu = new Array(10).fill('blue');
var colYel = new Array(10).fill('yellow');
var color=[];
color = color.concat(colRed,colGre, colBlu, colYel);

//var words=getwords('words.txt');
//comment out the fill arrays to replace words with actual stimuli, remove the congruent checker. 
var worRed = new Array(10).fill('RED');
var worGre = new Array(10).fill('GREEN');
var worBlu = new Array(10).fill('BLUE');
var worYel = new Array(10).fill('YELLOW');
var words = [];
words = words.concat(worRed, worGre, worBlu, worYel);

shuffle(words);
shuffle(color);

instruction("Welcome to the Stroop task part of the research.");
instruction("You will be shown words on screen. Pay attention to the color of the word and press the appropriate key.");
instruction("V for red, B for green, N for blue and M for yellow. \nReady?");

main.style("body-background-color","black");
var a = main.addblock('center', 'center', 100,100,'black');

var v= main.addblock('left', 'bottom', 10,10, 'red');
var b= main.addblock(30, 'bottom', 10, 10, 'green');
var n = main.addblock(60, 'bottom', 10, 10, 'blue');
var m = main.addblock('right', 'bottom', 10, 10, 'yellow');
v.text('v').style('color','black');
b.text('b').style('color','black');
n.text('n').style('color','black');
m.text('m').style('color','black');

for (var i=0; i < words.length; ++i)
{
    log(words[i],"stWord");
    log(color[i],"stCol");
    //remove this congruent checker if using word stimuli that are not colors
    //congruent checker also needs to be changed if word and WORD are no longer the same (i.e. different language)
    if (words[i] === color[i].toUpperCase()) 
        log(1, "cong");
    else log(0, "cong");
    
    a.text(words[i]).style('color',color[i]);
    e=awaitkey('v,b,n,m', 3000);
    
    if (e.type === "timeout"){
        log(1, 'timeout');
        a.text("Try to be faster!").style('color','white');
        await(700);
        a.clear();
    }
    else {
    log(e.RT, "Reaction Time");
    log(e.key, "Key");
        if ((e.key === 'v' && color[i] === 'red') || (e.key === 'b' && color[i] === 'green') ||(e.key === 'n' && color[i] === 'blue') ||(e.key === 'm' && color[i] === 'yellow') ){
            log(1, "cor");
            a.text("Correct").style('color','white');
            await(500);
            a.clear();
        }
        else {
            log(0,"cor");
            a.text("Wrong").style('color','white');
            await(500);
            a.clear();
        }
        
    }
} 
main.removeblock(a);
main.removeblock(v);
main.removeblock(b);
main.removeblock(n);
main.removeblock(m);

text("You can now close this tab and return to the questionnaire.");
await(3000);

Data inspection is forthcoming!

In the mean time, authors may download their own data and make it available as an Excel file. Check out the 'Stimuli and Files' tab.

Click on a category to view the stimuli and files

You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.

This experiment has no images

You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.

This experiment has no images

You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.

This experiment has no images
This experiment has no video links

You can download the files shown here by clicking on the file names or image. Note that you cannot link directly to the images, sounds, videos, etc. shown here from other web pages; the link will go stale in about one hour and will no longer work after that.

This experiment has no images

Related Experiments