up Inquisit Language Reference

setStimulusFrame function

Sets the stimulus at the specified frame of a trial.

Member of

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

Syntax

trial.name.setStimulusFrame(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 setStimulusFrame function clears the previous stimuli from the specified frame and adds the newly specified stimulus.

Examples

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>

Copyright Millisecond Software, LLC. All rights reserved.