﻿<?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  » Stimulusnumbers between blocks cause problem with order of the stimuli.</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 24 Sep 2026 23:38:21 GMT</lastBuildDate><ttl>20</ttl><item><title>Stimulusnumbers between blocks cause problem with order of the stimuli.</title><link>https://forums.millisecond.com/Topic12219.aspx</link><description>Hi all.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;I have a problem with random selected graphics in following blocks.&lt;br/&gt;In the first block everything is ok.&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;But in the further blocks INQ seemsto "remember" stimulusnumber from first block. That couse big problems with stimulus order in the block.&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;How can I reset stimulusnumbers?&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Can someone look at it an try to help.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;Attached you can find part of the result file and script.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 28 Jan 2014 06:53:42 GMT</pubDate><dc:creator>letko</dc:creator></item><item><title>RE: Stimulusnumbers between blocks cause problem with order of the stimuli.</title><link>https://forums.millisecond.com/Topic12220.aspx</link><description>It is hard to understand what your actual problem may be. In other words, you do not state what you *expect* your code to do and what you expect to see as a result. But let me point out a few things:&lt;blockquote&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;item current_pic&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture picture&amp;gt;&lt;br/&gt;/items = current_pic&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/size = (60%, 60%)&lt;br/&gt;/erase = true (255, 255, 255)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/blockquote&gt;The above &amp;lt;picture&amp;gt; element sample randomly without replacement from &amp;lt;item current_pic&amp;gt;. You *keep adding* items to &amp;lt;item current_pic&amp;gt; at runtime per your &amp;lt;expressions&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ w123_v1 = if ((values.order_count&amp;lt;5) || (values.order_count==6) || (values.order_count==7) || (values.order_count&amp;gt;8)) item.current_pic.item = values.current_picD;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==5) item.current_pic.item = values.current_picT1;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==8) item.current_pic.item = values.current_picT2&lt;br/&gt;/ w123_v2 = if ((values.order_count&amp;lt;9) || (values.order_count==10) || (values.order_count==11) || (values.order_count&amp;gt;12)) item.current_pic.item = values.current_picD;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==9) item.current_pic.item = values.current_picT1;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==12) item.current_pic.item = values.current_picT2&lt;br/&gt;/ w123_v3 = if ((values.order_count&amp;lt;13) || (values.order_count==14) || (values.order_count==15) || (values.order_count&amp;gt;16)) item.current_pic.item = values.current_picD;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==13) item.current_pic.item = values.current_picT1;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==16) item.current_pic.item = values.current_picT2&lt;br/&gt;&lt;br/&gt;/ w456_v1 = if ((values.order_count&amp;lt;6) || (values.order_count&amp;gt;6 &amp;amp;&amp;amp; values.order_count&amp;lt;12) || (values.order_count&amp;gt;12)) item.current_pic.item = values.current_picD;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==6) item.current_pic.item = values.current_picT1;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==12) item.current_pic.item = values.current_picT2&lt;br/&gt;/ w456_v2 = if ((values.order_count&amp;lt;8) || (values.order_count&amp;gt;8 &amp;amp;&amp;amp; values.order_count&amp;lt;14) || (values.order_count&amp;gt;14)) item.current_pic.item = values.current_picD;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==8) item.current_pic.item = values.current_picT1;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==14) item.current_pic.item = values.current_picT2&lt;br/&gt;/ w456_v3 = if ((values.order_count&amp;lt;10) || (values.order_count&amp;gt;10 &amp;amp;&amp;amp; values.order_count&amp;lt;16) || (values.order_count&amp;gt;16)) item.current_pic.item = values.current_picD;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==10) item.current_pic.item = values.current_picT1;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (values.order_count==16) item.current_pic.item = values.current_picT2&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Every time one of those expressions is run by any of your &amp;lt;trial&amp;gt; elements, *another item is added* to the &amp;lt;item&amp;gt; element. Any previous items *do not dissappear* and the &amp;lt;picture&amp;gt; element will consequently sample from an ever-growing set of items as the task progresses through its blocks. If you want to remove items, you need to clear() the item element at an appropriate point in time.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;With respect to your &amp;lt;list&amp;gt; elements, please consult the documentation for the /resetinterval attribute and be aware of the fact that -- contrary to &amp;lt;text&amp;gt;, &amp;lt;picture&amp;gt; or &amp;lt;counter&amp;gt; elements -- &amp;lt;list&amp;gt; selection pools *do not reset between blocks by default*.&lt;br/&gt;</description><pubDate>Tue, 28 Jan 2014 06:53:42 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>