﻿<?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 5  » Random picture pairing using mycounter</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 13 May 2026 15:31:26 GMT</lastBuildDate><ttl>20</ttl><item><title>Random picture pairing using mycounter</title><link>https://forums.millisecond.com/Topic28007.aspx</link><description>My experiment involves ppts judging whether pairings shown are a match or not. Each ppt has a different 3 pairings that they need to learn. However, there are 9 possible pairings. I believe I have worked out how to create a random assignment of pairings for each ppt.&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;counter mycounter&amp;gt;&lt;br/&gt;/ select = noreplace(1,2,3,4,5,6,7,8,9)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item pictures&amp;gt;&lt;br/&gt;/1="ECircle.png"&lt;br/&gt;/2="EDiamond.png"&lt;br/&gt;/3="EHexagon.png"&lt;br/&gt;/4="EOctagon.png"&lt;br/&gt;/5="EOval.png"&lt;br/&gt;/6="EPentagon.png"&lt;br/&gt;/7="ERectangle.png"&lt;br/&gt;/8="ESquare.png"&lt;br/&gt;/9="ETriangle.png"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic1&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;/select = mycounter&lt;br/&gt;/position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic2&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;/select = mycounter&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic3&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;/select = mycounter&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;This seems to work, but not sure if there is a way to ensure that the same picture isn't duplicated - think it works with noreplace but not certain.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;The issue I am having is that the instruction page needs to show the pictures in a different position.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial trial_pra_selfpace_demo&amp;gt;&lt;br/&gt;/stimulustimes = [0=txt_pra_selfpace_instr, txt_instr_key,  pic_instr_L, pic_instr_M, pic_instr_R, txt_instr_L, txt_instr_M, txt_instr_R, fixation_L, fixation_R, fixation]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ correctresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;## instr_Picture&lt;br/&gt;&amp;lt;picture pic_instr_L&amp;gt;&lt;br/&gt;/ items = picture.Pic1&lt;br/&gt;/ position = (30%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture pic_instr_M&amp;gt;&lt;br/&gt;/items = picture.Pic2&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture pic_instr_R&amp;gt;&lt;br/&gt;/items = picture.Pic3&lt;br/&gt;/ position = (70%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;However this leads to the error that the pictures (picture.Pic1, picture.Pic2, picture.Pic3) could not be located. Is this because it is a random assignment rather than one set image? Are there any ways I could overcome this? Is there a way I could display Pic1, Pic2, Pic3 side by side on one instruction screen.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Many thanks, Naomi&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 18 Nov 2019 09:35:33 GMT</pubDate><dc:creator>NaomiLee</dc:creator></item><item><title>RE: Random picture pairing using mycounter</title><link>https://forums.millisecond.com/Topic28009.aspx</link><description>Thank you so much that works! Sorry I am new to Inquisit and think I'd just got a bit confused trying to sort the issue out from looking on these forums.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 18 Nov 2019 09:35:33 GMT</pubDate><dc:creator>NaomiLee</dc:creator></item><item><title>RE: Random picture pairing using mycounter</title><link>https://forums.millisecond.com/Topic28008.aspx</link><description>&lt;div data-id="28007" class="if-quote-wrapper" unselectable="on" data-guid="1574096513539"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28007" 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="28007" 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="28007" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;NaomiLee - 11/18/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28007"&gt;&lt;div class="if-quote-message-margin"&gt;My experiment involves ppts judging whether pairings shown are a match or not. Each ppt has a different 3 pairings that they need to learn. However, there are 9 possible pairings. I believe I have worked out how to create a random assignment of pairings for each ppt.&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;counter mycounter&amp;gt;&lt;br/&gt;/ select = noreplace(1,2,3,4,5,6,7,8,9)&lt;br/&gt;/ selectionrate = experiment&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item pictures&amp;gt;&lt;br/&gt;/1="ECircle.png"&lt;br/&gt;/2="EDiamond.png"&lt;br/&gt;/3="EHexagon.png"&lt;br/&gt;/4="EOctagon.png"&lt;br/&gt;/5="EOval.png"&lt;br/&gt;/6="EPentagon.png"&lt;br/&gt;/7="ERectangle.png"&lt;br/&gt;/8="ESquare.png"&lt;br/&gt;/9="ETriangle.png"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic1&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;/select = mycounter&lt;br/&gt;/position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic2&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;/select = mycounter&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic3&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;/select = mycounter&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;This seems to work, but not sure if there is a way to ensure that the same picture isn't duplicated - think it works with noreplace but not certain.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;The issue I am having is that the instruction page needs to show the pictures in a different position.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial trial_pra_selfpace_demo&amp;gt;&lt;br/&gt;/stimulustimes = [0=txt_pra_selfpace_instr, txt_instr_key,  pic_instr_L, pic_instr_M, pic_instr_R, txt_instr_L, txt_instr_M, txt_instr_R, fixation_L, fixation_R, fixation]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ correctresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;## instr_Picture&lt;br/&gt;&amp;lt;picture pic_instr_L&amp;gt;&lt;br/&gt;/ items = picture.Pic1&lt;br/&gt;/ position = (30%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture pic_instr_M&amp;gt;&lt;br/&gt;/items = picture.Pic2&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture pic_instr_R&amp;gt;&lt;br/&gt;/items = picture.Pic3&lt;br/&gt;/ position = (70%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;However this leads to the error that the pictures (picture.Pic1, picture.Pic2, picture.Pic3) could not be located. Is this because it is a random assignment rather than one set image? Are there any ways I could overcome this? Is there a way I could display Pic1, Pic2, Pic3 side by side on one instruction screen.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Many thanks, Naomi&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="28007"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;lt;picture pic_instr_L&amp;gt;&lt;br/&gt;&lt;strong&gt;/ items = picture.Pic1&lt;/strong&gt;&lt;br/&gt;/ position = (30%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture pic_instr_M&amp;gt;&lt;br/&gt;&lt;strong&gt;/items = picture.Pic2&lt;/strong&gt;&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture pic_instr_R&amp;gt;&lt;br/&gt;&lt;strong&gt;/items = picture.Pic3&lt;/strong&gt;&lt;br/&gt;/ position = (70%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;This is invalid syntax. The /items attribute must refer to an &amp;lt;item&amp;gt; element, not another &amp;lt;picture&amp;gt; element.&lt;br/&gt;&lt;br/&gt;I also don't understand what you're doing with that &amp;lt;counter&amp;gt;. The way you've set that up, it'll select a single random value over the course of the entire experiment. That is: Your three &amp;lt;picture&amp;gt; elements Pic1, Pic2, and Pic 3 will all display the same item, not three different items. What you'll want to do is probably something along the following lines:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ pic1_item = 1&lt;br/&gt;/ pic2_item = 1&lt;br/&gt;/ pic3_item = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list mylist&amp;gt;&lt;br/&gt;/ poolsize = 9&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ selectionmode = random&lt;br/&gt;/ replace = false&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ onexptbegin = [values.pic1_item = list.mylist.nextindex;&lt;br/&gt;values.pic2_item = list.mylist.nextindex;&lt;br/&gt;values.pic3_item = list.mylist.nextindex;&lt;br/&gt;]&lt;br/&gt;....&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;with&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic1&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;&lt;strong&gt;/select = values.pic1_item&lt;/strong&gt;&lt;br/&gt;/position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic2&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;&lt;strong&gt;/select = values.pic2_item&lt;/strong&gt;&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Pic3&amp;gt;&lt;br/&gt;/items = pictures&lt;br/&gt;&lt;strong&gt;/select = values.pic3_item&lt;/strong&gt;&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;and same for the picture elements you use during the instructions / demo trial:&lt;br/&gt;&lt;br/&gt;## instr_Picture&lt;br/&gt;&amp;lt;picture pic_instr_L&amp;gt;&lt;br/&gt;&lt;strong&gt;/items = pictures&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;/select = values.pic1_item&lt;/strong&gt;&lt;br/&gt;/ position = (30%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture pic_instr_M&amp;gt;&lt;br/&gt;&lt;strong&gt;/items = pictures&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;/select = values.pic2_item&lt;/strong&gt;&lt;br/&gt;/ position = (50%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&amp;lt;picture pic_instr_R&amp;gt;&lt;br/&gt;&lt;strong&gt;/items = pictures&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;/select = values.pic3_item&lt;/strong&gt;&lt;br/&gt;/ position = (70%, 35%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 18 Nov 2019 09:02:55 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>