﻿<?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  » timeout / Time is wrong / Block skips too fast</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 16 Sep 2026 06:39:40 GMT</lastBuildDate><ttl>20</ttl><item><title>timeout / Time is wrong / Block skips too fast</title><link>https://forums.millisecond.com/Topic17803.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;i'am a student who has to run an Inquisit 3 skript on Inquisit 4.&lt;br/&gt;Now the following problem occurs:&lt;br/&gt;&lt;br/&gt;Some blocks are only displayed for seconds and then the next block is displayed. I guess it has something to do with "timeout".&lt;br/&gt;/ timeout = 90000&lt;br/&gt;&lt;br/&gt;i found a note regarding this problem in the Manual (see below).&lt;br/&gt;&lt;br/&gt;Will it&amp;nbsp; work if i change "/ timeout = 90000" to "/ timeout = max (90000,1)"?&lt;br/&gt;&lt;br/&gt;Any help is appreciated,&lt;br/&gt;Alex&lt;br/&gt;&lt;h3&gt;Note From the Manual:&lt;br/&gt;Simple Attributes&lt;/h3&gt;    &lt;p&gt;        Simple attributes are just regular old attributes that can be set to a single numeric        value, or possibly a set of numeric values. For example, the timeout attribute consists        of a single numeric value, for example /timeout = 1000. The size attribute consists        of two numeric attributes, for example /size = (200, 300).&amp;nbsp; Inquisit allows        you to set these attribute values to either        a constant number such as "5" or a numeric        expression such as "sqrt(5) + 22 - text.target.currentitemnumber". &amp;nbsp;&lt;/p&gt;    &lt;p&gt;        As an example, imagine you are running a task in which subjects try to answer as        many questions as possible in 5 minutes. When their time is up, the current trial        is interrupted and no more trials are run. One way to achieve this is to set the        timeout of each trial as a function of the time elapsed since the task started.        This might look like the following:&lt;/p&gt;    &lt;p&gt;        &lt;span class="code"&gt;&amp;lt;trial timedtaska&amp;gt;&lt;br/&gt;            / stimulustimes = [1=question]&lt;br/&gt;            / validresponse = ("a", "b")&lt;br/&gt;            / correctresponse = ("a")&lt;br/&gt;            / timeout = 18000000 - block.timedtask.elapsedtime&lt;br/&gt;            &amp;lt;/trial&amp;gt;&lt;/span&gt;&lt;/p&gt;    &lt;p&gt;        The above example computes the number of milliseconds remaining in the 5 minute        period by subtracting the number of milliseconds that have elapsed since the start        of the block from 18000000, which is the number of millisecond in a 5 minute interval.    &lt;/p&gt;    &lt;p&gt;        There is a problem with this expression however, namely that it might return a negative        number, which is not a valid timeout value, or it might return 0, which Inquisit        interprets to mean no timeout at all. We can fix this by uses Inquisit's "max" function,        which returns the maximum value of two expressions. The following ensures that the        timeout is never set to a value less than 1 millisecond.&lt;/p&gt;    &lt;p&gt;        &lt;span class="code"&gt;&amp;lt;trial timedtaska&amp;gt;&lt;br/&gt;            / stimulustimes = [1=question]&lt;br/&gt;                / validresponse = ("a", "b")&lt;br/&gt;                / correctresponse = ("a")&lt;br/&gt;                / timeout = max(18000000 - block.timedtask.elapsedtime, 1)&lt;br/&gt;                &amp;lt;/trial&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 24 Nov 2015 09:40:42 GMT</pubDate><dc:creator>AlexM</dc:creator></item><item><title>RE: timeout / Time is wrong / Block skips too fast</title><link>https://forums.millisecond.com/Topic17813.aspx</link><description>Inquisit 3 licenses are still available -- contact sales&amp;lt;at&amp;gt;millisecond.com.&lt;br/&gt;&lt;br/&gt;An Inquisit 4 license is not valid for Inquisit 3 and vice versa.&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;</description><pubDate>Tue, 24 Nov 2015 09:40:42 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: timeout / Time is wrong / Block skips too fast</title><link>https://forums.millisecond.com/Topic17811.aspx</link><description>Thank you for the generous offer. &lt;br/&gt;But first we will test it with Inquisit 3, so we can be sure to have the exact same testing situation.&lt;br/&gt;&lt;br/&gt;Is it still possible to buy a license for Inquisit 3? &lt;br/&gt;Or is a Inquisit 4 license also valid for Inquisit 3?&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 24 Nov 2015 08:38:01 GMT</pubDate><dc:creator>AlexM</dc:creator></item><item><title>RE: timeout / Time is wrong / Block skips too fast</title><link>https://forums.millisecond.com/Topic17807.aspx</link><description>You are welcome to attach the script to a private message. I will, of course, not publish or share it with anyone.&lt;br/&gt;</description><pubDate>Tue, 24 Nov 2015 08:09:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: timeout / Time is wrong / Block skips too fast</title><link>https://forums.millisecond.com/Topic17806.aspx</link><description>Yes, you are right. Unfortuately i am not allowed to post the code.&lt;br/&gt;We will try to run it in Inquisit 3 again. Seems like the simpelst solution.&lt;br/&gt;&lt;br/&gt;Thx for the reply.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 24 Nov 2015 07:46:04 GMT</pubDate><dc:creator>AlexM</dc:creator></item><item><title>RE: timeout / Time is wrong / Block skips too fast</title><link>https://forums.millisecond.com/Topic17805.aspx</link><description>Since you did not provide the relevant portions of your actual code, the question "what's wrong?" is impossible to answer. So is the question&lt;br/&gt;&lt;br/&gt;&amp;gt; Will it&amp;nbsp; work if i change "/ timeout = 90000" to "/ timeout = max (90000,1)"?&lt;br/&gt;&lt;br/&gt;However, the above should be easy enough to figure out by just trying it?&lt;br/&gt;</description><pubDate>Tue, 24 Nov 2015 07:31:45 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>