Group: Forum Members
Posts: 10,
Visits: 87
|
Hi guys, I am modifying the Penn Emotion Recognition Task (ER-40), which presents images of faces and then has the subject choose what emotion they saw. I would like to simply add another image before each face is shown, but I am struggling on how to do this. Where in the code can I add the image? <trial emotionRecognition> / inputdevice = mouse / ontrialbegin = [ values.target = list.itemnumbers.nextindex; if (substring(item.images.item(values.target), 0, 1) == "F"){ values.gender = 1; } else { values.gender = 2; }; if (substring(item.images.item(values.target), 1, 1) == "H"){ values.emotion = 1; } else if (substring(item.images.item(values.target), 1, 1) == "S"){ values.emotion = 2; } else if (substring(item.images.item(values.target), 1, 1) == "A"){ values.emotion = 3; } else if (substring(item.images.item(values.target), 1, 1) == "F"){ values.emotion = 4; } else if (substring(item.images.item(values.target), 1, 1) == "N"){ values.emotion = 5; }; if (substring(item.images.item(values.target), 2, 1) == "X"){ values.intensity = 1; } else if (substring(item.images.item(values.target), 2, 1) == "Z"){ values.intensity = 2; } else { values.intensity = 0; }; ] / stimulusframes = [1 = target, happy, sad, anger, fear, neutral, wall, testInstructions1, testInstructions2] / validresponse = (happy, sad, anger, fear, neutral) / iscorrectresponse = [ return( (trial.emotionRecognition.response == "happy" && values.emotion == 1) || (trial.emotionRecognition.response == "sad" && values.emotion == 2) || (trial.emotionRecognition.response == "anger" && values.emotion == 3) || (trial.emotionRecognition.response == "fear" && values.emotion == 4) || (trial.emotionRecognition.response == "neutral" && values.emotion == 5)); ] / ontrialend = [ values.countCorrect += trial.emotionRecognition.correct; list.ACC.appenditem(trial.emotionRecognition.correct); if (trial.emotionRecognition.correct){ list.corrRT.appenditem(trial.emotionRecognition.latency); }; list.RT.appenditem(trial.emotionRecognition.latency); ] / posttrialpause = parameters.ITI </trial>
<trial finish> / inputdevice = mouse / ontrialbegin = [ if (parameters.showSummaryFeedback == false){ text.SummaryFeedback.skip = true; }; ] / stimulusframes = [1 = clearscreen, thankYou, SummaryFeedback, finish] / validresponse = (finish) / recorddata = false </trial>
|