﻿<?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  » Latency recorded as zero</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 14 Sep 2026 11:15:38 GMT</lastBuildDate><ttl>20</ttl><item><title>Latency recorded as zero</title><link>https://forums.millisecond.com/Topic13746.aspx</link><description>I have an attention task where a background video is playing and participants are asked to respond to '+' appearing on either right or left side of video with varying post trial pauses. The problem is that when I look at pilot data the latencies are usually recorded as 2000 (which I have set as response timeout). I am using a MacBook Air to run these tasks and I am wondering if it either a code problem OR that my computer is not powerful enough to record responses and deal with the background video at the same time. Help is most appreciated!!&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Here's the code:&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial middleleft_2&amp;gt;&lt;/div&gt;&lt;div&gt;/stimulustimes = [0 = middleleft; 500 = erasemiddleleft]&lt;/div&gt;&lt;div&gt;/correctresponse = ("Z")&lt;/div&gt;&lt;div&gt;/validresponse= ("Z", "/")&lt;/div&gt;&lt;div&gt;/posttrialpause = 2000&lt;/div&gt;&lt;div&gt;/response = timeout(2000)&lt;/div&gt;&lt;div&gt;&amp;lt;/trial&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial middleleft_3&amp;gt;&lt;/div&gt;&lt;div&gt;/stimulustimes = [0 = middleleft; 500 = erasemiddleleft]&lt;/div&gt;&lt;div&gt;/correctresponse = ("Z")&lt;/div&gt;&lt;div&gt;/validresponse= ("Z", "/")&lt;/div&gt;&lt;div&gt;/posttrialpause = 3000&lt;/div&gt;&lt;div&gt;/response = timeout(2000)&lt;/div&gt;&lt;div&gt;&amp;lt;/trial&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial middleleft_4&amp;gt;&lt;/div&gt;&lt;div&gt;/stimulustimes = [0 = middleleft; 500 = erasemiddleleft]&lt;/div&gt;&lt;div&gt;/correctresponse = ("Z")&lt;/div&gt;&lt;div&gt;/validresponse= ("Z", "/")&lt;/div&gt;&lt;div&gt;/posttrialpause = 4000&lt;/div&gt;&lt;div&gt;/response = timeout(2000)&lt;/div&gt;&lt;div&gt;&amp;lt;/trial&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial middleright_2&amp;gt;&lt;/div&gt;&lt;div&gt;/stimulustimes = [0 = middleright; 500 = erasemiddleright]&lt;/div&gt;&lt;div&gt;/correctresponse = ("/")&lt;/div&gt;&lt;div&gt;/validresponse= ("Z", "/")&lt;/div&gt;&lt;div&gt;/posttrialpause = 2000&lt;/div&gt;&lt;div&gt;/response = timeout(2000)&lt;/div&gt;&lt;div&gt;&amp;lt;/trial&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial middleright_3&amp;gt;&lt;/div&gt;&lt;div&gt;/stimulustimes = [0 = middleright; 500 = erasemiddleright]&lt;/div&gt;&lt;div&gt;/correctresponse = ("/")&lt;/div&gt;&lt;div&gt;/validresponse= ("Z", "/")&lt;/div&gt;&lt;div&gt;/posttrialpause = 3000&lt;/div&gt;&lt;div&gt;/response = timeout(2000)&lt;/div&gt;&lt;div&gt;&amp;lt;/trial&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial middleright_4&amp;gt;&lt;/div&gt;&lt;div&gt;/stimulustimes = [0 = middleright; 500 = erasemiddleright]&lt;/div&gt;&lt;div&gt;/correctresponse = ("/")&lt;/div&gt;&lt;div&gt;/validresponse= ("Z", "/")&lt;/div&gt;&lt;div&gt;/posttrialpause = 4000&lt;/div&gt;&lt;div&gt;/response = timeout(2000)&lt;/div&gt;&lt;div&gt;&amp;lt;/trial&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;**Block**&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;block FIGHT&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;/trials = [1-5 = noreplace(middleleft_2, middleright_2, middleleft_3, middleright_3, middleleft_4, middleright_4)]&lt;/div&gt;&lt;div&gt;/ bgstim = (Fight)&lt;/div&gt;&lt;div&gt;&amp;lt;/block&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;block SIT&amp;gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;/trials = [1-5 = noreplace(middleleft_2, middleright_2, middleleft_3, middleright_3, middleleft_4, middleright_4)]&lt;/div&gt;&lt;div&gt;/ bgstim = (Sit)&lt;/div&gt;&lt;div&gt;&amp;lt;/block&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Sun, 06 Jul 2014 16:32:46 GMT</pubDate><dc:creator>NatalieM</dc:creator></item><item><title>RE: Latency recorded as zero</title><link>https://forums.millisecond.com/Topic13760.aspx</link><description>Problem solved! Thank-you</description><pubDate>Sun, 06 Jul 2014 16:32:46 GMT</pubDate><dc:creator>NatalieM</dc:creator></item><item><title>RE: Latency recorded as zero</title><link>https://forums.millisecond.com/Topic13757.aspx</link><description>Thanks for attaching the materials. I cannot find any fault with the script or data, but I think there's a chance of a misconception here in terms of when exactly you expect Inquisit to start listening for responses. Let me try to dissect on of your &amp;lt;trial&amp;gt; specifications for you as an example:&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;trial middleleft_2&amp;gt;&lt;br/&gt;/stimulustimes = [0 = middleleft; 500 = erasemiddleleft]&lt;br/&gt;/correctresponse = (44)&lt;br/&gt;/validresponse= (44, 53)&lt;br/&gt;/posttrialpause = 2000&lt;br/&gt;/response = timeout(2000)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;You present two stimuli: middleleft, followed by erasemiddleleft 500ms later. By default, Inquisit will *not* start listening for responses until the entire stimulus presentation sequence specified in /stimulustimes (or /stimulusframes) has finished. Here, Inquisit will only start polling for responses *after* erasemiddleleft has been rendered to the screen. Latency will be measured relative to that point in time. As per the /response attribute, Inquisit will wait a maximum of 2000ms for a key press.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;To illustrate, a recorded latency of 100ms means that a key press was detected 100ms *after* the display of erasemiddleleft, or approx. 600ms into the entire &amp;lt;trial&amp;gt;. Latency is relative to erasemiddleleft, *not* the middleleft stimulus.&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;More importantly, what this means is that *any key presses* occurring prior to erasemiddleleft are ignored. I.e. if you press a key somewhere in the 500ms timeframe between middleleft and erasemiddleleft, it will count as a nonresponse. Inquisit simply isn't yet listening for responses at this point. I think there's a fair chance that this explains the prevalence of nonresponses in your data.&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Note that you can override this behavior by specifying a &amp;lt;trial&amp;gt;'s /beginresponsetime attribute accordingly:&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;trial middleleft_2&amp;gt;&lt;br/&gt;/stimulustimes = [0 = middleleft; 500 = erasemiddleleft]&lt;br/&gt;/correctresponse = (44)&lt;br/&gt;/validresponse= (44, 53)&lt;br/&gt;/posttrialpause = 2000&lt;br/&gt;/response = timeout(2000)&lt;br/&gt;&lt;strong&gt;/beginresponsetime = 0&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;You will find all of this covered in greater detail in the "How to Control Trial Duration and Inter-Trial Intervals" topic in the documentation's "How To"-section.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Hope this helps.&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Sat, 05 Jul 2014 12:45:27 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Latency recorded as zero</title><link>https://forums.millisecond.com/Topic13756.aspx</link><description>Hi Dave,&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;I've attached my script and a sample of the data from a few pilot runs - today when I ran it a handful of trials were showing up at 2000 rather than most of them.&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;You are correct, the response column reports the scan codes for either Z or /. The videos were too big to post,but I'm getting similar issues when I run the script without background videos, so I think it is a script issue.&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Thanks again!&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Sat, 05 Jul 2014 09:36:14 GMT</pubDate><dc:creator>NatalieM</dc:creator></item><item><title>RE: Latency recorded as zero</title><link>https://forums.millisecond.com/Topic13755.aspx</link><description>I'd be surprised if this was due to some kind of performance issue. This&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;gt; (2) In response column when the latency is 2000 it is recorded as 0. &lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;is the expected behavior, but &lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&amp;gt; Sometimes latencies appear (usually &amp;lt;100ms) and then response is recorded as 1. &lt;div&gt;&lt;br/&gt;&lt;/div&gt;this is not. '1' is not what one should find in the response column -- it should contain the scancode of the respective key. '1' isn't the scancode for either "/" or "Z".&lt;div&gt;&lt;br/&gt;&lt;/div&gt;#1: What does Tools -&amp;gt; Keyboard Scancodes... return for "Z" and "/" on your system?&lt;div&gt;#2: Can you please (a) attach the script and (b) a single data file? You can attach files to threads by selecting the "Attach" button when posting a reply.&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;</description><pubDate>Fri, 04 Jul 2014 10:58:58 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Latency recorded as zero</title><link>https://forums.millisecond.com/Topic13754.aspx</link><description>(1) Yes I am using most up to date version of Inquisit.&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;(2) In response column when the latency is 2000 it is recorded as 0. Sometimes latencies appear (usually &amp;lt;100ms) and then response is recorded as 1.&amp;nbsp;&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;(3) I tried scancodes instead and there was no difference in how data was recorded.&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;(4) Keyboard is QWERTY layout and language is English.&amp;nbsp;&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Could this be processing speed problem with my computer?&lt;div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Thanks again!&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Fri, 04 Jul 2014 09:49:10 GMT</pubDate><dc:creator>NatalieM</dc:creator></item><item><title>RE: Latency recorded as zero</title><link>https://forums.millisecond.com/Topic13750.aspx</link><description>I am unable to reproduce this on my end. The script records latencies as expected (provided one of the defined response keys was pressed). Q's:&lt;div&gt;&lt;br/&gt;&lt;/div&gt;#1: Is your Inquisit installation up to date? You should be using version 4.0.6.0. If not, please obtain the most recent version for your system from &lt;a href="https://www.millisecond.com/download"&gt;https://www.millisecond.com/download&lt;/a&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;#2: What's recorded in your data file's the 'response' column?&lt;div&gt;&lt;br/&gt;&lt;/div&gt;#3: Try specifying keyboard scancodes in your /validresponse and /correctresponse attributes instead of "literal" key values. Does it make any difference?&lt;div&gt;&lt;br/&gt;&lt;/div&gt;#4: What's your keyboard layout and specified language?&lt;br/&gt;</description><pubDate>Fri, 04 Jul 2014 03:37:15 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>