Randomizing presentation of groups of blocks


Author
Message
mindwanderingjeremy
mindwanderingjeremy
Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)Associate Member (226 reputation)
Group: Forum Members
Posts: 18, Visits: 43
Hi again! 

I am having trouble with my n-back task code again. It is nearly complete but I am attempting to randomise the presentation of my survey pages which is proving difficult.
The way I have attempted to do this is I have created a <survey thoughtprobes> function which presents each of the survey pages in a random order. However, I need this survey page to be shown after every one of my experimental blocks. To do this I need to be able to randomly select groups of block1 + survey.thoughtprobes, block 2 + survey.thoughprobes, block3 + survey.thoughtprobes, etc in my <experiment> function. Is there an easy way to do this?

So far I have attempted to use a method I found on a 10 year old thread in this forum which uses lists to achieve this like so:
<list blockselector>
/items = (list.q0b1, list.q0b2, list.q0b3, list.m0b1, list.m0b2, list.m0b3, list.l0b1, list.l0b2, list.l0b3,
list.q1b1, list.q1b2, list.q1b3, list.m1b1, list.m1b2, list.m1b3, list.l1b1, list.l1b2, list.l1b3,)
/selectionmode = random
/replace = false
</list>
<list q0b1>
/items = (block.quick0back1, survey.thoughtprobe)
/selectionmode = sequence
</list>
*** multiple lists for each block type ***
<expt>
/ preinstructions = (intro)
/ postinstructions = (end)
/ blocks = [1-2 = list.blockselector; 3-4 = list.blockselector; 5-6 = list.blockselector; 7-8 = list.blockselector; 9-10 = list.blockselector;
11-12 = list.blockselector; 13-14 = list.blockselector; 15-16 = list.blockselector; 17-18 = list.blockselector; 19-20 = list.blockselector;
21-22 = list.blockselector; 23-24 = list.blockselector; 25-26 = list.blockselector; 27-28 = list.blockselector; 29-30 = list.blockselector;
31-32 = list.blockselector; 33-34 = list.blockselector; 35-36 = list.blockselector]
/onexptend = [values.completed = 1]
</expt>

However this does not work. Any ideas on how I can randomly present blocks with the survey at the end?
I have included my code and stimuli below if you would like to look at the whole thing.
Thank you!

Attachments
NBack1.iqx (244 views, 68.00 KB)
blueCircle.gif (254 views, 61.00 KB)
blueSquare.gif (244 views, 5.00 KB)
blueTriangle.gif (252 views, 6.00 KB)
Instructions1.png (282 views, 155.00 KB)
Instructions2.png (261 views, 184.00 KB)
redCircle.gif (264 views, 100.00 KB)
redSquare.gif (247 views, 3.00 KB)
redTriangle.gif (256 views, 77.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search