﻿<?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 6  » Selection and randomization of stimuli</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 02 May 2026 11:14:17 GMT</lastBuildDate><ttl>20</ttl><item><title>Selection and randomization of stimuli</title><link>https://forums.millisecond.com/Topic32238.aspx</link><description>Dear all,&amp;nbsp;&lt;br/&gt;I have been working on an Inquisit script (please find it attached) and I am struggling with the stimuli selection. &lt;br/&gt;I have a block with four different types of trials: approaching stim_1 in the upper part of the screen with distractor_1;&amp;nbsp;approaching stim_1 in the lower part of the screen with distractor_1;&amp;nbsp;approaching stim_1 in the upper part of the screen with distractor_2; approaching stim_1 in the lower part of the screen with distractor_2.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;There are eight stimuli by category (ie eight stimuli for stim_1 ; eight stimuli for distractor_1 ; eight stimuli for distractor_2) and overall, I would like to display 128 trials (32 per type of trials). I also would like that, at the block level, each possible pair of stimuli (64 pairs = stim_1 with distractor_1 and 64 pairs = stim_1 with distractor_2) would be displayed only once, with stim_1 being randomly displayed either in the upper part of the screen or either in the lower part of the screen. &lt;br/&gt;&lt;br/&gt;I have mainly used this post to compute the actual code : &lt;a href="https://www.millisecond.com/forums/Topic2273.aspx"&gt;https://www.millisecond.com/forums/Topic2273.aspx&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Any help would be greatly appreciated! Thank you very much, &lt;br/&gt;warm regards, &lt;br/&gt;S.M&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 23 Sep 2021 16:12:52 GMT</pubDate><dc:creator>SilvioM</dc:creator></item><item><title>RE: Selection and randomization of stimuli</title><link>https://forums.millisecond.com/Topic32242.aspx</link><description>&lt;blockquote data-id="32241" class="if-quote-wrapper" unselectable="on" data-guid="1632413286458" id="if_insertedNode_1632413285087" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="32241" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="32241" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="32241" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SilvioM - 9/23/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-32241"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;My question is: how can I make each pair of stimuli (stim_1 with distractor_1 and stim_1 with distractor_2) appear only once?&lt;br/&gt;&lt;br/&gt;At the moment, as I pick 32 trials from the first trial condition (ie stim_1 on the top of the screen) and 32 trials from the second trial condition (ie stim_1 on the bottom of the screen), some pairs of trials may be redondant across conditions, and some pairs of trials may not be displayed. &lt;br/&gt;&lt;br/&gt;I hope that it is clearer now, thank you very much for your support. &lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="32241"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;As I said in my previous response, you ought to have the two NEU trials sample from the same two counters, and same thing for the two SED trials. &lt;br/&gt;&lt;br/&gt;64 SED target-distractor combinations&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;counter counter_Approach_PA_SED_target&amp;gt;&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ items = (&lt;br/&gt;1,1,1,1,1,1,1,1,&lt;br/&gt;2,2,2,2,2,2,2,2,&lt;br/&gt;3,3,3,3,3,3,3,3,&lt;br/&gt;4,4,4,4,4,4,4,4,&lt;br/&gt;5,5,5,5,5,5,5,5,&lt;br/&gt;6,6,6,6,6,6,6,6,&lt;br/&gt;7,7,7,7,7,7,7,7,&lt;br/&gt;8,8,8,8,8,8,8,8)&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;## I create all combinations for target stimuli&lt;br/&gt;&lt;br/&gt;&amp;lt;counter counter_Avoid_SED_distractor&amp;gt;&lt;br/&gt;/ select = current(counter_Approach_PA_SED_target)&lt;br/&gt;/ items = (&lt;br/&gt;1,2,3,4,5,6,7,8,&lt;br/&gt;1,2,3,4,5,6,7,8,&lt;br/&gt;1,2,3,4,5,6,7,8,&lt;br/&gt;1,2,3,4,5,6,7,8,&lt;br/&gt;1,2,3,4,5,6,7,8,&lt;br/&gt;1,2,3,4,5,6,7,8,&lt;br/&gt;1,2,3,4,5,6,7,8,&lt;br/&gt;1,2,3,4,5,6,7,8)&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;and distracting stimuli[/code]&lt;br/&gt;&lt;br/&gt;with&lt;br/&gt;[code]&lt;br/&gt;&amp;lt;trial Approach_PA_SED_top&amp;gt;  &lt;br/&gt;/ ontrialbegin = [values.Approach_PA_SED_top = counter.counter_Approach_PA_SED_target.selectedvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.Avoid_SED_bottom = counter.counter_Avoid_SED_distractor.selectedvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;br/&gt;/ stimulusframes = [1=focuspoint; 100 = Approach_PA_SED_top, Avoid_SED_bottom, moi]&lt;br/&gt;/ validresponse = ("t", "b","g")&lt;br/&gt;/ correctresponse = ("t")&lt;br/&gt;/ timeout = 10000&lt;br/&gt;/ branch = [if (trial.Approach_PA_SED_top.response == 0) trial.tooslowfb]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ branch = [if (trial.Approach_PA_SED_top.error) trial.errorfb]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ branch = [if (trial.Approach_PA_SED_top.correct) trial.correctfb_Approach_PA_SED_top]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Approach_PA_SED_top&amp;gt;  &lt;br/&gt;/ ontrialbegin = [values.Approach_PA_SED_top = counter.counter_Approach_PA_SED_target.selectedvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.Avoid_SED_bottom = counter.counter_Avoid_SED_distractor.selectedvalue;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;br/&gt;/ stimulusframes = [1=focuspoint; 100 = Approach_PA_SED_top, Avoid_SED_bottom, moi]&lt;br/&gt;/ validresponse = ("t", "b","g")&lt;br/&gt;/ correctresponse = ("t")&lt;br/&gt;/ timeout = 10000&lt;br/&gt;/ branch = [if (trial.Approach_PA_SED_top.response == 0) trial.tooslowfb]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ branch = [if (trial.Approach_PA_SED_top.error) trial.errorfb]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ branch = [if (trial.Approach_PA_SED_top.correct) trial.correctfb_Approach_PA_SED_top]&lt;br/&gt;&amp;lt;/trial&amp;gt;[/code]&lt;br/&gt;</description><pubDate>Thu, 23 Sep 2021 16:12:52 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Selection and randomization of stimuli</title><link>https://forums.millisecond.com/Topic32241.aspx</link><description>My question is: how can I make each pair of stimuli (stim_1 with distractor_1 and stim_1 with distractor_2) appear only once?&lt;br /&gt;&lt;br /&gt;At the moment, as I pick 32 trials from the first trial condition (ie stim_1 on the top of the screen) and 32 trials from the second trial condition (ie stim_1 on the bottom of the screen), some pairs of trials may be redondant across conditions, and some pairs of trials may not be displayed. &lt;br /&gt;&lt;br /&gt;I hope that it is clearer now, thank you very much for your support. &lt;br /&gt;&lt;br /&gt;</description><pubDate>Thu, 23 Sep 2021 16:01:43 GMT</pubDate><dc:creator>SilvioM</dc:creator></item><item><title>RE: Selection and randomization of stimuli</title><link>https://forums.millisecond.com/Topic32240.aspx</link><description>&lt;blockquote data-id="32239" class="if-quote-wrapper" unselectable="on" data-guid="1632412678709" id="if_insertedNode_1632412677662" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="32239" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="32239" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="32239" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 9/23/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-32239"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="32238" class="if-quote-wrapper" unselectable="on" data-guid="1632412678709" id="if_insertedNode_1632411416101" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="32238" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="32238" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="32238" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SilvioM - 9/23/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-32238"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dear all,&amp;nbsp;&lt;br/&gt;I have been working on an Inquisit script (please find it attached) and I am struggling with the stimuli selection. &lt;br/&gt;I have a block with four different types of trials: approaching stim_1 in the upper part of the screen with distractor_1;&amp;nbsp;approaching stim_1 in the lower part of the screen with distractor_1;&amp;nbsp;approaching stim_1 in the upper part of the screen with distractor_2; approaching stim_1 in the lower part of the screen with distractor_2.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;There are eight stimuli by category (ie eight stimuli for stim_1 ; eight stimuli for distractor_1 ; eight stimuli for distractor_2) and overall, I would like to display 128 trials (32 per type of trials). I also would like that, at the block level, each possible pair of stimuli (64 pairs = stim_1 with distractor_1 and 64 pairs = stim_1 with distractor_2) would be displayed only once, with stim_1 being randomly displayed either in the upper part of the screen or either in the lower part of the screen. &lt;br/&gt;&lt;br/&gt;I have mainly used this post to compute the actual code : &lt;a href="https://www.millisecond.com/forums/Topic2273.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/Topic2273.aspx"&gt;https://www.millisecond.com/forums/Topic2273.aspx&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Any help would be greatly appreciated! Thank you very much, &lt;br/&gt;warm regards, &lt;br/&gt;S.M&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="32238"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;What are your concrete questions&lt;a class="if-quote-goto quote-link" href="#" data-id="32239"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt;  I also would like that, at the block level, each possible pair of stimuli (64 pairs = stim_1 with distractor_1 and 64 pairs = stim_1 with distractor_2) would be displayed only once, with stim_1 being randomly displayed either in the upper part of the screen or either in the lower part of the screen.&lt;br/&gt;&lt;br/&gt;Then the two trials Approach_PA_SED_top and Approach_PA_SED_bottom should sample from the same set of two counters, not two separate sets of counters.&lt;br/&gt;Same for the two trials Approach_PA_NEU_top and Approach_PA_NEU_bottom.&lt;br/&gt;</description><pubDate>Thu, 23 Sep 2021 15:59:45 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Selection and randomization of stimuli</title><link>https://forums.millisecond.com/Topic32239.aspx</link><description>&lt;blockquote data-id="32238" class="if-quote-wrapper" unselectable="on" data-guid="1632411417192" id="if_insertedNode_1632411416101" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="32238" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="32238" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="32238" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SilvioM - 9/23/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-32238"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Dear all,&amp;nbsp;&lt;br/&gt;I have been working on an Inquisit script (please find it attached) and I am struggling with the stimuli selection. &lt;br/&gt;I have a block with four different types of trials: approaching stim_1 in the upper part of the screen with distractor_1;&amp;nbsp;approaching stim_1 in the lower part of the screen with distractor_1;&amp;nbsp;approaching stim_1 in the upper part of the screen with distractor_2; approaching stim_1 in the lower part of the screen with distractor_2.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;There are eight stimuli by category (ie eight stimuli for stim_1 ; eight stimuli for distractor_1 ; eight stimuli for distractor_2) and overall, I would like to display 128 trials (32 per type of trials). I also would like that, at the block level, each possible pair of stimuli (64 pairs = stim_1 with distractor_1 and 64 pairs = stim_1 with distractor_2) would be displayed only once, with stim_1 being randomly displayed either in the upper part of the screen or either in the lower part of the screen. &lt;br/&gt;&lt;br/&gt;I have mainly used this post to compute the actual code : &lt;a href="https://www.millisecond.com/forums/Topic2273.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/Topic2273.aspx"&gt;https://www.millisecond.com/forums/Topic2273.aspx&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Any help would be greatly appreciated! Thank you very much, &lt;br/&gt;warm regards, &lt;br/&gt;S.M&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="32238"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;What are your concrete questions</description><pubDate>Thu, 23 Sep 2021 15:37:12 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>