Sets the stimulus at the frame of a trial corresponding to the specified time.
none
Name | Type | Description |
---|---|---|
value | stimulus | The new stimulus. |
time | integer | The time in milliseconds corresponding to the frame to get. |
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.
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>