The responsemessage attribute specifies a feedback stimulus to be shown after the subject gives the specified response on a trial.
<likert> <openended> <slidertrial> <trial>
responsevalue | A valid response value for the trial. See validresponse for possible response values. |
stimulusname | The name of a stimulus element defined elsewhere in the script. |
duration | 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>
/ stimulusframes = [1=sometext]
/ 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>
/ stimulusframes = [1=sometext]
/ validresponse = (values.responseleft, values.responseright)
/ responsemessgae = (values.responseleft, positivetext, 0)
/ responsemessgae = (values.responseright, negativetext, 0)
/ posttrialpause = 1000
</trial>