+xHey everyone,
I´m trying to run an experiment called "Information Display Matrix" with Inquisit 5. Therefore, I started with the script for Decision Borad Analysis Task and began to edit the relevant parts. Everything works so far!
In the next step I want all tabs in the matrix to be shown in randomized order. I already got some help to edit the script, but I didn`t make it. Some tabs appear twice in the matrix, whereas others completely disappear...
Is there someone, who can help me with the relevant parts of the script?
1. declare coordinate variables for each tab
<values>
/tab1_x = 0
/tab1_y = 0
etc.
</values>
2. change the position property of each tab from fixed to variable
tab1:
/hposition = values.tab1_x
/vposition = values.tab1_y
etc.
3. create a list with all possible x-coordinates and one with the corresponding y-coordinates
Example:
<list xcoordinates>
/items = (
10%, 20%, 30%,
10%, 20%, 30%)
/replace = false
/selectionrate = always
</list>
<list ycoordinates>
/items =(
25%, 25%, 25%,
50%, 50%, 50%)
/selectionmode = list.xcoordinates.currentindex
/selectionrate = always
</list>
4. at the beginning of the script assign all tabs their positions:
values.tab1_x = list.xcoordinates.nextvalue;
values.tab1_y = list.ycoordinates.nextvalue;
etc.
--> I placed the 4th modification in the <onblockbegin> section. Could this be the mistake?
Thanks in advance!
If I understand your description correctly, you have something like this:
<values>
/tab1_x = 0
/tab1_y = 0
/tab2_x = 0
/tab2_y = 0
/tab3_x = 0
/tab3_y = 0
/tab4_x = 0
/tab4_y = 0
/tab5_x = 0
/tab5_y = 0
/tab6_x = 0
/tab6_y = 0
</values>
<list xcoordinates>
/items = (
10%, 20%, 30%,
10%, 20%, 30%)
/replace = false
/selectionrate = always
</list>
<list ycoordinates>
/items =(
25%, 25%, 25%,
50%, 50%, 50%)
/selectionmode = list.xcoordinates.currentindex
/selectionrate = always
</list>
<text tab1>
/ items = ("Tab 1")
/ hposition = values.tab1_x
/ vposition = values.tab1_y
</text>
<text tab2>
/ items = ("Tab 2")
/ hposition = values.tab2_x
/ vposition = values.tab2_y
</text>
<text tab3>
/ items = ("Tab 3")
/ hposition = values.tab3_x
/ vposition = values.tab3_y
</text>
<text tab4>
/ items = ("Tab 4")
/ hposition = values.tab4_x
/ vposition = values.tab4_y
</text>
<text tab5>
/ items = ("Tab 5")
/ hposition = values.tab5_x
/ vposition = values.tab5_y
</text>
<text tab6>
/ items = ("Tab 6")
/ hposition = values.tab6_x
/ vposition = values.tab6_y
</text>
<trial matrixtrial>
/ stimulusframes = [1=tab1,tab2,tab3,tab4,tab5,tab6]
/ validresponse = (tab1,tab2,tab3,tab4,tab5,tab6)
/ inputdevice = mouse
</trial>
<block myblock>
/ onblockbegin = [
values.tab1_x = list.xcoordinates.nextvalue;
values.tab1_y = list.ycoordinates.nextvalue;
values.tab2_x = list.xcoordinates.nextvalue;
values.tab2_y = list.ycoordinates.nextvalue;
values.tab3_x = list.xcoordinates.nextvalue;
values.tab3_y = list.ycoordinates.nextvalue;
values.tab4_x = list.xcoordinates.nextvalue;
values.tab4_y = list.ycoordinates.nextvalue;
values.tab5_x = list.xcoordinates.nextvalue;
values.tab5_y = list.ycoordinates.nextvalue;
values.tab6_x = list.xcoordinates.nextvalue;
values.tab6_y = list.ycoordinates.nextvalue;
]
/ trials = [1=matrixtrial]
</block>
There is nothing obviously wrong with that and things will work just fine.