up Inquisit Language Reference

stimulusTime function

Returns the first stimulus presented on the frame corresponding to the specified time.

Member of

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

Syntax

trial.name.stimulusTime(time)

Return Type

stimulus

Parameters

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

Remarks

The stimulusTime function returns the first stimulus, if any, presented on the frame of the trial corresponding to the specified time. Given that Inquisit presents stimuli at the beginning of the vertical refresh frame nearest the specified time, it is possible that calling this function with two different times can return the same stimulus if those times map to the same frame.

Examples

The following displays the name of the stimulus presented at 100 ms:

<text myText>
/ items= ("current category = <% trial.myTrial.stimulusTime(100) %>")
</text>

The following displays the name of the stimulus presented at 1000 ms:

<page myPage>
current category  = <% trial.myTrial.stimulusTime(1000) %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.