﻿<?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  » Timing issue</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 16 Apr 2026 07:46:24 GMT</lastBuildDate><ttl>20</ttl><item><title>Timing issue</title><link>https://forums.millisecond.com/Topic41681.aspx</link><description>Hey all,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have a bit of code and I am not sure I'm understanding it correctly. I am basing my experiment on someone else's work, so am slowly figuring out how it works. Find the relevant code below (and my questions underneath that).&lt;br/&gt;&lt;br/&gt;&amp;lt;text Intrusion&amp;gt;&lt;br/&gt;/ items = ("How &amp;lt;b&amp;gt;often&amp;lt;/b&amp;gt; did you &amp;lt;b&amp;gt;think&amp;lt;/b&amp;gt; about the &amp;lt;b&amp;gt;scene&amp;lt;/b&amp;gt;?&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;center&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;NEVER ---- BRIEFLY ---- OFTEN&amp;lt;/b&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;center&amp;gt;&amp;lt;br&amp;gt; (1) ----------- (2) ----------- (3) &amp;lt;/b&amp;gt;"&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br/&gt;/ position=(50%, 50%)&lt;br/&gt;/ color = white&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ fontstyle = ("Arial", 3%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Intrusion&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Intrusion]&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;/ inputdevice=keyboard&lt;br/&gt;/ correctresponse=("1","2","3")&lt;br/&gt;/ recorddata = true // check response given before 2000 ms and if present blank screen &lt;br/&gt;if (trial.Intrusion.responselatency &amp;gt; 0 &amp;amp;&amp;amp; trial.Intrusion.responselatency &amp;lt; trial.Intrusion.trialduration)&lt;br/&gt;screencolor = "black" &lt;br/&gt;endif&lt;br/&gt;/ posttrialpause = (500)  &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Questions&lt;/strong&gt;:&lt;br/&gt;- Am I correct in interpreting that the trial is always 2500ms, but if there is a response the screen goes blank (e.g. if the response is given after 1000ms, then the trial lasts another 1500ms but with a blank screen, followed by 500ms trial pause). In the data file I see that the latency is 2000ms when there is no response (and when there is a response the reaction time simply is logged). Trial duration is always logged as 2500ms.&lt;br/&gt;- Does this mean that a trial is always 3000ms (2500 intrusion + 500 posttrialpause) regardless of how quickly someone responds (within the intrusion trial)?&lt;br/&gt;- I don't follow why the recorddata element somehow checks if a response is given before 2000ms (because it simply seems to be a programmer's note). It is not defined anywhere in the script. Is this maybe an Inquisit default setting?&amp;nbsp;&lt;br/&gt;- There is a screencolor black element in the if code, but that does not seem to be called upon (not that I want it to do that), but I simply wondered if I could remove it without 'breaking' anything'.&lt;br/&gt;- Finally, the 'if' element is presented in bold and purple, but the endif is not. Is this an issue? &lt;br/&gt;&lt;br/&gt;Thanks for any help in advance!&lt;br/&gt;&lt;br/&gt;Kevin</description><pubDate>Mon, 06 Oct 2025 12:29:40 GMT</pubDate><dc:creator>k.vanschie@tilburguniversity.edu</dc:creator></item><item><title>RE: Timing issue</title><link>https://forums.millisecond.com/Topic41684.aspx</link><description>&lt;blockquote data-id="41683" class="if-quote-wrapper" unselectable="on" data-guid="1759753758572" contenteditable="false" id="if_insertedNode_1759753757339"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41683" 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="41683" 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="41683" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 10/6/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41683"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="41681" class="if-quote-wrapper" unselectable="on" data-guid="1759753758572" contenteditable="false" id="if_insertedNode_1759750379612"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41681" 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="41681" 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="41681" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:k.vanschie@tilburguniversity.edu"&gt;k.vanschie@tilburguniversity.edu&lt;/a&gt; - 10/6/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41681"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hey all,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have a bit of code and I am not sure I'm understanding it correctly. I am basing my experiment on someone else's work, so am slowly figuring out how it works. Find the relevant code below (and my questions underneath that).&lt;br/&gt;&lt;br/&gt;&amp;lt;text Intrusion&amp;gt;&lt;br/&gt;/ items = ("How &amp;lt;b&amp;gt;often&amp;lt;/b&amp;gt; did you &amp;lt;b&amp;gt;think&amp;lt;/b&amp;gt; about the &amp;lt;b&amp;gt;scene&amp;lt;/b&amp;gt;?&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;center&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;NEVER ---- BRIEFLY ---- OFTEN&amp;lt;/b&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;center&amp;gt;&amp;lt;br&amp;gt; (1) ----------- (2) ----------- (3) &amp;lt;/b&amp;gt;"&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br/&gt;/ position=(50%, 50%)&lt;br/&gt;/ color = white&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ fontstyle = ("Arial", 3%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Intrusion&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Intrusion]&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;/ inputdevice=keyboard&lt;br/&gt;/ correctresponse=("1","2","3")&lt;br/&gt;/ recorddata = true // check response given before 2000 ms and if present blank screen &lt;br/&gt;if (trial.Intrusion.responselatency &amp;gt; 0 &amp;amp;&amp;amp; trial.Intrusion.responselatency &amp;lt; trial.Intrusion.trialduration)&lt;br/&gt;screencolor = "black" &lt;br/&gt;endif&lt;br/&gt;/ posttrialpause = (500)  &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Questions&lt;/strong&gt;:&lt;br/&gt;- Am I correct in interpreting that the trial is always 2500ms, but if there is a response the screen goes blank (e.g. if the response is given after 1000ms, then the trial lasts another 1500ms but with a blank screen, followed by 500ms trial pause). In the data file I see that the latency is 2000ms when there is no response (and when there is a response the reaction time simply is logged). Trial duration is always logged as 2500ms.&lt;br/&gt;- Does this mean that a trial is always 3000ms (2500 intrusion + 500 posttrialpause) regardless of how quickly someone responds (within the intrusion trial)?&lt;br/&gt;- I don't follow why the recorddata element somehow checks if a response is given before 2000ms (because it simply seems to be a programmer's note). It is not defined anywhere in the script. Is this maybe an Inquisit default setting?&amp;nbsp;&lt;br/&gt;- There is a screencolor black element in the if code, but that does not seem to be called upon (not that I want it to do that), but I simply wondered if I could remove it without 'breaking' anything'.&lt;br/&gt;- Finally, the 'if' element is presented in bold and purple, but the endif is not. Is this an issue? &lt;br/&gt;&lt;br/&gt;Thanks for any help in advance!&lt;br/&gt;&lt;br/&gt;Kevin&lt;a class="if-quote-goto quote-link" href="#" data-id="41681"&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;Generally see &lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/howtocontroltiming.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/howtocontroltiming.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/howtocontroltiming.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;Re. (1): /trialduration defines fixed duration, it encompasses /posttrialpause. That is: There is a max. 2000ms response window, since /posttrialpause is 500. If a response occurs before 2000ms, then the posttrialpause is longer. Suppose response occurs at 1000ms, then the posttrialpause is 1500.&lt;br/&gt;Re. (2): No, the trial is always 2500ms.&lt;br/&gt;Re. (3): Explained under (1).&lt;br/&gt;Re. (4): The language has no screencolor &lt;strong&gt;element&lt;/strong&gt;, so I'm not sure what you are referring to. /screencolor exists as an &lt;strong&gt;attribute &lt;/strong&gt;for various elements (&amp;lt;defaults&amp;gt;, &amp;lt;block&amp;gt;):&amp;nbsp;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/attributes/screencolor.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/attributes/screencolor.htm"&gt;https://www.millisecond.com/support/docs/v6/html/language/attributes/screencolor.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;Re.(5): There is no &lt;strong&gt;endif &lt;/strong&gt;in Inquisit syntax, that is why it's not colored. I canot tell you why the original author put it there.&lt;br/&gt;&lt;br/&gt;You may benefit from working through the Programmer's Manual, which should aid your understanding of the code.&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf"&gt;&lt;a href="https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf"&gt;https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="41683"&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;Hi Dave, thanks for explaining! That makes a lot more sense! </description><pubDate>Mon, 06 Oct 2025 12:29:40 GMT</pubDate><dc:creator>k.vanschie@tilburguniversity.edu</dc:creator></item><item><title>RE: Timing issue</title><link>https://forums.millisecond.com/Topic41683.aspx</link><description>&lt;blockquote data-id="41681" class="if-quote-wrapper" unselectable="on" data-guid="1759750381109" contenteditable="false" id="if_insertedNode_1759750379612"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41681" 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="41681" 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="41681" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;&lt;a href="mailto:k.vanschie@tilburguniversity.edu"&gt;k.vanschie@tilburguniversity.edu&lt;/a&gt; - 10/6/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41681"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hey all,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have a bit of code and I am not sure I'm understanding it correctly. I am basing my experiment on someone else's work, so am slowly figuring out how it works. Find the relevant code below (and my questions underneath that).&lt;br/&gt;&lt;br/&gt;&amp;lt;text Intrusion&amp;gt;&lt;br/&gt;/ items = ("How &amp;lt;b&amp;gt;often&amp;lt;/b&amp;gt; did you &amp;lt;b&amp;gt;think&amp;lt;/b&amp;gt; about the &amp;lt;b&amp;gt;scene&amp;lt;/b&amp;gt;?&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;center&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;NEVER ---- BRIEFLY ---- OFTEN&amp;lt;/b&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;center&amp;gt;&amp;lt;br&amp;gt; (1) ----------- (2) ----------- (3) &amp;lt;/b&amp;gt;"&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br/&gt;/ position=(50%, 50%)&lt;br/&gt;/ color = white&lt;br/&gt;/ txbgcolor = white&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ fontstyle = ("Arial", 3%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Intrusion&amp;gt;&lt;br/&gt;/ stimulustimes = [1=Intrusion]&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;/ inputdevice=keyboard&lt;br/&gt;/ correctresponse=("1","2","3")&lt;br/&gt;/ recorddata = true // check response given before 2000 ms and if present blank screen &lt;br/&gt;if (trial.Intrusion.responselatency &amp;gt; 0 &amp;amp;&amp;amp; trial.Intrusion.responselatency &amp;lt; trial.Intrusion.trialduration)&lt;br/&gt;screencolor = "black" &lt;br/&gt;endif&lt;br/&gt;/ posttrialpause = (500)  &lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Questions&lt;/strong&gt;:&lt;br/&gt;- Am I correct in interpreting that the trial is always 2500ms, but if there is a response the screen goes blank (e.g. if the response is given after 1000ms, then the trial lasts another 1500ms but with a blank screen, followed by 500ms trial pause). In the data file I see that the latency is 2000ms when there is no response (and when there is a response the reaction time simply is logged). Trial duration is always logged as 2500ms.&lt;br/&gt;- Does this mean that a trial is always 3000ms (2500 intrusion + 500 posttrialpause) regardless of how quickly someone responds (within the intrusion trial)?&lt;br/&gt;- I don't follow why the recorddata element somehow checks if a response is given before 2000ms (because it simply seems to be a programmer's note). It is not defined anywhere in the script. Is this maybe an Inquisit default setting?&amp;nbsp;&lt;br/&gt;- There is a screencolor black element in the if code, but that does not seem to be called upon (not that I want it to do that), but I simply wondered if I could remove it without 'breaking' anything'.&lt;br/&gt;- Finally, the 'if' element is presented in bold and purple, but the endif is not. Is this an issue? &lt;br/&gt;&lt;br/&gt;Thanks for any help in advance!&lt;br/&gt;&lt;br/&gt;Kevin&lt;a class="if-quote-goto quote-link" href="#" data-id="41681"&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;Generally see &lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/howtocontroltiming.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/howto/howtocontroltiming.htm"&gt;https://www.millisecond.com/support/docs/v6/html/howto/howtocontroltiming.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;Re. (1): /trialduration defines fixed duration, it encompasses /posttrialpause. That is: There is a max. 2000ms response window, since /posttrialpause is 500. If a response occurs before 2000ms, then the posttrialpause is longer. Suppose response occurs at 1000ms, then the posttrialpause is 1500.&lt;br/&gt;Re. (2): No, the trial is always 2500ms.&lt;br/&gt;Re. (3): Explained under (1).&lt;br/&gt;Re. (4): The language has no screencolor &lt;strong&gt;element&lt;/strong&gt;, so I'm not sure what you are referring to. /screencolor exists as an &lt;strong&gt;attribute &lt;/strong&gt;for various elements (&amp;lt;defaults&amp;gt;, &amp;lt;block&amp;gt;):&amp;nbsp;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/attributes/screencolor.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/attributes/screencolor.htm"&gt;https://www.millisecond.com/support/docs/v6/html/language/attributes/screencolor.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;Re.(5): There is no &lt;strong&gt;endif &lt;/strong&gt;in Inquisit syntax, that is why it's not colored. I canot tell you why the original author put it there.&lt;br/&gt;&lt;br/&gt;You may benefit from working through the Programmer's Manual, which should aid your understanding of the code.&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf"&gt;&lt;a href="https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf"&gt;https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf&lt;/a&gt;&lt;/a&gt;</description><pubDate>Mon, 06 Oct 2025 11:48:39 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>