﻿<?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  » using previous response latencies as presentation times</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 27 Sep 2026 13:21:43 GMT</lastBuildDate><ttl>20</ttl><item><title>using previous response latencies as presentation times</title><link>https://forums.millisecond.com/Topic16755.aspx</link><description>Dear friends, I'm sure my question has been answered before somewhere, however I did not manage to find the answer.&lt;br/&gt;&lt;br/&gt;What I would like to do, is use the response latencies provided in a first block, as the presentation times for a stimuli in a second block. &lt;br/&gt;&lt;br/&gt;Is there an efficient way to do this?&amp;nbsp;Thx for the help!</description><pubDate>Wed, 22 Jul 2015 11:21:23 GMT</pubDate><dc:creator>plush</dc:creator></item><item><title>RE: using previous response latencies as presentation times</title><link>https://forums.millisecond.com/Topic16764.aspx</link><description>Works great! Thx for the quick replies!</description><pubDate>Wed, 22 Jul 2015 11:21:23 GMT</pubDate><dc:creator>plush</dc:creator></item><item><title>RE: using previous response latencies as presentation times</title><link>https://forums.millisecond.com/Topic16763.aspx</link><description>You can absolutely store several latencies and use them later on. You can use a &amp;lt;list&amp;gt; for that:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt &amp;gt;&lt;br/&gt;/blocks = [1=one;2=two]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block one&amp;gt;&lt;br/&gt;/trials = [1-5=one_trials]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block two&amp;gt;&lt;br/&gt;/trials = [1-5=two_trials]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial one_trials&amp;gt;&lt;br/&gt;/stimulustimes = [1=press]&lt;br/&gt;/validresponse = (" ")&lt;br/&gt;&lt;strong&gt;/ ontrialend = [list.latencylist.appenditem(trial.one_trials.latency)]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list latencylist&amp;gt;&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial two_trials&amp;gt;&lt;br/&gt;/stimulustimes = [1=fixationcross]&lt;br/&gt;&lt;strong&gt;/ timeout = list.latencylist.nextvalue&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixationcross&amp;gt;&lt;br/&gt;/items = (" + ")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text press&amp;gt;&lt;br/&gt;/items = (" press the spacebar ")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 22 Jul 2015 10:59:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: using previous response latencies as presentation times</title><link>https://forums.millisecond.com/Topic16762.aspx</link><description>Thx for the response as always! I was hoping for something along the following lines to work:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ one_trialslatency=0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt &amp;gt;&lt;br/&gt;/blocks = [1=one;2=two]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block one&amp;gt;&lt;br/&gt;/trials = [1-5=one_trials]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block two&amp;gt;&lt;br/&gt;/trials = [1-5=two_trials]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial one_trials&amp;gt;&lt;br/&gt;/stimulustimes = [1=press]&lt;br/&gt;/validresponse = (" ")&lt;br/&gt;/ ontrialend = [values.one_trialslatency=trial.one_trials.latency]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial two_trials&amp;gt;&lt;br/&gt;/stimulustimes = [1=fixationcross]&lt;br/&gt;/ timeout = values.one_trialslatency&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixationcross&amp;gt;&lt;br/&gt;/items = (" + ")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text press&amp;gt;&lt;br/&gt;/items = (" press the spacebar ")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;The big question is whether I can save somehow 5 latencies, as timeouts for 5 trials in the second block. As it is currently designed it only uses the latency of the last trial.&lt;br/&gt;&lt;br/&gt;Thx!</description><pubDate>Wed, 22 Jul 2015 10:14:28 GMT</pubDate><dc:creator>plush</dc:creator></item><item><title>RE: using previous response latencies as presentation times</title><link>https://forums.millisecond.com/Topic16756.aspx</link><description>Yes, you can do that. You need to store the latency / latencies (or mean latency?) from the 1st block somewhere. You can then set the stimulus duration in the 2nd block via the &amp;lt;trial&amp;gt; element's setstimulustime() function. Simple example:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=block1; 2=block2]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ alatency= 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block1&amp;gt;&lt;br/&gt;/ trials = [1=atrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block2&amp;gt;&lt;br/&gt;/ trials = [1=btrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial atrial&amp;gt;&lt;br/&gt;/ ontrialend = [values.alatency=trial.atrial.latency]&lt;br/&gt;/ stimulusframes = [1=atext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial btrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [trial.btrial.setstimulustime(shape.eraser, values.alatency); ]&lt;br/&gt;/ stimulusframes = [1=btext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text atext&amp;gt;&lt;br/&gt;/ items = ("Press the spacebar")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text btext&amp;gt;&lt;br/&gt;/ items = ("This stimulus will disappear after &amp;lt;%values.alatency%&amp;gt; milliseconds.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape eraser&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 25%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 21 Jul 2015 16:07:25 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>