up Inquisit Language Reference

stimulusTimes attribute

The stimulusTimes attribute specifies the stimulus presentation sequence for a trial in terms of time in milliseconds.

Member of

<trial> <likert> <openended> <sliderTrial> <surveyPage>

Syntax

/ stimulusTimes = [time = stimulusname, stimulusname, ...; time = stimulusname, ...]

or

/ stimulusTimes = [time = listname]

or

/ stimulusTimes = [time = selectMode(stimulusname, stimulusname, stimulusname, ...)]

Parameters

Name Type Description
time integer A non-negative integer specifying the time in milliseconds relative to the beginning of the sequence.
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.
stimulusname stimulus The name of a stimulus defined elsewhere in the script to be presented on the specified frame.
listname list The name of a list that selects the stimulus to be presented on the specified frame.

Remarks

Given that digital monitors repaint the screen with a finite frequency (typically every 10 to 16.7 milliseconds), stimuli can only be physically presented on the display at the particular time the frame is repainted. Inquisit therefore rounds each specified time value to the nearest retrace frame boundary. For example, on a 60 hz monitor, a stimulus time of 3 would be rounded down to 0, a stimulusTime of 10 ms would be rounded up to 16.7 ms, and 36 ms would be rounded down to 33.3 ms in order to coordinate the times with the onset of the frame. Multiple stimuli can be assigned to a single time, in which case all of those stimuli are displayed simultaneouly at the given time.

Alternatively, stimulus presentation can be defined in terms of vertical retrace frames using stimulusframes.

Examples

The following trial presents a forward and backward masked prime for 10 milliseconds, and then presents a target stimulus that remains on the screen until the subject responds. Both masks are presented for 20 milliseconds.

<trial myTrial>
/stimulusTimes=[0=forwardmask; 20=prime; 30=backwardmask; 50=target]
/ validResponse=("a", "b")
/ correctResponse=("a")
</trial>

The following trial presents a forward and backward masked prime for 10 milliseconds, and then presents a target stimulus that remains on the screen until the subject responds. The particular forward and backward mask used on each trial are selected from list elements named forwardmaskselector and backwardmaskselector respectively:

<trial myTrial>
/stimulusTimes=[0=list.forwardmaskselector; 20=prime; 30=list.backwardmaskselector; 40=target]
/ validResponse=("a", "b")
/ correctResponse=("a")
</trial>

The following trial presents a focusstimulus for 500 milliseconds, then presents a two stimuli simultaneously on the left and right of the screen:

<trial myTrial>
/stimulusTimes=[0=focusstimulus; 500=lefttarget,righttarget]
/ validResponse=("a", "b")
/ correctResponse=("a")
</trial>

Copyright Millisecond Software, LLC. All rights reserved.