Dear all,
our student-research group is conducting an experiment in which matches of Chinesesymbols must be remembered and in the testing-phase the subject must choose thecorrect match to a presented symbol.
The testing screen consists of two parts. One the left-hand side one symbol ispresented and on the right-hand side four different symbols are displayed fromwhich the subject hast to choose one by pressing the corresponding number onthe keyboard.
Our problemis that the four symbols have to be displayed randomized and that the rightanswer has to be among those four symbols. In addition to that we need torecord, if the subject chose the right answer – but since the symbols aredisplayed randomly and the right answers are not in a fixed spot, we havedifficulties doing so.
Below you’llfind the code we are using right now.
x_1.jpg andx_2.jpg are the symbols matching each other.
Our currentidea is to translate the position of the correct answer into a number and putit in a list item, but we are not able to find a way to read out the list inthe end.
Anotheridea is to directly record the position of the correct item and then totranslate the position into the corresponding number.
<item BilderWZCue1>
/1= "1_1.jpg"
/2= "2_1.jpg"
/3= "3_1.jpg"
/4= "4_1.jpg"
/5= "5_1.jpg"
/6= "6_1.jpg"
/7= "7_1.jpg"
/8= "8_1.jpg"
/9= "9_1.jpg"
/10= "10_1.jpg"
/11= "11_1.jpg"
/12= "12_1.jpg"
/13= "13_1.jpg"
/14= "14_1.jpg"
/15= "15_1.jpg"
</item>
<item BilderWZCue2>
/1= "1_2.jpg"
/2= "2_2.jpg"
/3= "3_2.jpg"
/4= "4_2.jpg"
/5= "5_2.jpg"
/6= "6_2.jpg"
/7= "7_2.jpg"
/8= "8_2.jpg"
/9= "9_2.jpg"
/10= "10_2.jpg"
/11= "11_2.jpg"
/12= "12_2.jpg"
/13= "13_2.jpg"
/14= "14_2.jpg"
/15= "15_2.jpg"
</item>
<item BilderDis>
/1= "1_2.jpg"
/2= "2_2.jpg"
/3= "3_2.jpg"
/4= "4_2.jpg"
/5= "5_2.jpg"
/6= "6_2.jpg"
/7= "7_2.jpg"
/8= "8_2.jpg"
/9= "9_2.jpg"
/10= "10_2.jpg"
/11= "11_2.jpg"
/12= "12_2.jpg"
/13= "13_2.jpg"
/14= "14_2.jpg"
/15= "15_2.jpg"
</item>
<picture BilderWZCue1>
/items = BilderWZCue1
/select = noreplace
/size = (300, 300)
/position = (20 ,40)
</picture>
Position der Antwortmöglichkeiten: vertikale Positionen randomisiert variiert
<list randomvpos>
/items = (10%, 35%, 60%, 85%)
/selectionrate = always
</list>
<picture korrekteAntwort>
/items = BilderWZCue2
/select = picture.BilderWZCue1.currentindex
/size = (300, 300)
/vposition = list.randomvpos.nextvalue
</picture>
<counter picselector>
/select = noreplacenorepeat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
/selectionrate = always
/allowrepeats = false
</counter>
<picture Distraktor2>
/items = BilderDis
/select = picselector
/size = (300, 300)
/vposition = list.randomvpos.nextvalue
</picture>
<picture Distraktor3>
/items = BilderDis
/select = picselector
/size = (300, 300)
/vposition = list.randomvpos.nextvalue
</picture>
<picture Distraktor4>
/items = BilderDis
/select = picselector
/size = (300, 300)
/vposition = list.randomvpos.nextvalue
</picture>
<list Liste1>
</list>
<picture Cuepräsentieren>
/items = BilderWZCue1
/select = list.Liste1
/size = (300, 300)
/position = (20 ,40)
</picture>
<trial Präsentation>
/stimulustimes = [0=BilderWZCue1]
/timeout = 0
/recorddata = false
</trial>
<item Liste2>
</item>
<trial Präsentation2>
/ontrialbegin = [item.BilderDis.removeitem(picture.BilderWZCue1.currentindex)]
/ontrialbegin = [list.Liste1.appenditem(picture.BilderWZCue1.currentindex)]
/stimulustimes = [0=Cuepräsentieren, korrekteAntwort, Distraktor2, Distraktor3, Distraktor4]
/ inputdevice = keyboard
/ validresponse = ("1", "2", "3", "4")
/ontrialend = [item.BilderDis.reset()]
/ontrialend = [list.Liste1.reset()]
/ontrialbegin = [if(picture.korrekteAntwort.vposition==10%) item.Liste2.appenditem("1")]
/ontrialbegin = [if(picture.korrekteAntwort.vposition==35%) item.Liste2.appenditem("2")]
/ontrialbegin = [if(picture.korrekteAntwort.vposition==60%) item.Liste2.appenditem("3")]
/ontrialbegin = [if(picture.korrekteAntwort.vposition==85%) item.Liste2.appenditem("4")]
</trial>
<text Liste2>
/items = Liste2
/select = noreplace
</text>
<trial Positionausführen>
/ stimulustimes = [0=Liste2]
/timeout = 0
/ recorddata = true
/ontrialend = [item.Liste2.reset()]
</trial>
<block Block1>
/trials = [1-15 = Präsentation, Präsentation2, Positionausführen]
</block>
Thank you for your help - we are grateful for every input!