Information Display Matrix with Inquisit 5


Author
Message
YoungResearcher
YoungResearcher
Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)
Group: Forum Members
Posts: 3, Visits: 4
Hey 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!


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
YoungResearcher - Monday, September 11, 2017
Hey 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.

YoungResearcher
YoungResearcher
Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)Associate Member (245 reputation)
Group: Forum Members
Posts: 3, Visits: 4
Thanks a lot! Now I found my mistake and was able to fix the script.

Just another question: Is it also possible to randomize the order of columns (with three fixed tabs in each column)?
E.g.,
Column 1: tab 1, tab 2, tab 3
Column 2: tab 4, tab 5, tab 6

Best Regards!

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
YoungResearcher - Tuesday, September 12, 2017
Thanks a lot! Now I found my mistake and was able to fix the script.

Just another question: Is it also possible to randomize the order of columns (with three fixed tabs in each column)?
E.g.,
Column 1: tab 1, tab 2, tab 3
Column 2: tab 4, tab 5, tab 6

Best Regards!

Not sure I fully understand what you mean by "randomize the order of columns (with three fixed tabs in each column)", but see e.g. https://www.millisecond.com/forums/Topic22289.aspx which might be similar to what you're looking for. Hope this helps.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search