﻿<?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  » how to deal with delays in task</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 11 Sep 2026 09:23:29 GMT</lastBuildDate><ttl>20</ttl><item><title>how to deal with delays in task</title><link>https://forums.millisecond.com/Topic34956.aspx</link><description>hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;i am running an fMRI task that needs very precise timing and noticed there were some consistent delays for certain trial types (around 50-70 ms), i am computing the delays by calculating the difference in "trialtimestamp" between trials.&lt;br/&gt;&lt;br/&gt;first, what is the best way to account for these delays in the script? &lt;br/&gt;&lt;br/&gt;second, i've noticed that some trials that last 5000 ms (versus 3000 or 1000 ms of the exact same trial type, i.e., "trialcode") have 0 delay - would you know why this is (seems strangely consistent)?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;thank you so much!  &amp;nbsp;</description><pubDate>Mon, 21 Nov 2022 12:31:42 GMT</pubDate><dc:creator>nrouhani</dc:creator></item><item><title>RE: how to deal with delays in task</title><link>https://forums.millisecond.com/Topic34960.aspx</link><description>&lt;blockquote data-id="34956" class="if-quote-wrapper" unselectable="on" data-guid="1669033645279" id="if_insertedNode_1669033644180" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34956" 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="34956" 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="34956" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nrouhani - 11/20/2022&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-34956"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;i am running an fMRI task that needs very precise timing and noticed there were some consistent delays for certain trial types (around 50-70 ms), i am computing the delays by calculating the difference in "trialtimestamp" between trials.&lt;br/&gt;&lt;br/&gt;first, what is the best way to account for these delays in the script? &lt;br/&gt;&lt;br/&gt;second, i've noticed that some trials that last 5000 ms (versus 3000 or 1000 ms of the exact same trial type, i.e., "trialcode") have 0 delay - would you know why this is (seems strangely consistent)?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;thank you so much!  &amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="34956"&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;In general, you'll want to make use of /pre- and /posttrialpause to give trials a predictable amount of time to prepare stimuli and clean up after (deallocate memory, write data to disk, etc.).&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/current/html/howto/howtocontroltiming.htm"&gt;https://www.millisecond.com/support/docs/current/html/howto/howtocontroltiming.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Beyond that, nothing can be said about the potential reasons for any delays without you providing the relevant code.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 21 Nov 2022 12:31:42 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>