AAT add blocks/ trials


Author
Message
lotte
lotte
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 10, Visits: 10

Hi there, 



I want to use the AAT task from the inquisit task library, and it works perfectly on my computer, so thank you for making the task available. However, I would like to add two extra blocks with trials (2 x 80 trials). Creating the new blocks is no problem (copied-pasted them an renamed etc), but  I have some troubles with the trial sequence generator...



I need the 'trial sequence generation code' part in the script to create seperate sequences of the trials for these additional/ new blocks as well. And I cannot figure it out how... Some help on this would be very much appreciated!



Cheers, Lotte


Dave
Dave
Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)
Group: Administrators
Posts: 10K, Visits: 55K

Given that the reasoning behind the trial sequence generation and its constraints is fairly extensively documented throughout the script's comments, I'm not sure what exactly you may need help with. Please be more specific.


lotte
lotte
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 10, Visits: 10

Hi Dave, 


thanks for the reply


I generated 100 preestablished sequences by using the sequence generator in another file. 


then, I made an item list of them (see below)


The question is how I can randomly select one of these sequences and put it in the values.sequence_1, and in values.sequence_2, and values.sequence_3, as such that the AAT_start trials (three different ones) will use three different sequences. 



**********************************************************************


trial that selects the next targetstimulus category (1-8)


**********************************************************************


Debug:


<text nextstimulus>


/ items = ("<%values.nextstimulus%>")


/ position = (50%, 60%)


/ fontstyle = ("Arial", 2.33%, false, false, false, false, 5, 0)


</text>



<item trialsequence_items>


/1 = "83264736532318711667158418474632174528578434858465732443712576586851627116322352"


/2 = "23638254388748837618455465213323827424541127516185546638316776616271782471274355"


/3 = "12764528384127818627456347558215847584271614323678437563262323785347161584636511"


.....


/99 = "53267386136872323472117875442548615487564853654161883765425772451823263763814211"


/100 = "67318287352528613687362152344878418457253542341658217541477367618471866325654312"


</item>



<trial AAT_start1>


/ ontrialbegin = [values.nextstimulus = substring(values.sequence_1, values.index, 1); 


                  values.index += 1]


/ ontrialbegin = [values.repeat = 0]


/ timeout = 0


/ branch = [if (values.nextstimulus == 1) trial.AAT_1]


/ branch = [if (values.nextstimulus == 2) trial.AAT_2]


/ branch = [if (values.nextstimulus == 3) trial.AAT_3]


/ branch = [if (values.nextstimulus == 4) trial.AAT_4]


/ branch = [if (values.nextstimulus == 5) trial.AAT_5]


/ branch = [if (values.nextstimulus == 6) trial.AAT_6]


/ branch = [if (values.nextstimulus == 7) trial.AAT_7]


/ branch = [if (values.nextstimulus == 8) trial.AAT_8]


/ recorddata = false


</trial>



<trial AAT_start2>


/ ontrialbegin = [values.nextstimulus = substring(values.sequence_2, values.index, 1); 


                  values.index += 1]


/ ontrialbegin = [values.repeat = 0]


/ timeout = 0


/ branch = [if (values.nextstimulus == 1) trial.AAT_1]


/ branch = [if (values.nextstimulus == 2) trial.AAT_2]


/ branch = [if (values.nextstimulus == 3) trial.AAT_3]


/ branch = [if (values.nextstimulus == 4) trial.AAT_4]


/ branch = [if (values.nextstimulus == 5) trial.AAT_5]


/ branch = [if (values.nextstimulus == 6) trial.AAT_6]


/ branch = [if (values.nextstimulus == 7) trial.AAT_7]


/ branch = [if (values.nextstimulus == 8) trial.AAT_8]


/ recorddata = false


</trial>




<trial AAT_start3>


/ ontrialbegin = [values.nextstimulus = substring(values.sequence_3, values.index, 1); 


                  values.index += 1]


/ ontrialbegin = [values.repeat = 0]


/ timeout = 0


/ branch = [if (values.nextstimulus == 1) trial.AAT_1]


/ branch = [if (values.nextstimulus == 2) trial.AAT_2]


/ branch = [if (values.nextstimulus == 3) trial.AAT_3]


/ branch = [if (values.nextstimulus == 4) trial.AAT_4]


/ branch = [if (values.nextstimulus == 5) trial.AAT_5]


/ branch = [if (values.nextstimulus == 6) trial.AAT_6]


/ branch = [if (values.nextstimulus == 7) trial.AAT_7]


/ branch = [if (values.nextstimulus == 8) trial.AAT_8]


/ recorddata = false


</trial>


Dave
Dave
Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)
Group: Administrators
Posts: 10K, Visits: 55K

E.g. change <trial selectnumber> to


<trial selectnumber>
/ ontrialbegin = [values.sequence_1=getitem(item.trialsequence_items, list.seqnumbers.nextvalue)]
/ ontrialbegin = [values.sequence_2=getitem(item.trialsequence_items, list.seqnumbers.nextvalue)]
/ ontrialbegin = [values.sequence_3=getitem(item.trialsequence_items, list.seqnumbers.nextvalue)]
/ timeout = 0
</trial>


and add


<list seqnumbers>
/ items = (1-100)
/ selectionrate = always
</list>


lotte
lotte
Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)Expert (1.5K reputation)
Group: Forum Members
Posts: 10, Visits: 10

It works perfectly, thank you very much!


Max
Max
Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)Distinguished Member (3.3K reputation)
Group: Forum Members
Posts: 16, Visits: 118
Worked here as well with three blocks (368 + 32 + 368 items in 8 categories). Thank you Dave!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search