up Inquisit Language Reference

setStimulusTime function

Sets the stimulus at the frame of a trial corresponding to the specified time.

Member of

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

Syntax

trial.name.setStimulusTime(value, time)

Return Type

none

Parameters

Name Type Description
value stimulus The new stimulus.
time integer The time in milliseconds corresponding to the frame to get.

Remarks

The setStimulusTime function clears the previous stimuli from the frame corresponding to the specified time (ms) and adds the newly specified stimulus. Given that Inquisit maps stimulus times to the nearest vertical refresh frame, calling this function with different times may impact the same frame if those times map to the same frame.

Examples

The following dynamically adds a stimulus to be presented at 1000 ms to a trial:

<trial myTrial>
/ onTrialEnd= [if (trial.myTrial.response == 50) trial.test.setStimulusTime(text.condition1, 1000); ]
</trial>

Copyright Millisecond Software, LLC. All rights reserved.