Millisecond Forums

"/iscorrectresponse" not working please HELP

https://forums.millisecond.com/Topic13845.aspx

By Sandra589 - 7/24/2014

Problem:

I have created an audio and visual (non-audio) version ofone experiment. The problem concerns my “example trial” phase. During thisphase, participants are given feedback on whether they answered the itemcorrectly or incorrectly. Inquisit is processing this phase correctly for theVISUAL version such that correct feedback is provided (e.g., ‘correct’ forcorrect responses and ‘error’ for incorrect responses). However, for the AUDIOversion, Inquisit is providing ‘error’ (or incorrect) feedback to participantsregardless of whether they answered correctly or incorrectly.

Both Syntax are identical with the exception of sound syntaxfor the AUDIO version, and attached for your reference. I’m pretty sure thisproblem is due to my syntax being incorrectly written.


Please help and thanksheaps!
Sandra


By Dave - 7/24/2014

<trial examples>
/ stimulusframes = [1=examplestrials, true, false]
/ validresponse = (true, false)
/ correctmessage = (correct, 500)
/ errormessage = (error, 500)
/ iscorrectresponse = [trial.examples.response == getitem(item.exampleanswers, text.examples.selectedindex)]
</trial>

You determine the correct response based on the selected item for <text examples>. However, you do *not* actually display that <text> element in the <trial> (cf. the /stimulusframes attribute). Hence no selection ever occurs for that element and its selectedindex is useless.

You'll want to do

<trial examples>
/ stimulusframes = [1=examplestrials, true, false]
/ validresponse = (true, false)
/ correctmessage = (correct, 500)
/ errormessage = (error, 500)
/ iscorrectresponse = [trial.examples.response == getitem(item.exampleanswers, sound.examplestrials.selectedindex)]
</trial