﻿<?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  » Persistent timing error</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 29 Apr 2026 20:09:06 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Persistent timing error</title><link>https://forums.millisecond.com/Topic9807.aspx</link><description>&lt;p&gt;James,&lt;/p&gt;
&lt;p&gt;Great, and thanks for posting the follow up - this is definitely useful information to share.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In general, both pretrialpause and posttrialpause should be used when consistent timing is required between trials as these given Inquisit a designated window in which to do preparation work at the beginning of the trial and cleanup at the end.&lt;/p&gt;
&lt;p&gt;I'll log a bug on our oddball script to include these attributes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;&lt;span style="font-size: 12px;"&gt;Sean&lt;/span&gt;&lt;/p&gt;</description><pubDate>Tue, 26 Feb 2013 16:12:03 GMT</pubDate><dc:creator>seandr</dc:creator></item><item><title>RE: Persistent timing error</title><link>https://forums.millisecond.com/Topic9768.aspx</link><description>&lt;p&gt;Solved.&lt;/p&gt;
&lt;p&gt;The problem is the lack of a post-trial pause. If we specify a trialduration for the whole trial, but allocate part of it for what is probably the time that Inquisit uses to dump memory, reallocate, etc. then the timing works out &lt;i&gt;very&lt;/i&gt; well. We just ran 40 stimuli @ 1 per second and the TTL signal was millisecond-accurate for all 40.&lt;/p&gt;
&lt;p&gt;In other words:&lt;/p&gt;

&lt;p&gt;/trialduration = 1000 &lt;/p&gt;
&lt;p&gt;^^^ reallocation errors&lt;/p&gt;

&lt;p&gt;/trialduration = 1000&lt;/p&gt;
&lt;p&gt;&lt;b&gt;/posttrialpause = 100 &amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;^^^ accurate&lt;/p&gt;

&lt;p&gt;Hopefully, this will save anyone using TTL some time in future. Thanks for your help.&lt;/p&gt;
&lt;p&gt;JH&lt;br /&gt;Usyd&amp;nbsp;&lt;/p&gt;</description><pubDate>Sun, 24 Feb 2013 18:39:08 GMT</pubDate><dc:creator>JamesH</dc:creator></item><item><title>RE: Persistent timing error</title><link>https://forums.millisecond.com/Topic9767.aspx</link><description>&lt;p&gt;&lt;span&gt;&lt;strong&gt;I want to make sure I understand the graph - this is presumably showing the TTL value of pin 2 on the parallel port, correct?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;No, this is the absolute timing between either 'on' or 'off' signals as per the comments which TTL sends to the ADI box. These signals are 1 second apart and so each point on my graph above represents the time between comments marked at, say 15.016s and 16.016s, which is correct. Or for an error, 30.335s and 31.352s.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;When you gathered the data in the graph, were you manually responding in the task, using the monkey, or just running the task without manual or monkey responses? N&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;ote that the script will set that particular pin high upon presenting the auditory stimulus and upon receiving a response (e.g., pressing the space bar), so is it possible the second signal represents the response?&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I wasn't responding at all, I just left the script. I tried it as well with a modified trial that consisted only of instructions for a) first frame to play sound and sends trigger, then b) trial times out at 1000ms.&lt;br /&gt;&lt;br /&gt;Your port definitions above make no difference to the artifact. I have tried a few settings, but nothing seems to make a difference.&lt;br /&gt;&lt;br /&gt;I have also changed the latency of the trials in case this was related to the memory. However, even at 10 second (instead of 1 second) intervals, the timing error persists - every 17th TTL comment is 17ms too long as below.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="/community/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/14/3872.10sec.png"&gt;&lt;img src="/community/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/14/3872.10sec.png" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Seeing as this is the same as the monitor refresh rate, I also tried using stimulustimes=0 instead of stimulusframes =1 for the signal - no difference, the error remains.&lt;/p&gt;</description><pubDate>Sun, 24 Feb 2013 17:56:39 GMT</pubDate><dc:creator>JamesH</dc:creator></item><item><title>RE: Persistent timing error</title><link>https://forums.millisecond.com/Topic9752.aspx</link><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;Thanks for reporting this. &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 12px;"&gt;I want to make sure I understand the graph - this is presumably showing the TTL value of pin 2 on the parallel port, correct? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you gathered the data in the graph, were you manually responding in the task, using the monkey, or just running the task without manual or monkey responses? N&lt;span style="font-size: 12px;"&gt;ote that the script will set that particular pin high upon presenting the auditory stimulus and upon receiving a response (e.g., pressing the space bar), so is it possible the second signal represents the response?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To factor out the response signal, can you try this using the port definitions below and let me know if you still see that artifact? That will help me diagnose what's happening here. Thanks.&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&amp;lt;port oddballsignal&amp;gt;&lt;/p&gt;
&lt;p&gt;/ port = LPT1&lt;/p&gt;
&lt;p&gt;/ subport = data&lt;/p&gt;
&lt;p&gt;/ items = ("00000001")&lt;/p&gt;
&lt;p&gt;&amp;lt;/port&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;port baselinesignal&amp;gt;&lt;/p&gt;
&lt;p&gt;/ port = LPT1&lt;/p&gt;
&lt;p&gt;/ subport = data&lt;/p&gt;
&lt;p&gt;/ items = ("00000000")&lt;/p&gt;
&lt;p&gt;&amp;lt;/port&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;port responsesignal&amp;gt;&lt;/p&gt;
&lt;p&gt;/ port = LPT1&lt;/p&gt;
&lt;p&gt;/ subport = data&lt;/p&gt;
&lt;p&gt;/ items = ("00000010")&lt;/p&gt;
&lt;p&gt;&amp;lt;/port&amp;gt;&lt;/p&gt;
&lt;/p&gt;
</description><pubDate>Fri, 22 Feb 2013 11:02:52 GMT</pubDate><dc:creator>seandr</dc:creator></item><item><title>Persistent timing error</title><link>https://forums.millisecond.com/Topic9719.aspx</link><description>&lt;p&gt;Greetings from the University of Sydney,&lt;br /&gt;&lt;br /&gt;I have a timing error with my Inquisit output which I can't solve.&amp;nbsp;The below graphic displays the error: I have recorded (with AD Instruments Powerlab) the comments which are appended by the &amp;lt;port&amp;gt; tag from the Inquisit script. This is the Auditory Oddball task (which can be found on your website), which sends signals that are perfectly evenly spaced @1s each, with each audio presentation.&lt;/p&gt;
&lt;p&gt;As you can see, every 17 presentations the timing records a characteristic error (which is a beat of 1001ms and then 1017ms, as you can see on the graph) with only the most occasional other minor errors.&lt;/p&gt;
&lt;p&gt;This main error is unrelated to the task changing between presented stimuli - i.e. is unrelated to the trial or block code and is reproducible.&lt;/p&gt;

&lt;p&gt;&lt;a href="/community/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/14/2018.timing-error.png"&gt;&lt;img src="/community/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/14/2018.timing-error.png" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Your thoughts?&lt;br /&gt;&lt;br /&gt;all the best,&lt;br /&gt;JH&amp;nbsp;&lt;/p&gt;</description><pubDate>Wed, 20 Feb 2013 22:59:31 GMT</pubDate><dc:creator>JamesH</dc:creator></item></channel></rss>