﻿<?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  » Setting response value to stimulus presented</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 26 Sep 2026 13:18:48 GMT</lastBuildDate><ttl>20</ttl><item><title>Setting response value to stimulus presented</title><link>https://forums.millisecond.com/Topic15056.aspx</link><description>I've developed a task that has participants pick the picture, out of a grid of 9 pictures, that best represents their "real" self. Participants are therefore simply clicking on the picture/stimulus to make their response. I used the script from a another task (Visual Search task) that presents pictures in a 4x4 grid to create this task. &lt;br/&gt;&lt;br/&gt;My question: The script randomly assigns the stimuli to spots in the 3 x 3 grid, and the data tells me which spot the person picked (e.g. spot # 3 or 'distractor03'), however I'd like to know what stimulus appeared in that spot. In other words, I'd like to say "response = stimulus (e.g. picture #4.jpg) that was presented in the spot chosen". &lt;br/&gt;&lt;br/&gt;Thanks in advance,&amp;nbsp;&lt;br/&gt;Stéphane</description><pubDate>Mon, 24 Nov 2014 20:15:26 GMT</pubDate><dc:creator>sdandeneau</dc:creator></item><item><title>RE: Setting response value to stimulus presented</title><link>https://forums.millisecond.com/Topic15060.aspx</link><description>Wonderful... this works great!&lt;br/&gt;Thanks a lot!</description><pubDate>Mon, 24 Nov 2014 20:15:26 GMT</pubDate><dc:creator>sdandeneau</dc:creator></item><item><title>RE: Setting response value to stimulus presented</title><link>https://forums.millisecond.com/Topic15059.aspx</link><description>You retrieve it via the stimulus element's currentitem property. Going back to my original example:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-2=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ myvalue = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialend = [if (trial.mytrial.response == "a") values.myvalue = text.a.currentitem]&lt;br/&gt;/ ontrialend = [if (trial.mytrial.response == "b") values.myvalue = text.b.currentitem]&lt;br/&gt;/ ontrialend = [if (trial.mytrial.response == "c") values.myvalue = text.c.currentitem]&lt;br/&gt;/ stimulusframes = [1=a,b,c]&lt;br/&gt;/ validresponse = (a,b,c)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text a&amp;gt;&lt;br/&gt;/ items = ("A1", "A2")&lt;br/&gt;/ hposition = list.hpos.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text b&amp;gt;&lt;br/&gt;/ items = ("B1", "B2")&lt;br/&gt;/ hposition = list.hpos.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text c&amp;gt;&lt;br/&gt;/ items = ("C1", "C2")&lt;br/&gt;/ hposition = list.hpos.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list hpos&amp;gt;&lt;br/&gt;/ items = (35%, 50%, 65%)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [response latency values.myvalue]&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 24 Nov 2014 15:42:55 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Setting response value to stimulus presented</title><link>https://forums.millisecond.com/Topic15058.aspx</link><description>I meant to include the script in the original post but had problems with the upload.&amp;nbsp;&lt;br/&gt;Here is the dropbox link to the task and stimuli - please enter 3000 for subject number.&amp;nbsp;&lt;br/&gt;&lt;a href="https://www.dropbox.com/s/h1jh66q4a5dk3v7/GardnerMatrix.zip?dl=0"&gt;&lt;a href="https://www.dropbox.com/s/h1jh66q4a5dk3v7/GardnerMatrix.zip?dl=0"&gt;https://www.dropbox.com/s/h1jh66q4a5dk3v7/GardnerMatrix.zip?dl=0&lt;/a&gt;&lt;/a&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I didn't describe the script right... it does assign a position to stimuli, as you mention. However, I can't figure out how to get the stimuli that was associated to each "distractor" at each trial.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks!!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 24 Nov 2014 15:29:36 GMT</pubDate><dc:creator>sdandeneau</dc:creator></item><item><title>RE: Setting response value to stimulus presented</title><link>https://forums.millisecond.com/Topic15057.aspx</link><description>&amp;gt; The script randomly assigns the stimuli to spots in the 3 x 3 grid&lt;br/&gt;&lt;br/&gt;Instead of assigning stimuli to positions (as the above suggests), you should assign positions to stimuli. Example:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=a,b,c]&lt;br/&gt;/ validresponse = (a,b,c)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text a&amp;gt;&lt;br/&gt;/ items = ("A")&lt;br/&gt;/ hposition = list.hpos.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text b&amp;gt;&lt;br/&gt;/ items = ("B")&lt;br/&gt;/ hposition = list.hpos.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text c&amp;gt;&lt;br/&gt;/ items = ("C")&lt;br/&gt;/ hposition = list.hpos.nextvalue&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list hpos&amp;gt;&lt;br/&gt;/ items = (35%, 50%, 65%)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Then you have the information you want directly.&lt;br/&gt;</description><pubDate>Mon, 24 Nov 2014 14:44:06 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>