The responseMessage attribute specifies a feedback stimulus to be shown after the subject gives the specified response on a trial.
<trial> <likert> <openended> <sliderTrial>
or
/ responseMessage = (responseValue, stimulusName, duration)Name | Type | Description |
---|---|---|
bool | boolean | True or false indicating whether to display a response message. |
responseValue | responsevalue | A valid response value for the trial. See validResponse for possible response values. |
stimulusName | stimulus | The name of a stimulus element defined elsewhere in the script. |
duration | value | An integer or property specifying duration in milliseconds for which the stimulus is displayed on the screen. A value of "0" indicates that stimulus should be displayed for the remaining duration of the trial. |
The stimulus is shown for duration milliseconds. If the duration is 0, the stimulus is presented for the duration of the posttrialPause. This attribute can be listed multiple times in a given trial to specify different feedback stimuli for different responses.
The following trial displays a positive stimulus for 1000 ms if the response is "a" and a negative stimulus for 1000 ms if the response is "b":
<trial myTrial>
/ stimulusTimes = [0=myText]
/ validResponse = ("a", "b")
/ responseMessage = ("a", positiveText, 0)
/ responseMessage = ("b", negativeText, 0)
/ posttrialPause = 1000
</trial>
The following trial displays a positive stimulus for 1000 ms if the response is values.responseLeft and a negative stimulus for 1000 ms if the response is values.responseRight:
<trial myTrial>
/ stimulusTimes = [0=myText]
/ validResponse = (values.responseLeft, values.responseRight)
/ responseMessage = (values.responseLeft, positiveText, 0)
/ responseMessage = (values.responseRight, negativeText, 0)
/ posttrialPause = 1000
</trial>