Error message

  • Notice: Undefined index: jspies in drupal_theme_initialize() (line 100 of /home/iat/
  • Notice: Trying to get property of non-object in _drupal_theme_initialize() (line 146 of /home/iat/
  • Notice: Trying to get property of non-object in _theme_load_registry() (line 335 of /home/iat/
  • Notice: Undefined index: jspies in theme_get_setting() (line 1440 of /home/iat/


Is current?: 

How to use the Single-Target IAT extension for PIP

Under /user/yba/pipexample/stiat are a few examples how to use PIP's ST-IAT extension on Project Implicit. 

Here is what to do in order to understand it all:

First, open the file stiatfull.expt.xml. The important line in that file is the one that defines the stiat task. It explains how to run the ST-IAT extension: we run stiat.js from the common folder using a jsp file under our study's folder. Usually, when we run a PIP script, we create the script and run it using a general jsp file under common. Here, instead of doing that, we created our own jsp file, set the task's settings to the script's global object, and then run the ep.js script.

Next, open the file stiatfull.jsp. It includes all the settings that you can use to modify the task. Read it through (and the comments) to understand what you can modify in the task. 

Usually, you won't want to change all the settings. If you want to keep a setting in its default value, simply don't include it in your jsp script. The exceptions to that rule are properties that are objects (canvas, category, attribute1, attribute2, trialsByBlock). If you don't want to change anything about the canvas or the attributes, then you can indeed not include them at all in your jsp file. However, if you want to change even one of their properties (e.g., maxWidth in the canvas), then you must also define the other properties (i.e., proportions and all other properties).

Hopefully, your jsp will look more like the file stiatsimple.jsp. That file only sets the category and leaves all the other settings without modifying them at all.

Wait, explain to me again: how do I create my own ST-IAT task?

Copy stiatsimple.jsp to your own folder. Enter the details of your own stimuli. If you have images, also change the base_url property. To add the ST-IAT to your study, copy the relevant line from stiatsimple.expt.xml. That's it. If you want to change anything else in the task, have a look at the full settings in /user/yba/pipexample/stiat/stiatfull.jsp or in /common/all/js/pip/piscripts/stiat/stiat.js

Advanced: modify the stiat.js script

You can copy the stiat.js script /common/all/js/pip/piscripts/ep/stiat.js and run it as a usual PIP script. Then you can modify the settings at the beginning of the file, and also change anything you want in the code.

Good luck