Adds the stimulus to the specified frame of a trial.
none
| Name | Type | Description | 
|---|---|---|
| value | stimulus | The new stimulus. | 
| index | integer | The index of the frame. The first item in the list is 1. | 
The insertStimulusFrame function adds the specified stimulus to the given stimulus frame of a trial.
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>