﻿<?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  » Counter element and sequential selection</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 10 Sep 2026 19:11:47 GMT</lastBuildDate><ttl>20</ttl><item><title>Counter element and sequential selection</title><link>https://forums.millisecond.com/Topic14718.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I am trying to set up a AX-CPT task where, during the practice block, participants are supposed this serie of letters :&lt;br/&gt;W X A P T A X A Z A X B X A X&lt;br/&gt;(in this order)&lt;br/&gt;&lt;br/&gt;With the following script I get a serie of 15 letters but randomly chosen from the list of items axletters and I can't figure out why...&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ resttime = 120000&lt;br/&gt;/ cresp = 0&lt;br/&gt;/ stimtype = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item axletters&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;/ 6 = "F"&lt;br/&gt;/ 7 = "G"&lt;br/&gt;/ 8 = "H"&lt;br/&gt;/ 9  = "I"&lt;br/&gt;/ 10 = "J"&lt;br/&gt;/ 11 = "K"&lt;br/&gt;/ 12 = "L"&lt;br/&gt;/ 13 = "M"&lt;br/&gt;/ 14 = "N"&lt;br/&gt;/ 15 = "O"&lt;br/&gt;/ 16 = "P"&lt;br/&gt;/ 17 = "Q"&lt;br/&gt;/ 18 = "R"&lt;br/&gt;/ 19 = "S"&lt;br/&gt;/ 20 = "T"&lt;br/&gt;/ 21 = "U"&lt;br/&gt;/ 22 = "V"&lt;br/&gt;/ 23 = "W"&lt;br/&gt;/ 24 = "X"&lt;br/&gt;/ 25 = "Y"&lt;br/&gt;/ 26 = "Z"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text stimi&amp;gt;&lt;br/&gt;/items = axletters&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text errormessage&amp;gt;&lt;br/&gt;/ items = ("  ERROR  ")&lt;br/&gt;/ txcolor = (255,0,0)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text correctmessage&amp;gt;&lt;br/&gt;/ items = ("  CORRECT  ")&lt;br/&gt;/ txcolor = (0,255,0)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;counter practicelettersstimtype&amp;gt;&lt;br/&gt;/ items = (23,24,1,16,20,1,24,1,26,1,24,2,24,1,24)&lt;br/&gt;/ select = sequence &lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;counter practiceletterscresp&amp;gt;&lt;br/&gt;/ items = (50,50,50,50,50,50,44,50,50,50,44,50,50,50,44)&lt;br/&gt;/ select = current(practicelettersstimtype)&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial practiceletters&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = stimi; 500 = blank]&lt;br/&gt;/ ontrialbegin = [values.stimtype=counter.practicelettersstimtype.selectedvalue;&lt;br/&gt;values.cresp=counter.practiceletterscresp.selectedvalue]&lt;br/&gt;/ trialduration = 1000&lt;br/&gt;/ validresponse = (44,50)&lt;br/&gt;/ iscorrectresponse = [trial.practiceletters.response==values.cresp]&lt;br/&gt;/ responsetime = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block prac&amp;gt;&lt;br/&gt;/ trials = [1-15= noreplace(practiceletters)]&lt;br/&gt;/ errormessage = (errormessage, 400)&lt;br/&gt;/ correctmessage = (correctmessage, 400)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Thank you for your help!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 27 Oct 2014 06:38:47 GMT</pubDate><dc:creator>Zooahh</dc:creator></item><item><title>RE: Counter element and sequential selection</title><link>https://forums.millisecond.com/Topic14730.aspx</link><description>Thank &amp;nbsp;you!</description><pubDate>Mon, 27 Oct 2014 06:38:47 GMT</pubDate><dc:creator>Zooahh</dc:creator></item><item><title>RE: Counter element and sequential selection</title><link>https://forums.millisecond.com/Topic14719.aspx</link><description>&amp;lt;text stimi&amp;gt;&lt;br/&gt;/items = axletters&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;If you don't specify its /select attribute otherwise, any stimulus element (such as a &amp;lt;text&amp;gt;) defaults to random selection without replacement. That's the expected behavior. &lt;br/&gt;&lt;br/&gt;If you want it to use e.g. a &amp;lt;counter&amp;gt; for selection, you need to specify that explicitly.&lt;br/&gt;</description><pubDate>Fri, 24 Oct 2014 15:02:14 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>