up Inquisit Language Reference

insertStimulusFrame function

Adds the stimulus to the specified frame of a trial.

Member of

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

Syntax

trial.name.insertStimulusFrame(value, index)

Return Type

none

Parameters

Name Type Description
value stimulus The new stimulus.
index integer The index of the frame. The first item in the list is 1.

Remarks

The insertStimulusFrame function adds the specified stimulus to the given stimulus frame of a trial.

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.insertStimulusFrame(text.errorfeedback, 1); ]
</trial>

Copyright Millisecond Software, LLC. All rights reserved.