up Inquisit Language Reference

sessions attribute

The sessions attribute enables running subsets of tests and procedures based on the session id paramater.

Member of

<batch> <expt>

Syntax

/ sessions = (integer, integer, integer, ... of modulus)

Parameters

integer A positive integer indicating which session numbers should run the experiment.
modulus A positive integer indicating the modulus.

Remarks

The sessions attribute allows you to run different batch or expt depending on the session number provided when the script is run. A given expt or batch will be run if the the following is true:

integer = remainder( session number / modulus )

Multiple expts and batches can be defined in the script, allowing different session numbers to be assigned to different experimental conditions. A single session number can be assigned to multiple expts, in which case all of the assigned expts will be run for that session number in the order they appear in the script.

Examples

The following expt is run for odd numbered sessions:

<expt>
/ blocks=[1-20=noreplace(testtrials, distractortrials)]
/ sessions = (1 of 2)
</expt>

The following expt is run for even numbered sessions:

<expt>
/ blocks=[1-20=noreplace(testtrials, distractortrials)]
/ sessions = (2 of 2)
</expt>

The following batch is run for session number 3 and every subsequent 3rd session number (e.g., 3, 6, 9, 12, ...):

<batch>
/ file="experiment3.iqx"
/ sessions = (1 of 4)
</batch>

The following expt is run for second of every four sessions (e.g., 2, 6, 10, 14, ...):

<expt>
/ blocks=[1-20=noreplace(testtrials, distractortrials)]
/ sessions = (1 of 4)
</expt>

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