up Inquisit Language Reference

trials attribute

The trials attribute specifies the sequence of trials to be run in the block.

Member of

<block>

Syntax

/ trials = [trialnumber, trialnumber = trialname; trialnumber-trialnumber = selectMode(trialname, trialname,...); trialnumber, trialnumber-trialnumber = trialname]

or

/ trials = [trialnumber-trialnumber = listname]

Parameters

Name Type Description
trialnumber integer A non-negative integer specifying the trial number.
selectmode selectmodeenum
ValueDescription
constantConstant selection of a single item.
currentCurrently selected item of a stimulus or counter.
nextNext selected item of a stimulus or counter.
noReplaceRandom selection without replacement.
noReplaceCorrectRandom selection without replacement if response is correct.
noReplaceErrorRandom selection without replacement if response is incorrect.
noReplaceNoRepeatRandom selection without replacement or repeating an item.
noReplaceNotRandom selection without replacement excluding the current item.
notSynonym of noreplacenot.
randomSynonym of noreplace.
replaceRandom selection with replacement.
replaceNoRepeatRandom selection with replacement and without repeating an item.
replaceNotRandom selection with replacement excluding the current item.
sequenceSequential selection in the listed order.
serialSynonym of sequence.
trialname trial The name of a trial defined elsewhere in the script to be run on this block.
listname list The name of a trial defined elsewhere in the script to be run on this block.

Remarks

The integers to the left of the equal signs represent ordinal positions within the sequence of trials. Trials can be directly assigned to a position in the sequence using the equals sign. A trial can be simultaneously assigned to multiple positions by separating the position numbers with commas (equivalent to "and") or dashes (equivalent to "through"). All trial positions in the block must be assigned to a trial or set of trials.

Examples

The first five trials of the following block are practicetrial, and the last five trials are testtrial:

<block myBlock>
/ trials=[1-5=practicetrial; 6-10=testtrial]
</block>

The following block randomly selects either lefttrial or righttrial for each of its ten trials. Both trial types are run exactly five times.

<block myBlock>
/ trials=[1-10=noreplace(lefttrial, righttrial)]
</block>

The following block selects trials one through ten from a list element named 'trialselector' containing a set of trial.

<block myBlock>
/ trials=[1-10=list.trialselector]
</block>

The following block randomly selects either testtrial or distractortrial for each of its 12 trials. The testtrial is run exactly 8 time and distractortrial is run 4 times.

<block myBlock>
/ trials=[1-12=noreplace(testtrial, testtrial, distractortrial)]
</block>

The following block runs bigtrial on even numbered trials and littletrial on odd numbered trials.

<block myBlock>
/ trials=[1,3,5,7,9 = littletrial; 2,4,6,8,10 = bigtrial]
</block>

Copyright Millisecond Software, LLC. All rights reserved.