﻿<?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  » Storing response times</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 16 Sep 2026 22:40:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Storing response times</title><link>https://forums.millisecond.com/Topic21665.aspx</link><description>Dear Inquisit,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;A part of my experiment requires storing response times to a stimuli (i.e., a reaction time) to use later for stimuli presentation times. Specifically, there'll be 20 reaction time trials, and I wish to be able to use this time between stimuli onset and response time as a presentation time of the same stimuli in different trials later on. Obviously, there is the method of creating each trial individually, and storing their response times within a global variable (value), and then for the later trials use a list to draw those values for presentation times, but I feel this is quite an inelegant/poor solution. To clarify, my experiment requires each specific reaction times (20 in total), so I can't simply calculate an average and use that. If there was a better way to do this that would be much appreciated! &amp;nbsp;&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh</description><pubDate>Tue, 30 May 2017 04:54:57 GMT</pubDate><dc:creator>Psych_Josh</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21715.aspx</link><description>Hi Dave, many thanks for your assistance once again!&lt;br/&gt;&lt;br/&gt;Josh</description><pubDate>Tue, 30 May 2017 04:54:57 GMT</pubDate><dc:creator>Psych_Josh</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21689.aspx</link><description>&lt;div data-id="21687" class="if-quote-wrapper" unselectable="on" data-guid="1495729699438"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21687" 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="21687" 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="21687" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21687"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21685" class="if-quote-wrapper" unselectable="on" data-guid="1495729699438"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21685" 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="21685" 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="21685" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, May 25, 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-21685"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21684" class="if-quote-wrapper" unselectable="on" data-guid="1495729699438"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21684" 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="21684" 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="21684" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21684"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21683" class="if-quote-wrapper" unselectable="on" data-guid="1495729699438"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21683" 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="21683" 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="21683" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, May 25, 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-21683"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21682" class="if-quote-wrapper" unselectable="on" data-guid="1495729699438"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21682" 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="21682" 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="21682" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21682"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks for your help.&lt;br/&gt;&lt;br/&gt;When testing it out, the stimuli times presented in the the second set of trials don't appear to correspond with my reaction times (which I deliberately delayed) - the stimuli appear immediately without any delay. So, I'm probably making an error somewhere. Just clarify, the stimulus participants would respond to is the same stimulus across the 20 trials. Here's what I have:&lt;br/&gt;&lt;br/&gt;(the '500' is a condition label)&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Stimulus&lt;br/&gt;********&lt;br/&gt;&amp;lt;item Rocket_Double&amp;gt;&lt;br/&gt;/1 = "Rocket_Double.jpeg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Rocket_Double&amp;gt;&lt;br/&gt;/items = Rocket_Double&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Lists&lt;br/&gt;********&lt;br/&gt;&amp;lt;list itemnumbers500&amp;gt;&lt;br/&gt;/poolsize = 20&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list latencies500&amp;gt;&lt;br/&gt;/items = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) - 20 0s for the 20 different&amp;nbsp;&lt;br/&gt;/selectionmode = values.itemnumber500&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Values&lt;br/&gt;*******&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/itemnumber500 = 1&lt;br/&gt;/offset = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;First set of trials where RTs are collected&lt;br/&gt;*******&lt;br/&gt;10 trials from:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfpracrocket900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfpracrocket900.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfpracrocket900.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfpracrocket900.response == 16) trial.selfprac900 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.selfprac900error]&lt;br/&gt;/ontrialend = [trial.selfpracrocket900.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies900.setitem(trial.selfpracrocket900.latency, values.itemnumber900)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials from:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfrocket500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.selfpracrocket500.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Second set of trials where RTs are used as onset time for the same stimulus (an initial stimulus is presented first after 500ms, so the stimulus in question would need occur at RT + 500)&lt;br/&gt;*******&lt;br/&gt;&lt;br/&gt;10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex; values.offset = list.latencies900.nextvalue + 900]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.launch_b, values.offset + 900)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 900]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac900.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac900.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac900]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Blocks (contains trials which I do not want to take RTs from but included here for whole picture)&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials = [1-20 = noreplace(selfpracclick500, otherpracclick500); 21-40 = noreplace(selfclick500, trial.otherclick500)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block baseline&amp;gt;&lt;br/&gt;/trials = [1-10 = noreplace(baselineprac500); 11-20 = noreplace(baseline500)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = experiment; 2 = baseline]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;I hope that's clear enough; apologises if not, and sorry for most likely making an error somewhere!&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21682"&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;gt; the stimuli appear immediately without any delay.&lt;br/&gt;&lt;br/&gt;Which stimuli? Please refer to them as exactly as named in the code you posted. And please spell out precisely when which stimulus is supposed to be displayed.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21683"&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 Dave,&lt;br/&gt;&lt;br/&gt;Pardon my lack of specificity.&lt;br/&gt;&lt;br/&gt;The stimuli I'm referring to is:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;i.e., I need picture.rocket_b2 to be displayed (in addition to the 500ms) after one of the twenty stored reaction times to the stimulus picture.rocket_double. &lt;br/&gt;The sequence of these events should be: 1ms = fixation cross ('+'), 500ms = rocket_b, then the stimuli in question, rocket_b2, after one of the stored reaction times.&lt;br/&gt;&lt;br/&gt;When I say it is appearing immediately, I mean that rocket_b2 appears after 500ms without rocket_b appearing.&lt;br/&gt;&lt;br/&gt;I hope this helps!&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;a class="if-quote-goto quote-link" href="#" data-id="21684"&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;Why is &amp;lt;trial &lt;strong&gt;selfrocket500&lt;/strong&gt;&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;selfrocket500&lt;/strong&gt;&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.&lt;strong&gt;selfpracrocket500&lt;/strong&gt;.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;inserting the latency from an entirely different &amp;lt;trial&amp;gt; element -- &amp;lt;trial self&lt;strong&gt;prac&lt;/strong&gt;rocket500&amp;gt;?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21685"&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 Dave,&lt;br/&gt;&lt;br/&gt;My apologies, that was an error (the issue still occurs after fixing it).&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;a class="if-quote-goto quote-link" href="#" data-id="21687"&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;I've stripped down the code you posted to something runable:&lt;br/&gt;********&lt;br/&gt;Stimulus&lt;br/&gt;********&lt;br/&gt;&amp;lt;item Rocket_Double&amp;gt;&lt;br/&gt;/1 = "Rocket_Double.jpeg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Rocket_Double&amp;gt;&lt;br/&gt;/items = Rocket_Double&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text cross&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text rocket_b&amp;gt;&lt;br/&gt;/ items = ("rocket_b")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text rocket_b2&amp;gt;&lt;br/&gt;/ items = ("rocket_b2")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text launch_b&amp;gt;&lt;br/&gt;/ items = ("launch_b")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Lists&lt;br/&gt;********&lt;br/&gt;&amp;lt;list itemnumbers500&amp;gt;&lt;br/&gt;/poolsize = 20&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list latencies500&amp;gt;&lt;br/&gt;/items = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)&lt;br/&gt;/selectionmode = values.itemnumber500&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list nexttrial&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Values&lt;br/&gt;*******&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/itemnumber500 = 1&lt;br/&gt;/offset = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;First set of trials where RTs are collected&lt;br/&gt;*******&lt;br/&gt;10 trials from: &lt;br/&gt;And 10 trials from:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfrocket500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(text.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes()]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.selfrocket500.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Second set of trials where RTs are used as onset time for the same stimulus (an initial stimulus is presented first after 500ms, so the stimulus in question would need occur at RT + 500)&lt;br/&gt;*******&lt;br/&gt;&lt;br/&gt;10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross, debug; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(text.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(text.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes()]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Blocks (contains trials which I do not want to take RTs from but included here for whole picture)&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials = [1-20 = selfrocket500]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block baseline&amp;gt;&lt;br/&gt;/trials = [1-20 = baselineprac500]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = experiment; 2 = baseline]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text debug&amp;gt;&lt;br/&gt;/ items = ("Offset: &amp;lt;%values.offset%&amp;gt;")&lt;br/&gt;/ position = (50%, 10%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;It works just fine for me.&lt;br/&gt;</description><pubDate>Thu, 25 May 2017 09:29:02 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21687.aspx</link><description>&lt;div data-id="21685" class="if-quote-wrapper" unselectable="on" data-guid="1495729467173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21685" 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="21685" 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="21685" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, May 25, 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-21685"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21684" class="if-quote-wrapper" unselectable="on" data-guid="1495729467173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21684" 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="21684" 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="21684" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21684"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21683" class="if-quote-wrapper" unselectable="on" data-guid="1495729467173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21683" 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="21683" 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="21683" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, May 25, 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-21683"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21682" class="if-quote-wrapper" unselectable="on" data-guid="1495729467173"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21682" 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="21682" 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="21682" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21682"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks for your help.&lt;br/&gt;&lt;br/&gt;When testing it out, the stimuli times presented in the the second set of trials don't appear to correspond with my reaction times (which I deliberately delayed) - the stimuli appear immediately without any delay. So, I'm probably making an error somewhere. Just clarify, the stimulus participants would respond to is the same stimulus across the 20 trials. Here's what I have:&lt;br/&gt;&lt;br/&gt;(the '500' is a condition label)&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Stimulus&lt;br/&gt;********&lt;br/&gt;&amp;lt;item Rocket_Double&amp;gt;&lt;br/&gt;/1 = "Rocket_Double.jpeg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Rocket_Double&amp;gt;&lt;br/&gt;/items = Rocket_Double&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Lists&lt;br/&gt;********&lt;br/&gt;&amp;lt;list itemnumbers500&amp;gt;&lt;br/&gt;/poolsize = 20&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list latencies500&amp;gt;&lt;br/&gt;/items = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) - 20 0s for the 20 different&amp;nbsp;&lt;br/&gt;/selectionmode = values.itemnumber500&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Values&lt;br/&gt;*******&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/itemnumber500 = 1&lt;br/&gt;/offset = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;First set of trials where RTs are collected&lt;br/&gt;*******&lt;br/&gt;10 trials from:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfpracrocket900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfpracrocket900.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfpracrocket900.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfpracrocket900.response == 16) trial.selfprac900 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.selfprac900error]&lt;br/&gt;/ontrialend = [trial.selfpracrocket900.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies900.setitem(trial.selfpracrocket900.latency, values.itemnumber900)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials from:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfrocket500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.selfpracrocket500.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Second set of trials where RTs are used as onset time for the same stimulus (an initial stimulus is presented first after 500ms, so the stimulus in question would need occur at RT + 500)&lt;br/&gt;*******&lt;br/&gt;&lt;br/&gt;10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex; values.offset = list.latencies900.nextvalue + 900]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.launch_b, values.offset + 900)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 900]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac900.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac900.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac900]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Blocks (contains trials which I do not want to take RTs from but included here for whole picture)&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials = [1-20 = noreplace(selfpracclick500, otherpracclick500); 21-40 = noreplace(selfclick500, trial.otherclick500)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block baseline&amp;gt;&lt;br/&gt;/trials = [1-10 = noreplace(baselineprac500); 11-20 = noreplace(baseline500)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = experiment; 2 = baseline]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;I hope that's clear enough; apologises if not, and sorry for most likely making an error somewhere!&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21682"&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;gt; the stimuli appear immediately without any delay.&lt;br/&gt;&lt;br/&gt;Which stimuli? Please refer to them as exactly as named in the code you posted. And please spell out precisely when which stimulus is supposed to be displayed.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21683"&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 Dave,&lt;br/&gt;&lt;br/&gt;Pardon my lack of specificity.&lt;br/&gt;&lt;br/&gt;The stimuli I'm referring to is:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;i.e., I need picture.rocket_b2 to be displayed (in addition to the 500ms) after one of the twenty stored reaction times to the stimulus picture.rocket_double. &lt;br/&gt;The sequence of these events should be: 1ms = fixation cross ('+'), 500ms = rocket_b, then the stimuli in question, rocket_b2, after one of the stored reaction times.&lt;br/&gt;&lt;br/&gt;When I say it is appearing immediately, I mean that rocket_b2 appears after 500ms without rocket_b appearing.&lt;br/&gt;&lt;br/&gt;I hope this helps!&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;a class="if-quote-goto quote-link" href="#" data-id="21684"&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;Why is &amp;lt;trial &lt;strong&gt;selfrocket500&lt;/strong&gt;&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;selfrocket500&lt;/strong&gt;&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.&lt;strong&gt;selfpracrocket500&lt;/strong&gt;.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;inserting the latency from an entirely different &amp;lt;trial&amp;gt; element -- &amp;lt;trial self&lt;strong&gt;prac&lt;/strong&gt;rocket500&amp;gt;?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21685"&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 Dave,&lt;br/&gt;&lt;br/&gt;My apologies, that was an error (the issue still occurs after fixing it).&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh</description><pubDate>Thu, 25 May 2017 09:25:40 GMT</pubDate><dc:creator>Psych_Josh</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21685.aspx</link><description>&lt;div data-id="21684" class="if-quote-wrapper" unselectable="on" data-guid="1495728850495"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21684" 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="21684" 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="21684" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21684"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21683" class="if-quote-wrapper" unselectable="on" data-guid="1495728850495"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21683" 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="21683" 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="21683" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, May 25, 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-21683"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21682" class="if-quote-wrapper" unselectable="on" data-guid="1495728850495"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21682" 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="21682" 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="21682" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21682"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks for your help.&lt;br/&gt;&lt;br/&gt;When testing it out, the stimuli times presented in the the second set of trials don't appear to correspond with my reaction times (which I deliberately delayed) - the stimuli appear immediately without any delay. So, I'm probably making an error somewhere. Just clarify, the stimulus participants would respond to is the same stimulus across the 20 trials. Here's what I have:&lt;br/&gt;&lt;br/&gt;(the '500' is a condition label)&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Stimulus&lt;br/&gt;********&lt;br/&gt;&amp;lt;item Rocket_Double&amp;gt;&lt;br/&gt;/1 = "Rocket_Double.jpeg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Rocket_Double&amp;gt;&lt;br/&gt;/items = Rocket_Double&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Lists&lt;br/&gt;********&lt;br/&gt;&amp;lt;list itemnumbers500&amp;gt;&lt;br/&gt;/poolsize = 20&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list latencies500&amp;gt;&lt;br/&gt;/items = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) - 20 0s for the 20 different&amp;nbsp;&lt;br/&gt;/selectionmode = values.itemnumber500&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Values&lt;br/&gt;*******&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/itemnumber500 = 1&lt;br/&gt;/offset = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;First set of trials where RTs are collected&lt;br/&gt;*******&lt;br/&gt;10 trials from:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfpracrocket900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfpracrocket900.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfpracrocket900.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfpracrocket900.response == 16) trial.selfprac900 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.selfprac900error]&lt;br/&gt;/ontrialend = [trial.selfpracrocket900.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies900.setitem(trial.selfpracrocket900.latency, values.itemnumber900)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials from:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfrocket500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.selfpracrocket500.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Second set of trials where RTs are used as onset time for the same stimulus (an initial stimulus is presented first after 500ms, so the stimulus in question would need occur at RT + 500)&lt;br/&gt;*******&lt;br/&gt;&lt;br/&gt;10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex; values.offset = list.latencies900.nextvalue + 900]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.launch_b, values.offset + 900)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 900]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac900.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac900.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac900]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Blocks (contains trials which I do not want to take RTs from but included here for whole picture)&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials = [1-20 = noreplace(selfpracclick500, otherpracclick500); 21-40 = noreplace(selfclick500, trial.otherclick500)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block baseline&amp;gt;&lt;br/&gt;/trials = [1-10 = noreplace(baselineprac500); 11-20 = noreplace(baseline500)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = experiment; 2 = baseline]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;I hope that's clear enough; apologises if not, and sorry for most likely making an error somewhere!&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21682"&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;gt; the stimuli appear immediately without any delay.&lt;br/&gt;&lt;br/&gt;Which stimuli? Please refer to them as exactly as named in the code you posted. And please spell out precisely when which stimulus is supposed to be displayed.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21683"&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 Dave,&lt;br/&gt;&lt;br/&gt;Pardon my lack of specificity.&lt;br/&gt;&lt;br/&gt;The stimuli I'm referring to is:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;i.e., I need picture.rocket_b2 to be displayed (in addition to the 500ms) after one of the twenty stored reaction times to the stimulus picture.rocket_double. &lt;br/&gt;The sequence of these events should be: 1ms = fixation cross ('+'), 500ms = rocket_b, then the stimuli in question, rocket_b2, after one of the stored reaction times.&lt;br/&gt;&lt;br/&gt;When I say it is appearing immediately, I mean that rocket_b2 appears after 500ms without rocket_b appearing.&lt;br/&gt;&lt;br/&gt;I hope this helps!&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;a class="if-quote-goto quote-link" href="#" data-id="21684"&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;Why is &amp;lt;trial &lt;strong&gt;selfrocket500&lt;/strong&gt;&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;selfrocket500&lt;/strong&gt;&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.&lt;strong&gt;selfpracrocket500&lt;/strong&gt;.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;inserting the latency from an entirely different &amp;lt;trial&amp;gt; element -- &amp;lt;trial self&lt;strong&gt;prac&lt;/strong&gt;rocket500&amp;gt;?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 25 May 2017 09:20:24 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21684.aspx</link><description>&lt;div data-id="21683" class="if-quote-wrapper" unselectable="on" data-guid="1495726931484"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21683" 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="21683" 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="21683" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, May 25, 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-21683"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21682" class="if-quote-wrapper" unselectable="on" data-guid="1495726931484"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21682" 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="21682" 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="21682" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21682"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks for your help.&lt;br/&gt;&lt;br/&gt;When testing it out, the stimuli times presented in the the second set of trials don't appear to correspond with my reaction times (which I deliberately delayed) - the stimuli appear immediately without any delay. So, I'm probably making an error somewhere. Just clarify, the stimulus participants would respond to is the same stimulus across the 20 trials. Here's what I have:&lt;br/&gt;&lt;br/&gt;(the '500' is a condition label)&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Stimulus&lt;br/&gt;********&lt;br/&gt;&amp;lt;item Rocket_Double&amp;gt;&lt;br/&gt;/1 = "Rocket_Double.jpeg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Rocket_Double&amp;gt;&lt;br/&gt;/items = Rocket_Double&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Lists&lt;br/&gt;********&lt;br/&gt;&amp;lt;list itemnumbers500&amp;gt;&lt;br/&gt;/poolsize = 20&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list latencies500&amp;gt;&lt;br/&gt;/items = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) - 20 0s for the 20 different&amp;nbsp;&lt;br/&gt;/selectionmode = values.itemnumber500&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Values&lt;br/&gt;*******&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/itemnumber500 = 1&lt;br/&gt;/offset = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;First set of trials where RTs are collected&lt;br/&gt;*******&lt;br/&gt;10 trials from:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfpracrocket900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfpracrocket900.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfpracrocket900.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfpracrocket900.response == 16) trial.selfprac900 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.selfprac900error]&lt;br/&gt;/ontrialend = [trial.selfpracrocket900.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies900.setitem(trial.selfpracrocket900.latency, values.itemnumber900)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials from:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfrocket500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.selfpracrocket500.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Second set of trials where RTs are used as onset time for the same stimulus (an initial stimulus is presented first after 500ms, so the stimulus in question would need occur at RT + 500)&lt;br/&gt;*******&lt;br/&gt;&lt;br/&gt;10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex; values.offset = list.latencies900.nextvalue + 900]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.launch_b, values.offset + 900)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 900]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac900.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac900.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac900]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Blocks (contains trials which I do not want to take RTs from but included here for whole picture)&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials = [1-20 = noreplace(selfpracclick500, otherpracclick500); 21-40 = noreplace(selfclick500, trial.otherclick500)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block baseline&amp;gt;&lt;br/&gt;/trials = [1-10 = noreplace(baselineprac500); 11-20 = noreplace(baseline500)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = experiment; 2 = baseline]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;I hope that's clear enough; apologises if not, and sorry for most likely making an error somewhere!&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21682"&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;gt; the stimuli appear immediately without any delay.&lt;br/&gt;&lt;br/&gt;Which stimuli? Please refer to them as exactly as named in the code you posted. And please spell out precisely when which stimulus is supposed to be displayed.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21683"&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 Dave,&lt;br/&gt;&lt;br/&gt;Pardon my lack of specificity.&lt;br/&gt;&lt;br/&gt;The stimuli I'm referring to is:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;i.e., I need picture.rocket_b2 to be displayed (in addition to the 500ms) after one of the twenty stored reaction times to the stimulus picture.rocket_double. &lt;br/&gt;The sequence of these events should be: 1ms = fixation cross ('+'), 500ms = rocket_b, then the stimuli in question, rocket_b2, after one of the stored reaction times.&lt;br/&gt;&lt;br/&gt;When I say it is appearing immediately, I mean that rocket_b2 appears after 500ms without rocket_b appearing.&lt;br/&gt;&lt;br/&gt;I hope this helps!&lt;br/&gt;Many thanks,&lt;br/&gt;Josh</description><pubDate>Thu, 25 May 2017 08:51:59 GMT</pubDate><dc:creator>Psych_Josh</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21683.aspx</link><description>&lt;div data-id="21682" class="if-quote-wrapper" unselectable="on" data-guid="1495726661776"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21682" 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="21682" 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="21682" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Thursday, May 25, 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-21682"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks for your help.&lt;br/&gt;&lt;br/&gt;When testing it out, the stimuli times presented in the the second set of trials don't appear to correspond with my reaction times (which I deliberately delayed) - the stimuli appear immediately without any delay. So, I'm probably making an error somewhere. Just clarify, the stimulus participants would respond to is the same stimulus across the 20 trials. Here's what I have:&lt;br/&gt;&lt;br/&gt;(the '500' is a condition label)&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Stimulus&lt;br/&gt;********&lt;br/&gt;&amp;lt;item Rocket_Double&amp;gt;&lt;br/&gt;/1 = "Rocket_Double.jpeg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Rocket_Double&amp;gt;&lt;br/&gt;/items = Rocket_Double&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Lists&lt;br/&gt;********&lt;br/&gt;&amp;lt;list itemnumbers500&amp;gt;&lt;br/&gt;/poolsize = 20&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list latencies500&amp;gt;&lt;br/&gt;/items = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) - 20 0s for the 20 different&amp;nbsp;&lt;br/&gt;/selectionmode = values.itemnumber500&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Values&lt;br/&gt;*******&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/itemnumber500 = 1&lt;br/&gt;/offset = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;First set of trials where RTs are collected&lt;br/&gt;*******&lt;br/&gt;10 trials from:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfpracrocket900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfpracrocket900.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfpracrocket900.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfpracrocket900.response == 16) trial.selfprac900 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.selfprac900error]&lt;br/&gt;/ontrialend = [trial.selfpracrocket900.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies900.setitem(trial.selfpracrocket900.latency, values.itemnumber900)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials from:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfrocket500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.selfpracrocket500.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Second set of trials where RTs are used as onset time for the same stimulus (an initial stimulus is presented first after 500ms, so the stimulus in question would need occur at RT + 500)&lt;br/&gt;*******&lt;br/&gt;&lt;br/&gt;10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex; values.offset = list.latencies900.nextvalue + 900]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.launch_b, values.offset + 900)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 900]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac900.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac900.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac900]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Blocks (contains trials which I do not want to take RTs from but included here for whole picture)&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials = [1-20 = noreplace(selfpracclick500, otherpracclick500); 21-40 = noreplace(selfclick500, trial.otherclick500)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block baseline&amp;gt;&lt;br/&gt;/trials = [1-10 = noreplace(baselineprac500); 11-20 = noreplace(baseline500)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = experiment; 2 = baseline]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;I hope that's clear enough; apologises if not, and sorry for most likely making an error somewhere!&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21682"&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;gt; the stimuli appear immediately without any delay.&lt;br/&gt;&lt;br/&gt;Which stimuli? Please refer to them as exactly as named in the code you posted. And please spell out precisely when which stimulus is supposed to be displayed.&lt;br/&gt;</description><pubDate>Thu, 25 May 2017 08:39:36 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21682.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks for your help.&lt;br/&gt;&lt;br/&gt;When testing it out, the stimuli times presented in the the second set of trials don't appear to correspond with my reaction times (which I deliberately delayed) - the stimuli appear immediately without any delay. So, I'm probably making an error somewhere. Just clarify, the stimulus participants would respond to is the same stimulus across the 20 trials. Here's what I have:&lt;br/&gt;&lt;br/&gt;(the '500' is a condition label)&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Stimulus&lt;br/&gt;********&lt;br/&gt;&amp;lt;item Rocket_Double&amp;gt;&lt;br/&gt;/1 = "Rocket_Double.jpeg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Rocket_Double&amp;gt;&lt;br/&gt;/items = Rocket_Double&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;********&lt;br/&gt;Lists&lt;br/&gt;********&lt;br/&gt;&amp;lt;list itemnumbers500&amp;gt;&lt;br/&gt;/poolsize = 20&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list latencies500&amp;gt;&lt;br/&gt;/items = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) - 20 0s for the 20 different&amp;nbsp;&lt;br/&gt;/selectionmode = values.itemnumber500&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Values&lt;br/&gt;*******&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/itemnumber500 = 1&lt;br/&gt;/offset = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;First set of trials where RTs are collected&lt;br/&gt;*******&lt;br/&gt;10 trials from:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfpracrocket900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfpracrocket900.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfpracrocket900.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfpracrocket900.response == 16) trial.selfprac900 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.selfprac900error]&lt;br/&gt;/ontrialend = [trial.selfpracrocket900.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies900.setitem(trial.selfpracrocket900.latency, values.itemnumber900)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials from:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial selfrocket500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex]&lt;br/&gt;/ontrialbegin = [trial.selfrocket500.insertstimulustime(picture.rocket_double, list.nexttrial.nextvalue)]&lt;br/&gt;/beginresponsetime = list.nexttrial.currentvalue&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/validresponse = (16)&lt;br/&gt;/branch = [if(trial.selfrocket500.latency&amp;lt;1000 &amp;amp;&amp;amp; trial.selfrocket500.response == 16) trial.self500 else&lt;br/&gt;&amp;nbsp;&amp;nbsp;trial.self500error]&lt;br/&gt;/ontrialend = [trial.selfrocket500.resetstimulusframes(0)]&lt;br/&gt;/ontrialend = [list.latencies500.setitem(trial.selfpracrocket500.latency, values.itemnumber500)]&lt;br/&gt;/recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Second set of trials where RTs are used as onset time for the same stimulus (an initial stimulus is presented first after 500ms, so the stimulus in question would need occur at RT + 500)&lt;br/&gt;*******&lt;br/&gt;&lt;br/&gt;10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac500&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber500 = list.itemnumbers500.nextindex; values.offset = list.latencies500.nextvalue + 500]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac500.insertstimulustime(picture.launch_b, values.offset + 500)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 500]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac500.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac500.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac500]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;And 10 trials in:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial baselineprac900&amp;gt;&lt;br/&gt;/stimulustimes = [1 = cross; 500 = rocket_b]&lt;br/&gt;/ontrialbegin = [values.itemnumber900 = list.itemnumbers900.nextindex; values.offset = list.latencies900.nextvalue + 900]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.rocket_b2, values.offset)]&lt;br/&gt;/ontrialbegin = [trial.baselineprac900.insertstimulustime(picture.launch_b, values.offset + 900)]&lt;br/&gt;/correctresponse = (25)&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/ontrialend = [values.onset = 900]&lt;br/&gt;/ontrialend = [values.responsetime = trial.baselineprac900.latency - list.nexttrial.currentvalue]&lt;br/&gt;/ontrialend = [trial.baselineprac900.resetstimulusframes(100)]&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.baselinecontinueprac900]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******&lt;br/&gt;Blocks (contains trials which I do not want to take RTs from but included here for whole picture)&lt;br/&gt;&amp;lt;block experiment&amp;gt;&lt;br/&gt;/trials = [1-20 = noreplace(selfpracclick500, otherpracclick500); 21-40 = noreplace(selfclick500, trial.otherclick500)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block baseline&amp;gt;&lt;br/&gt;/trials = [1-10 = noreplace(baselineprac500); 11-20 = noreplace(baseline500)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1 = experiment; 2 = baseline]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;I hope that's clear enough; apologises if not, and sorry for most likely making an error somewhere!&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 25 May 2017 06:57:35 GMT</pubDate><dc:creator>Psych_Josh</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21671.aspx</link><description>&lt;div data-id="21666" class="if-quote-wrapper" unselectable="on" data-guid="1495639618927"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21666" 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="21666" 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="21666" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, May 24, 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-21666"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21665" class="if-quote-wrapper" unselectable="on" data-guid="1495639618927"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21665" 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="21665" 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="21665" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Wednesday, May 24, 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-21665"&gt;&lt;div class="if-quote-message-margin"&gt;Dear Inquisit,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;A part of my experiment requires storing response times to a stimuli (i.e., a reaction time) to use later for stimuli presentation times. Specifically, there'll be 20 reaction time trials, and I wish to be able to use this time between stimuli onset and response time as a presentation time of the same stimuli in different trials later on. Obviously, there is the method of creating each trial individually, and storing their response times within a global variable (value), and then for the later trials use a list to draw those values for presentation times, but I feel this is quite an inelegant/poor solution. To clarify, my experiment requires each specific reaction times (20 in total), so I can't simply calculate an average and use that. If there was a better way to do this that would be much appreciated! &amp;nbsp;&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;a class="if-quote-goto quote-link" href="#" data-id="21665"&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;Store the RTs in a &amp;lt;list&amp;gt; linked to the respective stimulus element (the with your 20 items). Then, in the 2nd part, retrieve the RT tied to a given item from the &amp;lt;list&amp;gt; and use the insertstimulustime() function to insert the stimulus in the trial at the desired time.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21666"&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;Here's a quick example:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=a_block; 2=b_block]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ itemnumber = 1&lt;br/&gt;/ offset = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block a_block&amp;gt;&lt;br/&gt;/ trials = [1-4 = a_trial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial a_trial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.itemnumber = list.itemnumbers.nextindex; ]&lt;br/&gt;/ ontrialend = [list.latencies.setitem(trial.a_trial.latency, values.itemnumber);]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = myitems&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item myitems&amp;gt;&lt;br/&gt;/ 1 = "A"&lt;br/&gt;/ 2 = "B"&lt;br/&gt;/ 3 = "C"&lt;br/&gt;/ 4 = "D"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ poolsize = 4&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list latencies&amp;gt;&lt;br/&gt;/ items = (0,0,0,0)&lt;br/&gt;/ selectionmode = values.itemnumber&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block b_block&amp;gt;&lt;br/&gt;/ trials = [1-4 = b_trial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial b_trial&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.itemnumber = list.itemnumbers.nextindex; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.offset = list.latencies.nextvalue; ]&lt;br/&gt;/ ontrialbegin = [trial.b_trial.insertstimulustime(shape.offset, values.offset);]&lt;br/&gt;/ ontrialend = [trial.b_trial.resetstimulusframes();]&lt;br/&gt;/ stimulustimes = [0=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape offset&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = [date time subject group blocknum blockcode trialnum trialcode stimulusitem response latency values.offset]&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 24 May 2017 08:27:12 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Storing response times</title><link>https://forums.millisecond.com/Topic21666.aspx</link><description>&lt;div data-id="21665" class="if-quote-wrapper" unselectable="on" data-guid="1495637342685"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21665" 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="21665" 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="21665" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Psych_Josh - Wednesday, May 24, 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-21665"&gt;&lt;div class="if-quote-message-margin"&gt;Dear Inquisit,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;A part of my experiment requires storing response times to a stimuli (i.e., a reaction time) to use later for stimuli presentation times. Specifically, there'll be 20 reaction time trials, and I wish to be able to use this time between stimuli onset and response time as a presentation time of the same stimuli in different trials later on. Obviously, there is the method of creating each trial individually, and storing their response times within a global variable (value), and then for the later trials use a list to draw those values for presentation times, but I feel this is quite an inelegant/poor solution. To clarify, my experiment requires each specific reaction times (20 in total), so I can't simply calculate an average and use that. If there was a better way to do this that would be much appreciated! &amp;nbsp;&lt;br/&gt;&lt;br/&gt;Many thanks,&lt;br/&gt;Josh&lt;a class="if-quote-goto quote-link" href="#" data-id="21665"&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;Store the RTs in a &amp;lt;list&amp;gt; linked to the respective stimulus element (the with your 20 items). Then, in the 2nd part, retrieve the RT tied to a given item from the &amp;lt;list&amp;gt; and use the insertstimulustime() function to insert the stimulus in the trial at the desired time.&lt;br/&gt;</description><pubDate>Wed, 24 May 2017 07:51:19 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>