﻿<?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  » Recording data of stimuli presented from a list</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 05:43:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Recording data of stimuli presented from a list</title><link>https://forums.millisecond.com/Topic21824.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;My task presents one of three distractors on every trial retrieved from a list. This works well but I am struggling to record which stimulus has been presented on each trial. Currently the task records reaction time for each trial but I need to be able to match that with the distractor type. Any help would be appreciated! Even direction to other resources, I'm not sure how well i understand data recording and 'values' beyond what i've learnt from the online descriptions &amp;amp; simple demos. Relevant code posted below...&lt;br/&gt;&lt;br/&gt;&amp;lt;picture food&amp;gt;&lt;br/&gt;/ items = ("food1.png", "food2.png", "food3.png", "food4.png", "food5.png", "food6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nature&amp;gt;&lt;br/&gt;/ items = ("nature1.png", "nature2.png", "nature3.png", "nature4.png", "nature5.png", "nature6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture blank&amp;gt;&lt;br/&gt;/ items = ("blank.bmp")&lt;br/&gt;/ select =replace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature, picture.food, picture.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/distractor = list.Lowdistractor&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (date, time, group, subject, trialcode, blockcode, correct, stimulusitem, values.distractor)&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;Whole script is attached if needed, but obviously will not work without all the stimuli etc.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Jenny</description><pubDate>Thu, 10 Aug 2017 09:03:27 GMT</pubDate><dc:creator>jm560@sussex.ac.uk</dc:creator></item><item><title>RE: Recording data of stimuli presented from a list</title><link>https://forums.millisecond.com/Topic22258.aspx</link><description>&lt;div data-id="22248" class="if-quote-wrapper" unselectable="on" data-guid="1502381003589"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22248" 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="22248" 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="22248" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, August 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22248"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22242" class="if-quote-wrapper" unselectable="on" data-guid="1502381003589"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22242" 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="22242" 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="22242" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:jm560@sussex.ac.uk"&gt;jm560@sussex.ac.uk&lt;/a&gt; - Tuesday, August 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22242"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21835" class="if-quote-wrapper" unselectable="on" data-guid="1502381003589"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21835" 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="21835" 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="21835" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, June 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21835"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21824" class="if-quote-wrapper" unselectable="on" data-guid="1502381003589"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21824" 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="21824" 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="21824" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:jm560@sussex.ac.uk"&gt;jm560@sussex.ac.uk&lt;/a&gt; - Tuesday, June 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21824"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;My task presents one of three distractors on every trial retrieved from a list. This works well but I am struggling to record which stimulus has been presented on each trial. Currently the task records reaction time for each trial but I need to be able to match that with the distractor type. Any help would be appreciated! Even direction to other resources, I'm not sure how well i understand data recording and 'values' beyond what i've learnt from the online descriptions &amp;amp; simple demos. Relevant code posted below...&lt;br/&gt;&lt;br/&gt;&amp;lt;picture food&amp;gt;&lt;br/&gt;/ items = ("food1.png", "food2.png", "food3.png", "food4.png", "food5.png", "food6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nature&amp;gt;&lt;br/&gt;/ items = ("nature1.png", "nature2.png", "nature3.png", "nature4.png", "nature5.png", "nature6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture blank&amp;gt;&lt;br/&gt;/ items = ("blank.bmp")&lt;br/&gt;/ select =replace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature, picture.food, picture.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/distractor = list.Lowdistractor&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (date, time, group, subject, trialcode, blockcode, correct, stimulusitem, values.distractor)&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;Whole script is attached if needed, but obviously will not work without all the stimuli etc.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Jenny&lt;a class="if-quote-goto quote-link" href="#" data-id="21824"&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;values&amp;gt;&lt;br/&gt;&lt;strong&gt;/distractor = list.Lowdistractor&lt;/strong&gt;&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;^this does not make sense and will not work. list.lowdistractor returns nothing. Moreover, you're not updating the value anywhere, whereas you'll want to do that on a trial-by-trial basis. In other words, you'll want to do something like this if you want to capture which distractor &amp;lt;picture&amp;gt; element was selected on a given trial:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [values.distractor = list.Lowdistractor.currentvalue;]&lt;/strong&gt;&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21835"&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;Hi, this worked perfectly when I changed it but I think I may need help once more on this script! The script had before had 3 different stimulus categories which were selected from a list. See below&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature, picture.food, picture.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;I've had to change the script so that I can have different sizes for each image.&lt;br/&gt;&lt;br/&gt;I.e. Separate picture element for each stimulus image so I can change the size easily instead of having images from the same category in the same picture element like before.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nature5&amp;gt;&lt;br/&gt;/ items = ("nature5.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (1px * values.greenwidth * expressions.ratio_pxpermm, 1 px * values.greenheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Which means the list now looks like this&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature1, picture.nature2, picture.nature3, picture.nature4, picture.nature5, picture.nature6, picture.food1, picture.food2, picture.food3, picture.food4, picture.food5, picture.food6, shape.blank)&lt;br/&gt;/ itemprobabilities = (.0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667,.80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;This still works fine but I don't want to record each image individually. So I want to record the trials where nature1, 2, 3, 4, 5 and 6 are presented as a combined group I.e. Just an overall Nature category. The same for food. Is there a way of combining these for the data recording?&lt;br/&gt;&lt;br/&gt;I thought it might work to have a second&amp;nbsp;superordinate list but i can't get that to work either. I've copied what I tried below...&lt;br/&gt;&lt;br/&gt;&amp;lt;list nature&amp;gt;&lt;br/&gt;/ items = (picture.nature1, picture.nature2, picture.nature3, picture.nature4, picture.nature5, picture.nature6)&lt;br/&gt;/ itemprobabilities = (.166666666667, .166666666667, .166666666667, .166666666667, .166666666667, .166666666667)&lt;br/&gt;/ poolsize = 6&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list food&amp;gt;&lt;br/&gt;/ items = (picture.food1, picture.food2, picture.food3, picture.food4, picture.food5, picture.food6)&lt;br/&gt;/ itemprobabilities = (.166666666667, .166666666667, .166666666667, .166666666667, .166666666667, .166666666667)&lt;br/&gt;/ poolsize = 6&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (list.food, list.nature, shape.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;Any ideas would be greatly appreciated!&amp;nbsp;&lt;br/&gt;Thanks,&lt;br/&gt;Jenny&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22242"&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;It seems to me that you should be able to determine the category from the list item selected, store that in a value and then log that value to the data file. In essence:&lt;br/&gt;&lt;br/&gt;&amp;lt;list lowdistractor&amp;gt;&lt;br/&gt;/ items = (text.nature1, text.nature2, text.food1, text.food2)&lt;br/&gt;/ itemprobabilities = (0.1, 0.1, 0.4, 0.4)&lt;br/&gt;/ poolsize = 10&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.mytrial.insertstimulusframe(list.lowdistractor.nextvalue, 1)&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (contains(list.lowdistractor.currentvalue, "nature")) values.category = "nature";&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (contains(list.lowdistractor.currentvalue, "food")) values.category = "food";&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else values.category = "blank";&lt;br/&gt;]&lt;/strong&gt;&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-10 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text nature1&amp;gt;&lt;br/&gt;/ items = ("n1")&lt;br/&gt;/ size = (10%,10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text nature2&amp;gt;&lt;br/&gt;/ items = ("n2")&lt;br/&gt;/ size = (10%,10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text food1&amp;gt;&lt;br/&gt;/ items = ("f1")&lt;br/&gt;/ size = (10%,10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text food2&amp;gt;&lt;br/&gt;/ items = ("f2")&lt;br/&gt;/ size = (10%,10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ category = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subject trialnum trialcode list.lowdistractor.currentvalue &lt;strong&gt;values.category&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22248"&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;Thank you so much!</description><pubDate>Thu, 10 Aug 2017 09:03:27 GMT</pubDate><dc:creator>jm560@sussex.ac.uk</dc:creator></item><item><title>RE: Recording data of stimuli presented from a list</title><link>https://forums.millisecond.com/Topic22248.aspx</link><description>&lt;div data-id="22242" class="if-quote-wrapper" unselectable="on" data-guid="1502212575281"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22242" 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="22242" 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="22242" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:jm560@sussex.ac.uk"&gt;jm560@sussex.ac.uk&lt;/a&gt; - Tuesday, August 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22242"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21835" class="if-quote-wrapper" unselectable="on" data-guid="1502212575281"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21835" 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="21835" 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="21835" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, June 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21835"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21824" class="if-quote-wrapper" unselectable="on" data-guid="1502212575281"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21824" 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="21824" 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="21824" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:jm560@sussex.ac.uk"&gt;jm560@sussex.ac.uk&lt;/a&gt; - Tuesday, June 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21824"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;My task presents one of three distractors on every trial retrieved from a list. This works well but I am struggling to record which stimulus has been presented on each trial. Currently the task records reaction time for each trial but I need to be able to match that with the distractor type. Any help would be appreciated! Even direction to other resources, I'm not sure how well i understand data recording and 'values' beyond what i've learnt from the online descriptions &amp;amp; simple demos. Relevant code posted below...&lt;br/&gt;&lt;br/&gt;&amp;lt;picture food&amp;gt;&lt;br/&gt;/ items = ("food1.png", "food2.png", "food3.png", "food4.png", "food5.png", "food6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nature&amp;gt;&lt;br/&gt;/ items = ("nature1.png", "nature2.png", "nature3.png", "nature4.png", "nature5.png", "nature6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture blank&amp;gt;&lt;br/&gt;/ items = ("blank.bmp")&lt;br/&gt;/ select =replace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature, picture.food, picture.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/distractor = list.Lowdistractor&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (date, time, group, subject, trialcode, blockcode, correct, stimulusitem, values.distractor)&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;Whole script is attached if needed, but obviously will not work without all the stimuli etc.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Jenny&lt;a class="if-quote-goto quote-link" href="#" data-id="21824"&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;values&amp;gt;&lt;br/&gt;&lt;strong&gt;/distractor = list.Lowdistractor&lt;/strong&gt;&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;^this does not make sense and will not work. list.lowdistractor returns nothing. Moreover, you're not updating the value anywhere, whereas you'll want to do that on a trial-by-trial basis. In other words, you'll want to do something like this if you want to capture which distractor &amp;lt;picture&amp;gt; element was selected on a given trial:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [values.distractor = list.Lowdistractor.currentvalue;]&lt;/strong&gt;&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21835"&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;Hi, this worked perfectly when I changed it but I think I may need help once more on this script! The script had before had 3 different stimulus categories which were selected from a list. See below&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature, picture.food, picture.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;I've had to change the script so that I can have different sizes for each image.&lt;br/&gt;&lt;br/&gt;I.e. Separate picture element for each stimulus image so I can change the size easily instead of having images from the same category in the same picture element like before.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nature5&amp;gt;&lt;br/&gt;/ items = ("nature5.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (1px * values.greenwidth * expressions.ratio_pxpermm, 1 px * values.greenheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Which means the list now looks like this&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature1, picture.nature2, picture.nature3, picture.nature4, picture.nature5, picture.nature6, picture.food1, picture.food2, picture.food3, picture.food4, picture.food5, picture.food6, shape.blank)&lt;br/&gt;/ itemprobabilities = (.0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667,.80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;This still works fine but I don't want to record each image individually. So I want to record the trials where nature1, 2, 3, 4, 5 and 6 are presented as a combined group I.e. Just an overall Nature category. The same for food. Is there a way of combining these for the data recording?&lt;br/&gt;&lt;br/&gt;I thought it might work to have a second&amp;nbsp;superordinate list but i can't get that to work either. I've copied what I tried below...&lt;br/&gt;&lt;br/&gt;&amp;lt;list nature&amp;gt;&lt;br/&gt;/ items = (picture.nature1, picture.nature2, picture.nature3, picture.nature4, picture.nature5, picture.nature6)&lt;br/&gt;/ itemprobabilities = (.166666666667, .166666666667, .166666666667, .166666666667, .166666666667, .166666666667)&lt;br/&gt;/ poolsize = 6&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list food&amp;gt;&lt;br/&gt;/ items = (picture.food1, picture.food2, picture.food3, picture.food4, picture.food5, picture.food6)&lt;br/&gt;/ itemprobabilities = (.166666666667, .166666666667, .166666666667, .166666666667, .166666666667, .166666666667)&lt;br/&gt;/ poolsize = 6&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (list.food, list.nature, shape.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;Any ideas would be greatly appreciated!&amp;nbsp;&lt;br/&gt;Thanks,&lt;br/&gt;Jenny&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22242"&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;It seems to me that you should be able to determine the category from the list item selected, store that in a value and then log that value to the data file. In essence:&lt;br/&gt;&lt;br/&gt;&amp;lt;list lowdistractor&amp;gt;&lt;br/&gt;/ items = (text.nature1, text.nature2, text.food1, text.food2)&lt;br/&gt;/ itemprobabilities = (0.1, 0.1, 0.4, 0.4)&lt;br/&gt;/ poolsize = 10&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.mytrial.insertstimulusframe(list.lowdistractor.nextvalue, 1)&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (contains(list.lowdistractor.currentvalue, "nature")) values.category = "nature";&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (contains(list.lowdistractor.currentvalue, "food")) values.category = "food";&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else values.category = "blank";&lt;br/&gt;]&lt;/strong&gt;&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-10 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text nature1&amp;gt;&lt;br/&gt;/ items = ("n1")&lt;br/&gt;/ size = (10%,10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text nature2&amp;gt;&lt;br/&gt;/ items = ("n2")&lt;br/&gt;/ size = (10%,10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text food1&amp;gt;&lt;br/&gt;/ items = ("f1")&lt;br/&gt;/ size = (10%,10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text food2&amp;gt;&lt;br/&gt;/ items = ("f2")&lt;br/&gt;/ size = (10%,10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ category = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subject trialnum trialcode list.lowdistractor.currentvalue &lt;strong&gt;values.category&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 08 Aug 2017 11:08:59 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Recording data of stimuli presented from a list</title><link>https://forums.millisecond.com/Topic22242.aspx</link><description>&lt;div data-id="21835" class="if-quote-wrapper" unselectable="on" data-guid="1502205524886"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21835" 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="21835" 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="21835" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, June 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21835"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21824" class="if-quote-wrapper" unselectable="on" data-guid="1502205524886"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21824" 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="21824" 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="21824" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:jm560@sussex.ac.uk"&gt;jm560@sussex.ac.uk&lt;/a&gt; - Tuesday, June 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21824"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;My task presents one of three distractors on every trial retrieved from a list. This works well but I am struggling to record which stimulus has been presented on each trial. Currently the task records reaction time for each trial but I need to be able to match that with the distractor type. Any help would be appreciated! Even direction to other resources, I'm not sure how well i understand data recording and 'values' beyond what i've learnt from the online descriptions &amp;amp; simple demos. Relevant code posted below...&lt;br/&gt;&lt;br/&gt;&amp;lt;picture food&amp;gt;&lt;br/&gt;/ items = ("food1.png", "food2.png", "food3.png", "food4.png", "food5.png", "food6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nature&amp;gt;&lt;br/&gt;/ items = ("nature1.png", "nature2.png", "nature3.png", "nature4.png", "nature5.png", "nature6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture blank&amp;gt;&lt;br/&gt;/ items = ("blank.bmp")&lt;br/&gt;/ select =replace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature, picture.food, picture.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/distractor = list.Lowdistractor&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (date, time, group, subject, trialcode, blockcode, correct, stimulusitem, values.distractor)&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;Whole script is attached if needed, but obviously will not work without all the stimuli etc.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Jenny&lt;a class="if-quote-goto quote-link" href="#" data-id="21824"&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;values&amp;gt;&lt;br/&gt;&lt;strong&gt;/distractor = list.Lowdistractor&lt;/strong&gt;&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;^this does not make sense and will not work. list.lowdistractor returns nothing. Moreover, you're not updating the value anywhere, whereas you'll want to do that on a trial-by-trial basis. In other words, you'll want to do something like this if you want to capture which distractor &amp;lt;picture&amp;gt; element was selected on a given trial:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [values.distractor = list.Lowdistractor.currentvalue;]&lt;/strong&gt;&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21835"&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;Hi, this worked perfectly when I changed it but I think I may need help once more on this script! The script had before had 3 different stimulus categories which were selected from a list. See below&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature, picture.food, picture.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;I've had to change the script so that I can have different sizes for each image.&lt;br/&gt;&lt;br/&gt;I.e. Separate picture element for each stimulus image so I can change the size easily instead of having images from the same category in the same picture element like before.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nature5&amp;gt;&lt;br/&gt;/ items = ("nature5.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (1px * values.greenwidth * expressions.ratio_pxpermm, 1 px * values.greenheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Which means the list now looks like this&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature1, picture.nature2, picture.nature3, picture.nature4, picture.nature5, picture.nature6, picture.food1, picture.food2, picture.food3, picture.food4, picture.food5, picture.food6, shape.blank)&lt;br/&gt;/ itemprobabilities = (.0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667, .0166666666667,.80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;This still works fine but I don't want to record each image individually. So I want to record the trials where nature1, 2, 3, 4, 5 and 6 are presented as a combined group I.e. Just an overall Nature category. The same for food. Is there a way of combining these for the data recording?&lt;br/&gt;&lt;br/&gt;I thought it might work to have a second&amp;nbsp;superordinate list but i can't get that to work either. I've copied what I tried below...&lt;br/&gt;&lt;br/&gt;&amp;lt;list nature&amp;gt;&lt;br/&gt;/ items = (picture.nature1, picture.nature2, picture.nature3, picture.nature4, picture.nature5, picture.nature6)&lt;br/&gt;/ itemprobabilities = (.166666666667, .166666666667, .166666666667, .166666666667, .166666666667, .166666666667)&lt;br/&gt;/ poolsize = 6&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list food&amp;gt;&lt;br/&gt;/ items = (picture.food1, picture.food2, picture.food3, picture.food4, picture.food5, picture.food6)&lt;br/&gt;/ itemprobabilities = (.166666666667, .166666666667, .166666666667, .166666666667, .166666666667, .166666666667)&lt;br/&gt;/ poolsize = 6&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (list.food, list.nature, shape.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;Any ideas would be greatly appreciated!&amp;nbsp;&lt;br/&gt;Thanks,&lt;br/&gt;Jenny&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 08 Aug 2017 08:37:05 GMT</pubDate><dc:creator>jm560@sussex.ac.uk</dc:creator></item><item><title>RE: Recording data of stimuli presented from a list</title><link>https://forums.millisecond.com/Topic21835.aspx</link><description>&lt;div data-id="21824" class="if-quote-wrapper" unselectable="on" data-guid="1497369784573"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21824" 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="21824" 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="21824" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:jm560@sussex.ac.uk"&gt;jm560@sussex.ac.uk&lt;/a&gt; - Tuesday, June 13, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21824"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;My task presents one of three distractors on every trial retrieved from a list. This works well but I am struggling to record which stimulus has been presented on each trial. Currently the task records reaction time for each trial but I need to be able to match that with the distractor type. Any help would be appreciated! Even direction to other resources, I'm not sure how well i understand data recording and 'values' beyond what i've learnt from the online descriptions &amp;amp; simple demos. Relevant code posted below...&lt;br/&gt;&lt;br/&gt;&amp;lt;picture food&amp;gt;&lt;br/&gt;/ items = ("food1.png", "food2.png", "food3.png", "food4.png", "food5.png", "food6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture nature&amp;gt;&lt;br/&gt;/ items = ("nature1.png", "nature2.png", "nature3.png", "nature4.png", "nature5.png", "nature6.png")&lt;br/&gt;/ select = noreplace&lt;br/&gt;/ size = (1px * values.imagewidth * expressions.ratio_pxpermm, 1 px * values.imageheight * expressions.ratio_pxpermm)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture blank&amp;gt;&lt;br/&gt;/ items = ("blank.bmp")&lt;br/&gt;/ select =replace&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list Lowdistractor&amp;gt;&lt;br/&gt;/ items = (picture.nature, picture.food, picture.blank)&lt;br/&gt;/ itemprobabilities = (.10, .10, .80)&lt;br/&gt;/ poolsize = 60&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/distractor = list.Lowdistractor&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (date, time, group, subject, trialcode, blockcode, correct, stimulusitem, values.distractor)&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;Whole script is attached if needed, but obviously will not work without all the stimuli etc.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Jenny&lt;a class="if-quote-goto quote-link" href="#" data-id="21824"&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;values&amp;gt;&lt;br/&gt;&lt;strong&gt;/distractor = list.Lowdistractor&lt;/strong&gt;&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;^this does not make sense and will not work. list.lowdistractor returns nothing. Moreover, you're not updating the value anywhere, whereas you'll want to do that on a trial-by-trial basis. In other words, you'll want to do something like this if you want to capture which distractor &amp;lt;picture&amp;gt; element was selected on a given trial:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lowX1&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.lowX1.insertstimulustime(list.Lowdistractor.nextvalue,500);]&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [values.distractor = list.Lowdistractor.currentvalue;]&lt;/strong&gt;&lt;br/&gt;/ ontrialend = [trial.lowX1.resetstimulusframes(); ]&lt;br/&gt;/ stimulustimes = [1=fixation; 500=sequence (fixationcover, XLD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler); 600=eraseblank]&lt;br/&gt;/ validresponse = ("0", "2")&lt;br/&gt;/ correctresponse = ("0")&lt;br/&gt;/ response = timeout(2000)&lt;br/&gt;/ beginresponsetime = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Tue, 13 Jun 2017 09:08:13 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>