﻿<?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  » Stroop task - no repeated color of words in consecutive trials</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 24 Jun 2026 22:27:45 GMT</lastBuildDate><ttl>20</ttl><item><title>Stroop task - no repeated color of words in consecutive trials</title><link>https://forums.millisecond.com/Topic17773.aspx</link><description>Hi :) I m currently preparing for a modified Stroop task. Anyone knows what functions I should use in the script to make sure no repeated color of the word stimuli would be presented in consecutive trials? great thanks! :)&amp;nbsp;&lt;br/&gt;</description><pubDate>Tue, 24 Nov 2015 04:36:16 GMT</pubDate><dc:creator>fifi</dc:creator></item><item><title>RE: Stroop task - no repeated color of words in consecutive trials</title><link>https://forums.millisecond.com/Topic17799.aspx</link><description>Repeats can happen if there are no more elements left to sample that *don't* violate the /maxrunsize constraint, as detailed in the documentation: &lt;br/&gt;&lt;br/&gt;"Random selection is done on the fly, so if multiple selection constraints such as not or replace are in place, it may not be possible to satisfy them all on a give trial, especially if there are only a few remaining items in the selection pool. In that case, the list will suspend one of the constraints and try again. If it still can not satisfy the remaining constraints, it suspends another and tries again, and so forth. By default, the maxrunsize constraint is suspended first, then replace, and finally the not constraints."&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 24 Nov 2015 04:36:16 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stroop task - no repeated color of words in consecutive trials</title><link>https://forums.millisecond.com/Topic17794.aspx</link><description>I do not know why but the color still repeats on consecutive trials though it only happens for few times.&amp;nbsp;</description><pubDate>Tue, 24 Nov 2015 00:47:26 GMT</pubDate><dc:creator>fifi</dc:creator></item><item><title>RE: Stroop task - no repeated color of words in consecutive trials</title><link>https://forums.millisecond.com/Topic17782.aspx</link><description>&amp;gt; Is there anything I miss in the script? &lt;br/&gt;&lt;br/&gt;I can't tell you whether you're missing anything in the script based on the &amp;lt;list&amp;gt; alone. What I can tell you is that using &amp;lt;list&amp;gt;s works if done *properly*. The below example uses 4 colors and 5 word items, i.e., 4 x 5 = 20 pairs (20 trials), with no display color repeating on consecutive trials (if possible):&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ screencolor = (black)&lt;br/&gt;/ trials = [1-20=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [text.mytext.textcolor=list.displaycolor.nextvalue; ]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*** the two lists pair display color and word items ***&lt;br/&gt;*** 4 colors x 5 items = 20 pairs ***&lt;br/&gt;&amp;lt;list displaycolor&amp;gt;&lt;br/&gt;/ items = (red, red, red, red, red, &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; green, green, green, green, green, &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blue, blue, blue, blue, blue, &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; yellow, yellow, yellow, yellow, yellow)&lt;br/&gt;/ replace = false&lt;br/&gt;/ maxrunsize = 1&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list worditem&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,2,3,4,5,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,2,3,4,5,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,2,3,4,5)&lt;br/&gt;/ selectionmode = list.displaycolor.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ select = list.worditem.nextvalue&lt;br/&gt;/ fontstyle = ("Arial", 10%, true)&lt;br/&gt;/ txbgcolor = (black)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "A"&lt;br/&gt;/ 2 = "B"&lt;br/&gt;/ 3 = "C"&lt;br/&gt;/ 4 = "D"&lt;br/&gt;/ 5 = "E"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 23 Nov 2015 05:45:39 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stroop task - no repeated color of words in consecutive trials</title><link>https://forums.millisecond.com/Topic17775.aspx</link><description>Thanks a lot for your reply Dave! I have actually tried that but it seems that it's still not working :(&amp;nbsp;&lt;br/&gt;I have already used &amp;lt;list&amp;gt; and included /maxrunsize as follow:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;list neutralwords_selectcolor&amp;gt;&lt;br/&gt;/items = (values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color1, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color2, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color3, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4, values.color4)&lt;br/&gt;/replace = false&lt;br/&gt;/maxrunsize = 1&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;In my design, I have four word lists (blocks) with each containing 80 trials (20 words and each word printed in one color) except the practice blocks consisting of 20 trials. The above shows one of the experimental block (with neutral words). As each word is printed into one color, so I include 80 colors as items under the &amp;lt;list&amp;gt;, and as each color of each word can only appear once in each block - I use /maxrunsize = 1, but the outcome still shows words with same color in consecutive trials. Is there anything I miss in the script?&amp;nbsp;&lt;br/&gt;</description><pubDate>Sun, 22 Nov 2015 23:35:09 GMT</pubDate><dc:creator>fifi</dc:creator></item><item><title>RE: Stroop task - no repeated color of words in consecutive trials</title><link>https://forums.millisecond.com/Topic17774.aspx</link><description>You would have to use a &amp;lt;list&amp;gt; for color selection and use its /maxrunsize attribute to impose the no-repetition constraint.&lt;br/&gt;</description><pubDate>Sun, 22 Nov 2015 20:38:02 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>