up Inquisit Language Reference

items attribute

The items attribute defines the items contained in the stimulus set.

Member of

<image> <picture> <sound> <text> <video>


/ items = itemname


/ items = ("item", "item", "item",... )


itemname The name of an item element defined elsewhere in the script.
item A quoted string representing an actual item.


Items can be defined either by specifying the name of an <item element>, or by directly by listing each item in the set.

Different types of stimulus elements use the items in difference ways. If the stimulus is a text element, items represent the actual text items to be presented. If the stimulus is a picture, sound, or video, then the items are the names of the files containing the relevant media. If the stimulus is a port element, the items are strings of 0's and 1's representing 8-bit TTL signals. Characters in an item are specified in descending bit order, with the leftmost 0 or 1 value representing the highest bit and the rightmost value representing the lowest order bit. See How to Present TTL Signals Through the Parallel Port for more details.


The following selects items defined in an external items element named "presidentitems":

<text presidents>
/ items = presidentitems

The following defines text items:

<text presidents>
/ items = ("George Washington", "John Adams", "Thomas Jefferson")

The following defines picture items:

<picture moutains>
/ items = ("rainier.bmp", "baker.jpg", "sainthelens.gif")

The following defines sound items:

<sound rock>
/ items = ("beatles.wav", "stones.wav", "thewho.wav")

The following defines video items:

<video tvshows>
/ items = ("desparatehousewives.mpg", "thedailyshow.avi", "southpark.wmv")

The following defines port items:

<port portsignal>
/ items = ("00011101", "00000000", "11111111")

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.