up Inquisit Language Reference

insertStimulusTime function

Adds the stimulus to the frame of a trial corresponding to the specified time.

Member of

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

Syntax

trial.name.insertStimulusTime(value, time)

Return Type

none

Parameters

Name Type Description
value stimulus The new stimulus.
time integer The time in milliseconds.

Remarks

The insertStimulusTime function adds the specified stimulus to the frame of a trial corresponding to the specified time in milliseconds.

Examples

The following dynamically adds an error feedback stimulus to the trial if performance dips below 50%:

<trial myTrial>
/ onTrialEnd= [if (this.percentCorrect <= 50) trial.test.insertStimulusTime(text.errorfeedback, 0); ]
</trial>

Copyright Millisecond Software, LLC. All rights reserved.