Sets the stimulus at 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 setStimulusFrame function clears the previous stimuli from the specified frame and adds the newly specified stimulus.
The following dynamically sets the first stimulus frame of a trial:
<trial myTrial>
/ onTrialEnd= [if (trial.myTrial.response == 50) trial.test.setStimulusFrame(text.condition1, 1); ]
</trial>