﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Response time measurement</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 19 Jun 2026 10:09:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Response time measurement</title><link>https://forums.millisecond.com/Topic20432.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I want to measure participants' reaction time in response to stimulus onset. &amp;nbsp;I currently have /beginresponsetime written into the code, and while it does measure reaction time, there is no longer a fixation cross presented after each stimulus' trial (the triangle stimulus just goes into the next stimulus without a fixation cross separating each trial). &amp;nbsp;I have copied/pasted the triangle trial below so you can give me suggestions on how to measure reaction time AND keep the fixation cross. &amp;nbsp;Thank you.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial triangle&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.category = "triangle"]&lt;br/&gt;/ ontrialbegin = [values.itemnumber = list.triangleitems.nextvalue]&lt;br/&gt;stimulustimes = [0 = fixationcross; 500 = triangle; 1200 = shape.eraser; 1201 = fixationcross]&lt;br/&gt; /stimulustimes = [0 = triangle; 1500 = shape.eraser; 1501 = fixationcross]&lt;br/&gt;/inputdevice = keyboard&lt;br/&gt;/ isvalidresponse = [values.responsekey]&lt;br/&gt;iscorrectresponse = [values.responsekey = 1]&lt;br/&gt;/ beginresponsetime = 0&lt;br/&gt; / timeout = (values.fixationduration + values.trianglepresentation) &lt;br/&gt;/ posttrialpause = rand(values.iti_min, values.iti_max)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 03 Jan 2017 18:30:19 GMT</pubDate><dc:creator>sarahlynmart@gmail.com</dc:creator></item><item><title>RE: Response time measurement</title><link>https://forums.millisecond.com/Topic20433.aspx</link><description>&lt;div data-id="20432" class="if-quote-wrapper" unselectable="on" data-guid="1483496588920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20432" 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="20432" 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="20432" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:sarahlynmart@gmail.com"&gt;sarahlynmart@gmail.com&lt;/a&gt; - Tuesday, January 3, 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-20432"&gt;&lt;div class="if-quote-message-margin"&gt;Hello,&lt;br/&gt;&lt;br/&gt;I want to measure participants' reaction time in response to stimulus onset. &amp;nbsp;I currently have /beginresponsetime written into the code, and while it does measure reaction time, there is no longer a fixation cross presented after each stimulus' trial (the triangle stimulus just goes into the next stimulus without a fixation cross separating each trial). &amp;nbsp;I have copied/pasted the triangle trial below so you can give me suggestions on how to measure reaction time AND keep the fixation cross. &amp;nbsp;Thank you.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial triangle&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.category = "triangle"]&lt;br/&gt;/ ontrialbegin = [values.itemnumber = list.triangleitems.nextvalue]&lt;br/&gt;stimulustimes = [0 = fixationcross; 500 = triangle; 1200 = shape.eraser; 1201 = fixationcross]&lt;br/&gt; /stimulustimes = [0 = triangle; 1500 = shape.eraser; 1501 = fixationcross]&lt;br/&gt;/inputdevice = keyboard&lt;br/&gt;/ isvalidresponse = [values.responsekey]&lt;br/&gt;iscorrectresponse = [values.responsekey = 1]&lt;br/&gt;/ beginresponsetime = 0&lt;br/&gt; / timeout = (values.fixationduration + values.trianglepresentation) &lt;br/&gt;/ posttrialpause = rand(values.iti_min, values.iti_max)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20432"&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;A &amp;lt;trial&amp;gt;'s default behavior is to terminate / go to the /posttrialpause as soon as a response has occurred. You can modify this behavior via the /responseinterrupt attribute. In your case, you'll probably want to set it to 'frames':&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/responseinterrupt.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/responseinterrupt.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/attributes/responseinterrupt.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Note, too, that by default stimuli will be erased when the trial terminates / during /posttrialpause. You can modify this behavior by setting the respective stimulus elements' /erase attributes to 'false'.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/erase.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/attributes/erase.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Also see &lt;a href="http://www.millisecond.com/support/docs/v5/html/howto/howtoerase.htm"&gt;http://www.millisecond.com/support/docs/v5/html/howto/howtoerase.htm&lt;/a&gt; for an explanation of the erasing behavior.&lt;br/&gt;&lt;br/&gt;Beyond that, there are a couple of issues with the &amp;lt;trial&amp;gt; code you posted. (1) You may not have multiple /stimulustimes attributes in a given &amp;lt;trial&amp;gt;, only one. I'm not sure whether one of them is just a remnant of previous edits or if you intend both to work. (2) Both the /isvalidresponse and /iscorrectresponse attributes are not functional in their current state. Here, too, I'm not sure whether that just reflects an early state of development or a genuine mistake.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 03 Jan 2017 18:30:19 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>