up Inquisit Language Reference

counter element

The counter element defines a sequential or randomly selected set of values used to vary experimental conditions.

Syntax

<counter countername>
/ allowrepeats = boolean
/ select = integer or selectionmode or selectionmode(pool) or dependency(stimulusname) or dependency(countername) or countername
/ items = (value, value, value,... )
/ not = (stimulusname, stimulusname, stimulusname) or (countername, countername, countername)
/ resetinterval = integer
/ selectionrate = rate
</counter>

Properties

counter.countername.currentitem
counter.countername.currentitemnumber
counter.countername.item
counter.countername.itemcount
counter.countername.name
counter.countername.selectedcount
counter.countername.selectedindex
counter.countername.selectedvalue
counter.countername.selectionmode
counter.countername.selectionrate
counter.countername.typename
counter.countername.unselectedcount

Functions

None.

Remarks

The counter element can be used to determine which stimulus items are selected from trial to trial, providing more control over item selection than is given by the stimulus element itself. Counters can also be used to specify the values from trial to trial of variable attributes (for example, the horizontal and vertical screen position of stimuli).

Examples

The following counter returns a sequence of numbers counting backwards from 5.

<counter backwards>
/ select = sequence(5, 4, 3, 2, 1)
</counter>

The following counter randomly selects values from 1 to 200 without replacement. All items are replaced after 10 blocks or after all of them have been selected.

<counter mycounter>
/ select = noreplace(1-200)
/ resetinterval = 10
</counter>

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