﻿<?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  » setting selection of stimuli with no replacement from same pool list</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 13:23:25 GMT</lastBuildDate><ttl>20</ttl><item><title>setting selection of stimuli with no replacement from same pool list</title><link>https://forums.millisecond.com/Topic13608.aspx</link><description>Hi there,&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;I'm attempting to write a script for a Number Letter task where a pool of Number-Letter pairs (e.g. "A4", "B6")are presented on the screen in 2 positions. I'm having a couple of problems, mainly because I need to have a pool of potential pairs that need to be accessed by the two &amp;lt;text&amp;gt; stimuli (left side stimuli, right side stimuli) which are presented consecutively in sequencewith no repeats, no replacement.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;What is the best option for this? If I implement an item pool pairs as below the &amp;lt;text&amp;gt; stimuli numberlettersleft and numberlettersright choose from the item pool exclusively, whereas would I want to happen is that if an item is used by the numberlettersleft (e.g. /1 "A3") then when numberlettersright is presented A3 is removed from the item pool, and that it doesn't repeat the same stimuli as the previous trial.&amp;nbsp;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;lt;item pairs&amp;gt;&lt;/div&gt;&lt;div&gt;/1 = "A3"&lt;/div&gt;&lt;div&gt;/2 = "B4"&lt;/div&gt;&lt;div&gt;/3 = "C5"&lt;/div&gt;&lt;div&gt;/4 = "D4"&lt;/div&gt;&lt;div&gt;/5 = "G5"&lt;/div&gt;&lt;div&gt;/6 = "E6"&lt;/div&gt;&lt;div&gt;/7 = "A7"&lt;/div&gt;&lt;div&gt;/8 = "U8"&lt;/div&gt;&lt;div&gt;/9 = "I9"&lt;/div&gt;&lt;div&gt;&amp;lt;/item&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;lt;text numberlettersleft&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;/ items = pairs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;/ select = noreplacenorepeat&lt;/div&gt;&lt;div&gt;/ hposition = 45&lt;/div&gt;&lt;div&gt;/vposition = 45&lt;/div&gt;&lt;div&gt;/ color = black&lt;/div&gt;&lt;div&gt;&amp;lt;/text&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial topleftpresletter&amp;gt;&lt;/div&gt;&lt;div&gt;/ stimulustimes = [1=numberlettersleft]&lt;/div&gt;&lt;div&gt;/ validresponse = ("d", "f", "j", "k")&lt;/div&gt;&lt;div&gt;&amp;lt;/trial&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;text numberlettersright&amp;gt;&lt;/div&gt;&lt;div&gt;/ items = pairs&lt;/div&gt;&lt;div&gt;/ select = noreplacenorepeat&lt;/div&gt;&lt;div&gt;/ hposition = 55&lt;/div&gt;&lt;div&gt;/vposition = 45&lt;/div&gt;&lt;div&gt;/ color = black&lt;/div&gt;&lt;div&gt;&amp;lt;/text&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial toprightpresletter&amp;gt;&lt;/div&gt;&lt;div&gt;/ stimulustimes = [1=numberlettersright]&lt;/div&gt;&lt;div&gt;/ validresponse = ("d", "f", "j", "k")&lt;/div&gt;&lt;div&gt;&amp;lt;/trial&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;------------------------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;*** BLOCKS *****&lt;/div&gt;&lt;div&gt;------------------------------------------------------------------------------------&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;block practice&amp;gt;&lt;/div&gt;&lt;div&gt;/trials = [1-18=sequence(topleftpresletter,toprightpresletter)]&lt;/div&gt;&lt;div&gt;&amp;lt;/block&amp;gt;&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;*****&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;I've also thought about implementing a list (below) but for some reason when I refer to the list in the / items tag &amp;nbsp;in the text stimuli an error appears saying it cannot find the item pairs. Would using a list be a way around this and how do you refer to the list in the text stimuli? Any help at all is most appreciated - been pulling my hair out over this!&lt;br/&gt;&lt;br/&gt;Thanks in advance,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Warren&lt;br/&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;list pairs&amp;gt;&lt;/div&gt;&lt;div&gt;/ selectionmode = random&lt;/div&gt;&lt;div&gt;/ items = ("A1", "B2", "C3", "D4")&lt;/div&gt;&lt;div&gt;&amp;lt;/list&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;text numberlettersleft&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;/ items = pairs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;/ select = noreplacenorepeat&lt;/div&gt;&lt;div&gt;/ hposition = 45&lt;/div&gt;&lt;div&gt;/vposition = 45&lt;/div&gt;&lt;div&gt;/ color = black&lt;/div&gt;&lt;div&gt;&amp;lt;/text&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Thu, 19 Jun 2014 19:09:50 GMT</pubDate><dc:creator>WarrenL</dc:creator></item><item><title>RE: setting selection of stimuli with no replacement from same pool list</title><link>https://forums.millisecond.com/Topic13634.aspx</link><description>Well, one could come up with at least a dozen ways to do this. And yes, you could pull one letter and one digit from the respective lists /ontrialbegin, concat() them store the result in a &amp;lt;values&amp;gt; entry and display that.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Or you could do:&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;list letters&amp;gt;&lt;br/&gt;/items = (&lt;br/&gt;"A", "E", "I", "U", "S", "T", "X", "V", "G")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list numbers&amp;gt;&lt;br/&gt;/items = (&lt;br/&gt;"1", "3", "5", "7", "9", "4", "6", "8", "9")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%list.letters.nextvalue%&amp;gt;&amp;lt;%list.numbers.nextvalue%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-9=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 19 Jun 2014 19:09:50 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: setting selection of stimuli with no replacement from same pool list</title><link>https://forums.millisecond.com/Topic13633.aspx</link><description>Thanks Dave - you truly are a supreme being! The single pool works perfectly now&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;I'm going to be a pain again and ask one more question: I've realised I may have to go a step further and have two lists of items (&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;list of letters &amp;lt;list letters&amp;gt; and&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;list of digits &amp;lt;list digits&amp;gt;,&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;font size="2"&gt;&amp;nbsp;below) that are combined/concatenated together randomly to form the Letter Number pair, e.g. (and I'm not sure this syntax is completely correct) presented as in the original post (left, right presentations in sequence):&lt;/font&gt;&lt;div style="font-size: 10pt;"&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;list letters&amp;gt;&lt;/div&gt;&lt;div&gt;/items = (&lt;/div&gt;&lt;div&gt;"A",&amp;nbsp;&lt;span style="font-size: 10pt;"&gt;"E",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"I",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"U",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"S",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"T",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"X",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"V",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"G"&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/list&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;lt;list numbers&amp;gt;&lt;/div&gt;&lt;div&gt;/items = (&lt;/div&gt;&lt;div&gt;"1",&amp;nbsp;&lt;span style="font-size: 10pt;"&gt;"3",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"5",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"7",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"9",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"4",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"6",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"8",&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;"9"&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/list&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;would I have to create an expression during the trial (in a /ontrialbegin element for example) that would select and add two of these items together in order to be presented and what would the function be? It would have to be random without replacement as well. I've tried concat but I think that is the wrong function for this...&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;Sorry for all the questions - again thanks for your invaluable help!&lt;br/&gt;&lt;br/&gt;Best&lt;br/&gt;Warren&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Thu, 19 Jun 2014 18:47:01 GMT</pubDate><dc:creator>WarrenL</dc:creator></item><item><title>RE: setting selection of stimuli with no replacement from same pool list</title><link>https://forums.millisecond.com/Topic13609.aspx</link><description>You simply need to define a *single selection pool* for the two &amp;lt;text&amp;gt; elements using a &amp;lt;list&amp;gt; or &amp;lt;counter&amp;gt;. And, no, &amp;lt;list&amp;gt;s arent items and thus cannot be referenced via an /items attribute. They ought to be referenced via a stimulus element's /select attribute:&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&amp;lt;item pairs&amp;gt;&lt;/div&gt;&lt;div&gt;/1 = "A3"&lt;/div&gt;&lt;div&gt;/2 = "B4"&lt;/div&gt;&lt;div&gt;/3 = "C5"&lt;/div&gt;&lt;div&gt;/4 = "D4"&lt;/div&gt;&lt;div&gt;/5 = "G5"&lt;/div&gt;&lt;div&gt;/6 = "E6"&lt;/div&gt;&lt;div&gt;/7 = "A7"&lt;/div&gt;&lt;div&gt;/8 = "U8"&lt;/div&gt;&lt;div&gt;/9 = "I9"&lt;/div&gt;&amp;lt;/item&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;text numberlettersleft&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;/ items = pairs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;/ select = list.itemlist.nextvalue&lt;/strong&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;/ hposition = 45&lt;/div&gt;&lt;div&gt;/vposition = 45&lt;/div&gt;&lt;div&gt;/ color = black&lt;/div&gt;&lt;div&gt;&amp;lt;/text&amp;gt;&lt;/div&gt;&lt;br/&gt;&lt;div&gt;&amp;lt;text numberlettersright&amp;gt;&lt;/div&gt;&lt;div&gt;/ items = pairs&lt;/div&gt;&lt;div&gt;&lt;strong&gt;/ select = list.itemlist.nextvalue&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;/ hposition = 55&lt;/div&gt;&lt;div&gt;/vposition = 45&lt;/div&gt;&lt;div&gt;/ color = black&lt;/div&gt;&lt;div&gt;&amp;lt;/text&amp;gt;&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;list itemlist&amp;gt;&lt;div&gt;/ items = (1,2,3,4,5,6,7,8,9)&lt;div&gt;&amp;lt;/list&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Finally, 'noreplacenorepeat' makes no sense in your scenario. The nine items are all different, so there is no way anything could possibly repeat.&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Tue, 17 Jun 2014 18:14:29 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>