PIP's IAT

Is current?: 
Yes

How to use IAT's extension for PIP

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

 

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

First, open the file iatfull.expt.xml. The important line in that file is the one that defines the IAT task (named "test" in that file). It explains how to run IAT's extension: we run a iat.js file that resides under the common folder using a jsp file from our own 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 iat.js script.

Next, open the file iatfulljsp. It includes all the settings (parameters) 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 wouldn't want to change all the settings. If you want to keep a setting in its default value, simply don't include it in the script. The exceptions to that rule are properties that are objects (canvas, attribute1, categories, attribute2). If you don't want to change anything about the canvas of the attributes, then don't 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 iatsimple.jsp. That file only sets the categories and leaves all the other settings without modifying them at all.

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

Wasn't I clear? Well, what you have to do is to copy iatsimple.jsp to your own folder. Enter the details of your own stimuli. If you have images, also change the base_url property (see iatfull.jsp to learn how). To add the IAT to your task, copy the relevant line from iatsimple.expt.xml. That's it. If you want to change anything else in the task, have a look at the full settings in iatfull.jsp or in /common/all/js/pip/piscripts/iat/iat2.js

Advanced: modify the iat.js script

You can copy the iat.js script and run it as a usual PIP script. You can change the settings at the beginning of the file, and also change anything you want in the code.

Good luck