Visual Recognition Memory - Script 3.1 Demo Experiment Run Experiment

Visual Recognition Memory - Script 3.1

Jaap Murre


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 targets = ['color_cars1.png','color_cars2.png'],
    foils = ['color_cars3.png','color_cars4.png'],
    all = [],
    hits = 0, false_alarms = 0,
    i, e;

// Here we should put preloading code, see below in this chapter

instruction("Study the following images");

for (i = 0; i < targets.length; i++)
{
    setimage(targets[i]);
    await(1000);
    hideimage();
    await(1000);
}

instruction("For each of the following images, <br />"
    + "press 's' for 'seen' or 'old'<br />"
    + "or 'l' for 'unseen' or 'new'");

all = all.concat(targets,foils);    // Add all image names to array 'all'
shuffle(all);                       // Randomize image order

for (i = 0; i < all.length; i++)
{
    setimage(all[i]);
    e = awaitkey("s,l");         // 's' is 'old', 'l' is 'new'

    if (contains(targets,all[i]) && e.key === 's')
    {
         ++hits;
    }

    if (contains(foils,all[i]) && e.key === 's')
    {
        ++false_alarms;
        }

    await(1000);
}
log(hits,"hits");                      // Log data into your account
log(false_alarms,"false_alarms");

text("Thank you for participating!");  // 'debriefing'
await(3000);

You can download the files as follows: Click on the file (link) and then right-click and choose Save as... from the menu. Some media files (e.g., sound) will have a download button for this purpose.


color_cars1.png

color_cars2.png

color_cars3.png

color_cars4.png
This experiment has no YouTube links