﻿<?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 6  » How to measure and record response latency</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 08 Jun 2026 15:19:16 GMT</lastBuildDate><ttl>20</ttl><item><title>How to measure and record response latency</title><link>https://forums.millisecond.com/Topic32221.aspx</link><description>Hello.&lt;br/&gt;&lt;br/&gt;I am currently customizing the auditory digit span task: &lt;a href="https://www.millisecond.com/download/library/digitspan/"&gt;https://www.millisecond.com/download/library/digitspan/&lt;/a&gt;&lt;br/&gt; and translating it into Japanese.&lt;br/&gt;The point of customization is to add a feature of measuring response latency for each trial (from the point of digits (stimuli) presentation to that of response confirmation).&lt;br/&gt;Even if I added some related codes on it, the output column of (values.rt) shows only "0" for all trials.&lt;br/&gt;It would be appreciated if you could let me know how to fix this.&lt;br/&gt;&lt;br/&gt;Here's what I added (For forward level 3)&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (~, values.rt)&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;~&lt;br/&gt;/rt = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial f_trial3&amp;gt;&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp; &amp;nbsp;~&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rt = trial.f_trial3.latency;&lt;br/&gt;&amp;nbsp; &amp;nbsp; list.rt.appenditem(values.rt);&lt;br/&gt;]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 15 Sep 2021 00:56:18 GMT</pubDate><dc:creator>Claude Choe</dc:creator></item><item><title>RE: How to measure and record response latency</title><link>https://forums.millisecond.com/Topic32228.aspx</link><description>&lt;blockquote data-id="32223" class="if-quote-wrapper" unselectable="on" data-guid="1631666805911" contenteditable="false" id="if_insertedNode_1631666804811"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="32223" 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="32223" 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="32223" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 9/13/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-32223"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="32221" class="if-quote-wrapper" unselectable="on" data-guid="1631666805911" id="if_insertedNode_1631533408459" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="32221" 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="32221" 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="32221" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Claude Choe - 9/13/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-32221"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello.&lt;br/&gt;&lt;br/&gt;I am currently customizing the auditory digit span task: &lt;a href="https://www.millisecond.com/download/library/digitspan/"&gt;&lt;a href="https://www.millisecond.com/download/library/digitspan/"&gt;https://www.millisecond.com/download/library/digitspan/&lt;/a&gt;&lt;/a&gt;&lt;br/&gt; and translating it into Japanese.&lt;br/&gt;The point of customization is to add a feature of measuring response latency for each trial (from the point of digits (stimuli) presentation to that of response confirmation).&lt;br/&gt;Even if I added some related codes on it, the output column of (values.rt) shows only "0" for all trials.&lt;br/&gt;It would be appreciated if you could let me know how to fix this.&lt;br/&gt;&lt;br/&gt;Here's what I added (For forward level 3)&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (~, values.rt)&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;~&lt;br/&gt;/rt = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial f_trial3&amp;gt;&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp; &amp;nbsp;~&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rt = trial.f_trial3.latency;&lt;br/&gt;&amp;nbsp; &amp;nbsp; list.rt.appenditem(values.rt);&lt;br/&gt;]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="32221"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Each "trial" in the digit span encompasses multiple &amp;lt;trial&amp;gt; elements, and f_trial3 has a duration of zero and is not responsible for measuring any response. You'll want to store script.elapsedtime in a variable /ontrialbegin the the various f_trialX and b_trialX &amp;lt;trial&amp;gt; elements (or the timestamp property of the 1st digit audio &amp;lt;sound&amp;gt; stimulus /ontrialend if you want to measure from onset of the 1st digit presented) and then store script.elapsedtime again in a different variable in the f_trialX_responseInput and b_trialX_responseInput &amp;lt;trial&amp;gt; elements if the response there submitted is "submit". Then subtract variable 1 from variable 2 and you have your latency.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="32223"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thank you for the concise and informative reply.&lt;br/&gt;I solved the problem based on your suggestion and the following thread:&lt;br/&gt;&lt;a href="https://www.millisecond.com/forums/Topic7530.aspx"&gt;https://www.millisecond.com/forums/Topic7530.aspx&lt;/a&gt;&lt;br/&gt;I put script.elapsedtime on each trial elements and&lt;br/&gt;used expressions element to briefly obtain the response latency.&lt;br/&gt;&lt;br/&gt;I appreciate your help again.</description><pubDate>Wed, 15 Sep 2021 00:56:18 GMT</pubDate><dc:creator>Claude Choe</dc:creator></item><item><title>RE: How to measure and record response latency</title><link>https://forums.millisecond.com/Topic32223.aspx</link><description>&lt;blockquote data-id="32221" class="if-quote-wrapper" unselectable="on" data-guid="1631533409153" id="if_insertedNode_1631533408459" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="32221" 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="32221" 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="32221" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Claude Choe - 9/13/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-32221"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello.&lt;br/&gt;&lt;br/&gt;I am currently customizing the auditory digit span task: &lt;a href="https://www.millisecond.com/download/library/digitspan/"&gt;&lt;a href="https://www.millisecond.com/download/library/digitspan/"&gt;https://www.millisecond.com/download/library/digitspan/&lt;/a&gt;&lt;/a&gt;&lt;br/&gt; and translating it into Japanese.&lt;br/&gt;The point of customization is to add a feature of measuring response latency for each trial (from the point of digits (stimuli) presentation to that of response confirmation).&lt;br/&gt;Even if I added some related codes on it, the output column of (values.rt) shows only "0" for all trials.&lt;br/&gt;It would be appreciated if you could let me know how to fix this.&lt;br/&gt;&lt;br/&gt;Here's what I added (For forward level 3)&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (~, values.rt)&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;~&lt;br/&gt;/rt = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial f_trial3&amp;gt;&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp; &amp;nbsp;~&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.rt = trial.f_trial3.latency;&lt;br/&gt;&amp;nbsp; &amp;nbsp; list.rt.appenditem(values.rt);&lt;br/&gt;]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="32221"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Each "trial" in the digit span encompasses multiple &amp;lt;trial&amp;gt; elements, and f_trial3 has a duration of zero and is not responsible for measuring any response. You'll want to store script.elapsedtime in a variable /ontrialbegin the the various f_trialX and b_trialX &amp;lt;trial&amp;gt; elements (or the timestamp property of the 1st digit audio &amp;lt;sound&amp;gt; stimulus /ontrialend if you want to measure from onset of the 1st digit presented) and then store script.elapsedtime again in a different variable in the f_trialX_responseInput and b_trialX_responseInput &amp;lt;trial&amp;gt; elements if the response there submitted is "submit". Then subtract variable 1 from variable 2 and you have your latency.&lt;br/&gt;</description><pubDate>Mon, 13 Sep 2021 11:52:40 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>