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")
/ responsemessgae = ("a", positivetext, 0)
/ responsemessgae = ("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)
/ responsemessgae = (values.responseleft, positivetext, 0)
/ responsemessgae = (values.responseright, negativetext, 0)
/ posttrialPause = 1000
</trial>