﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » AAT add blocks/ trials</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 30 Apr 2026 14:34:30 GMT</lastBuildDate><ttl>20</ttl><item><title>AAT add blocks/ trials</title><link>https://forums.millisecond.com/Topic11145.aspx</link><description>&lt;p&gt;Hi there,&amp;nbsp;&lt;/p&gt;

&lt;p&gt;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 &amp;nbsp;I have some troubles with the trial sequence generator...&lt;/p&gt;

&lt;p&gt;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!&lt;/p&gt;

&lt;p&gt;Cheers, Lotte&lt;/p&gt;</description><pubDate>Fri, 06 Jun 2014 05:30:35 GMT</pubDate><dc:creator>lotte</dc:creator></item><item><title>RE: AAT add blocks/ trials</title><link>https://forums.millisecond.com/Topic13486.aspx</link><description>Worked here as well with three blocks (368 + 32 + 368 items in 8 categories). Thank you Dave!&lt;br/&gt;</description><pubDate>Fri, 06 Jun 2014 05:30:35 GMT</pubDate><dc:creator>Max</dc:creator></item><item><title>RE: AAT add blocks/ trials</title><link>https://forums.millisecond.com/Topic11277.aspx</link><description>&lt;p&gt;It works perfectly, thank you very much!&lt;/p&gt;</description><pubDate>Thu, 19 Sep 2013 00:47:44 GMT</pubDate><dc:creator>lotte</dc:creator></item><item><title>RE: AAT add blocks/ trials</title><link>https://forums.millisecond.com/Topic11266.aspx</link><description>&lt;p&gt;E.g. change &amp;lt;trial selectnumber&amp;gt; to&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;trial selectnumber&amp;gt;&lt;br /&gt;/ ontrialbegin = [values.sequence_1=getitem(item.trialsequence_items, list.seqnumbers.nextvalue)]&lt;br /&gt;/ ontrialbegin = [values.sequence_2=getitem(item.trialsequence_items, list.seqnumbers.nextvalue)]&lt;br /&gt;/ ontrialbegin = [values.sequence_3=getitem(item.trialsequence_items, list.seqnumbers.nextvalue)]&lt;br /&gt;/ timeout = 0&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and add&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;list seqnumbers&amp;gt;&lt;br /&gt;/ items = (1-100)&lt;br /&gt;/ selectionrate = always&lt;br /&gt;&amp;lt;/list&amp;gt;&lt;/span&gt;&lt;/p&gt;</description><pubDate>Wed, 18 Sep 2013 04:03:31 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: AAT add blocks/ trials</title><link>https://forums.millisecond.com/Topic11264.aspx</link><description>&lt;p&gt;Hi Dave,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for the reply&lt;/p&gt;
&lt;p&gt;I generated 100 preestablished sequences by using the sequence generator in another file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;then, I made an item list of them (see below)&lt;/p&gt;
&lt;p&gt;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.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;**********************************************************************&lt;/p&gt;
&lt;p&gt;trial that selects the next targetstimulus category (1-8)&lt;/p&gt;
&lt;p&gt;**********************************************************************&lt;/p&gt;
&lt;p&gt;Debug:&lt;/p&gt;
&lt;p&gt;&amp;lt;text nextstimulus&amp;gt;&lt;/p&gt;
&lt;p&gt;/ items = ("&amp;lt;%values.nextstimulus%&amp;gt;")&lt;/p&gt;
&lt;p&gt;/ position = (50%, 60%)&lt;/p&gt;
&lt;p&gt;/ fontstyle = ("Arial", 2.33%, false, false, false, false, 5, 0)&lt;/p&gt;
&lt;p&gt;&amp;lt;/text&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;item trialsequence_items&amp;gt;&lt;/p&gt;
&lt;p&gt;/1 = "83264736532318711667158418474632174528578434858465732443712576586851627116322352"&lt;/p&gt;
&lt;p&gt;/2 = "23638254388748837618455465213323827424541127516185546638316776616271782471274355"&lt;/p&gt;
&lt;p&gt;/3 = "12764528384127818627456347558215847584271614323678437563262323785347161584636511"&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;/99 = "53267386136872323472117875442548615487564853654161883765425772451823263763814211"&lt;/p&gt;
&lt;p&gt;/100 = "67318287352528613687362152344878418457253542341658217541477367618471866325654312"&lt;/p&gt;
&lt;p&gt;&amp;lt;/item&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;trial AAT_start1&amp;gt;&lt;/p&gt;
&lt;p&gt;/ ontrialbegin = [values.nextstimulus = substring(values.sequence_1, values.index, 1);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;						&lt;/span&gt;values.index += 1]&lt;/p&gt;
&lt;p&gt;/ ontrialbegin = [values.repeat = 0]&lt;/p&gt;
&lt;p&gt;/ timeout = 0&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 1) trial.AAT_1]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 2) trial.AAT_2]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 3) trial.AAT_3]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 4) trial.AAT_4]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 5) trial.AAT_5]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 6) trial.AAT_6]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 7) trial.AAT_7]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 8) trial.AAT_8]&lt;/p&gt;
&lt;p&gt;/ recorddata = false&lt;/p&gt;
&lt;p&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;trial AAT_start2&amp;gt;&lt;/p&gt;
&lt;p&gt;/ ontrialbegin = [values.nextstimulus = substring(values.sequence_2, values.index, 1);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;						&lt;/span&gt;values.index += 1]&lt;/p&gt;
&lt;p&gt;/ ontrialbegin = [values.repeat = 0]&lt;/p&gt;
&lt;p&gt;/ timeout = 0&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 1) trial.AAT_1]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 2) trial.AAT_2]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 3) trial.AAT_3]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 4) trial.AAT_4]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 5) trial.AAT_5]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 6) trial.AAT_6]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/ branch = [if (values.nextstimulus == 7) trial.AAT_7]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/ branch = [if (values.nextstimulus == 8) trial.AAT_8]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;/ recorddata = false&lt;/p&gt;
&lt;p&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;


&lt;p&gt;&amp;lt;trial AAT_start3&amp;gt;&lt;/p&gt;
&lt;p&gt;/ ontrialbegin = [values.nextstimulus = substring(values.sequence_3, values.index, 1);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;						&lt;/span&gt;values.index += 1]&lt;/p&gt;
&lt;p&gt;/ ontrialbegin = [values.repeat = 0]&lt;/p&gt;
&lt;p&gt;/ timeout = 0&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 1) trial.AAT_1]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 2) trial.AAT_2]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 3) trial.AAT_3]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 4) trial.AAT_4]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 5) trial.AAT_5]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 6) trial.AAT_6]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 7) trial.AAT_7]&lt;/p&gt;
&lt;p&gt;/ branch = [if (values.nextstimulus == 8) trial.AAT_8]&lt;/p&gt;
&lt;p&gt;/ recorddata = false&lt;/p&gt;
&lt;p&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;</description><pubDate>Wed, 18 Sep 2013 02:19:33 GMT</pubDate><dc:creator>lotte</dc:creator></item><item><title>RE: AAT add blocks/ trials</title><link>https://forums.millisecond.com/Topic11146.aspx</link><description>&lt;p&gt;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.&lt;/p&gt;</description><pubDate>Wed, 04 Sep 2013 05:27:02 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>