Group: Forum Members
Posts: 12,
Visits: 81
|
I have a problem with the errormessage. When I type in / errormessage=true(errortext, 500) the text appears when i type in the correct response. However, when i type in / errormessage=false nothing happens when i press the incorrect key. What am I doing wrong?
<trial AntiSaccade_R_right1> / ontrialbegin = [ values.targetLocation = "right"; values.target = "R"; values.fixationDuration = list.fixationDurations.nextvalue; trial.AntiSaccade_R_right1.insertstimulustime(text.rightequation, values.fixationDuration); trial.AntiSaccade_R_right1.insertstimulustime(shape.leftflashEraser, (values.fixationDuration + values.flashDuration)); trial.AntiSaccade_R_right1.insertstimulustime(text.R_right, (values.fixationDuration + values.flashDuration)); trial.AntiSaccade_R_right1.insertstimulustime(text.HMask2_right, (values.fixationDuration + values.flashDuration + values.flashDuration)); trial.AntiSaccade_R_right1.insertstimulustime(text.rightMask, (values.fixationDuration + values.flashDuration + + values.flashDuration + values.targetDuration)); ] / stimulustimes = [0 = fixationstim] / beginresponsetime = values.fixationDuration + values.flashDuration / validresponse = (1,2,3,4) / correctresponse = (3) / responseinterrupt = immediate / ontrialend = [trial.AntiSaccade_R_right1.resetstimulusframes(); values.stim = text.R_right.currentitem; list.AntiSaccade_Accuracy.insertitem(trial.AntiSaccade_R_right1.correct, 1); if (trial.AntiSaccade_R_right1.correct) { list.AntiSaccade_correctRT.insertitem(trial.AntiSaccade_R_right1.latency, 1) };] / recorddata = true / errormessage=true(errortext, 500) / posttrialpause = values.iti </trial>
|