﻿<?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  » controlling delay to the branching trial</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 11:15:29 GMT</lastBuildDate><ttl>20</ttl><item><title>controlling delay to the branching trial</title><link>https://forums.millisecond.com/Topic19422.aspx</link><description>hi,&lt;br/&gt;&lt;br/&gt;i'd like to present a trial, and then immediately after the P indicates their response, present another prompt. My code below has a delay between the P response and the onset of the next trial. I'm not sure how to shorten it.&lt;br/&gt;&lt;br/&gt;Here's the script:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial base_negUP&amp;gt;  &lt;br/&gt;/ validresponse = ("a", "5")&lt;br/&gt;/ correctresponse = ("a")&lt;br/&gt;/ stimulustimes = [0 = noreplace (base); 200 = noreplace (blank);  300 = noreplace (badtarget)]&lt;br/&gt;/ branch = [trial.what_prompt]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial what_prompt&amp;gt;&lt;br/&gt;/ validresponse = ("a", "5")&lt;br/&gt;/ correctresponse = ("")&lt;br/&gt;/ stimulustimes = [0 = noreplace (what); 300 = noreplace (blank)]&lt;br/&gt;/ trialduration = 700&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 26 Jul 2016 09:53:35 GMT</pubDate><dc:creator>vz29</dc:creator></item><item><title>RE: controlling delay to the branching trial</title><link>https://forums.millisecond.com/Topic19426.aspx</link><description>thanks, dave.</description><pubDate>Tue, 26 Jul 2016 09:53:35 GMT</pubDate><dc:creator>vz29</dc:creator></item><item><title>RE: controlling delay to the branching trial</title><link>https://forums.millisecond.com/Topic19425.aspx</link><description>The slight delay is probably due to one or several of the stimuli presented by &amp;lt;trial  base_negUP&amp;gt; being erased. The delay will thus be on the order of 1 to 2 display frames. You can only get rid of it by setting all the stimulus element's /erase attributes to false as in &lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;etc.&lt;br/&gt;&lt;br/&gt;If need be, have the follow up &amp;lt;trial&amp;gt; overwrite any stimuli by displaying the "blank" shape at the start.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial what_prompt&amp;gt;&lt;br/&gt;/ validresponse = ("a", "5")&lt;br/&gt;/ correctresponse = ("")&lt;br/&gt;&lt;strong&gt;/ stimulustimes = [0 = blank, what; 300 = blank]&lt;/strong&gt;&lt;br/&gt;/ timeout= 700&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Also, &amp;lt;trial what_prompt&amp;gt; will only start accepting response after its final stimulus has been displayed ("blank" at 300ms). If you want the trial to start accepting responses earlier (starting with the presentation of "what"), you should specify&lt;br/&gt;&lt;br/&gt;&amp;lt;trial what_prompt&amp;gt;&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [trial.what_prompt.resetstimulusframes(); ]&lt;/strong&gt;&lt;br/&gt;/ validresponse = ("a", "5")&lt;br/&gt;/ correctresponse = ("")&lt;br/&gt;&lt;strong&gt;/ stimulustimes = [0 = blank, what; 300 = blank]&lt;/strong&gt;&lt;br/&gt;/ timeout= 700&lt;br/&gt;&lt;strong&gt;/ beginresponsetime = 0&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;For information regarding Inquisit's stimulus erasing behavior, see the "How to erase stimuli" topic in the documentation. For an overview of the various components involved in timing stimuli, trials and responses, I would recommend taking a look at the "How to Control Trial Duration and Inter-Trial Intervals" topic.&lt;br/&gt;</description><pubDate>Mon, 25 Jul 2016 11:02:40 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: controlling delay to the branching trial</title><link>https://forums.millisecond.com/Topic19424.aspx</link><description>Thanks. After the presentation of trial base_negUP there is a slight delay. How can I get rid of this?</description><pubDate>Mon, 25 Jul 2016 10:02:01 GMT</pubDate><dc:creator>vz29</dc:creator></item><item><title>RE: controlling delay to the branching trial</title><link>https://forums.millisecond.com/Topic19423.aspx</link><description>&amp;lt;trial what_prompt&amp;gt;&lt;br/&gt;/ validresponse = ("a", "5")&lt;br/&gt;/ correctresponse = ("")&lt;br/&gt;/ stimulustimes = [0 = noreplace (what); 300 = noreplace (blank)]&lt;br/&gt;&lt;strong&gt;/ trialduration = 700&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;/trialduration *fixes* the trial's duration to the specified value -- i.e., the above trial will *always* last 700ms, regardless of when you respond. If you respond prior to 700ms, there will be a delay for the remainder of the 700ms until the next trial starts.&lt;br/&gt;&lt;br/&gt;If you want to define a *maximum* duration for the trial, use /timeout, not /trialduration.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial what_prompt&amp;gt;&lt;br/&gt;/ validresponse = ("a", "5")&lt;br/&gt;/ correctresponse = ("")&lt;br/&gt;/ stimulustimes = [0 = noreplace (what); 300 = noreplace (blank)]&lt;br/&gt;&lt;strong&gt;/ timeout= 700&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;The trial will then terminate as soon as the subjects responds or -- no response occurs -- end after 700ms.&lt;br/&gt;</description><pubDate>Mon, 25 Jul 2016 07:16:16 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>