| 
	Group: Forum MembersPosts: 11, 
    Visits: 85
 
 | 
                    
			            Thank you so much for your response! The randomization of stimuli into Categories A/B/Remaining is partially working the way I want it to now. What's working: the script is randomly selecting different stimuli to be in each category
 What's not working: When I tried to change the pool size (from 4 to 24), I was still stuck with a total effective pool size of 4. In other words, although the script is randomly selecting images from my 24-item pool, it only picks 4 of them (1 catA, 1 catB, 2 Remaining - which is the correct ratio) and just repeats them until I reach my specified number of trials rather than getting through all of them.
 
 I get the feeling that I must be missing something somewhere but I'm not sure where. What might be going on here??
 
 My current code is as follows:
 
 <item pool_of_objects>
 /1 = "eggplant.jpg"
 /2 = "shorts.jpg"
 /3 = "toydinosaur.jpg"
 /4 = "swimgoggles.jpg"
 /5 = "box01.jpg"
 /6 = "bandaid01.jpg"
 /7 = "nailclipper03b.jpg"
 /8 = "hammer01.jpg"
 /9 = "toothbrush03b.jpg"
 /10 = "telephone01b.jpg"
 /11 = "asparagus.jpg"
 /12 = "beermug01a.jpg"
 /13 = "cap01a.jpg"
 /14 = "grater01a.jpg"
 /15 = "coconut.jpg"
 /16 = "honeydewmelon.jpg"
 /17 = "keyboard02.jpg"
 /18 = "comb02a.jpg"
 /19 = "baseball01a.jpg"
 /20 = "playingcard04.jpg"
 /21 = "vase01.jpg"
 /22 = "pill.jpg"
 /23 = "nail.jpg"
 /24 = "pencil01.jpg"
 </item>
 
 <list nitems>
 / poolsize = 24
 / selectionmode = random
 / selectionrate = always
 </list>
 
 
 Fill lists empty lists with item numbers at runtime
 
 <list categoryaitems>
 </list>
 
 <list categorybitems>
 </list>
 
 <list remainingitems>
 </list>
 
 
 <picture categorya>
 / items = pool_of_objects
 /size = (20%, 20%)
 /vposition = (60%, 60%)
 / select = list.categoryaitems.nextvalue
 </picture>
 
 <picture categoryb>
 / items = pool_of_objects
 /size = (20%, 20%)
 /vposition = (60%, 60%)
 / select = list.categorybitems.nextvalue
 </picture>
 
 <picture remaining>
 / items = pool_of_objects
 /size = (20%, 20%)
 /vposition = (60%, 60%)
 / select = list.remainingitems.nextvalue
 </picture>
 
 ##################################################
 
 <trial CategoryA>
 /stimulustimes = [0 = categorya]
 / validresponse = ("N", "O", "S")
 </trial>
 
 <trial CategoryB>
 /stimulustimes = [0 = categoryb]
 / validresponse = ("N", "O", "S")
 </trial>
 
 <trial Category_Remain1>
 /stimulustimes = [0 = remaining]
 / validresponse = ("N", "O", "S")
 </trial>
 
 
 
 ##################################################
 
 <block a_and_b>
 /preinstructions = (blockAB)
 / trials = [1-12 = noreplacenorepeat(CategoryA, CategoryB)]
 </block>
 
 <block remaining>
 /preinstructions = (blockRemain)
 / trials = [1-24 = noreplacenorepeat(CategoryA, CategoryB, Category_Remain)]
 </block>
 
 
 ##################################################
 
 <expt>
 / onexptbegin = [list.categoryaitems.appenditem(list.nitems.nextindex);
 list.categorybitems.appenditem(list.nitems.nextindex);
 list.remainingitems.appenditem(list.nitems.nextindex);
 list.remainingitems.appenditem(list.nitems.nextindex);]
 / blocks = [1 = a_and_b; 2 = remaining]
 </expt>
 
 
 
 
 |