﻿<?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  » stimuli near the end of a trial with variable trial duration</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 13 May 2026 08:04:22 GMT</lastBuildDate><ttl>20</ttl><item><title>stimuli near the end of a trial with variable trial duration</title><link>https://forums.millisecond.com/Topic34255.aspx</link><description>Hi,&amp;nbsp;&lt;br/&gt;Is there a way to add stimuli near the end of the trial even though the trial duration is variable. The trialduration is calcuated using the rand(lowerLimit, upperLimit) function for each trial. But I need to add a few stimuli 10 ms before the end of this trial. Is there a way to do this besides just starting in new &amp;lt;trial&amp;gt; for the last 10 ms.&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;Nidhi Desai</description><pubDate>Wed, 04 May 2022 18:38:12 GMT</pubDate><dc:creator>nidhi_desai</dc:creator></item><item><title>RE: stimuli near the end of a trial with variable trial duration</title><link>https://forums.millisecond.com/Topic34300.aspx</link><description>&lt;blockquote data-id="34298" class="if-quote-wrapper" unselectable="on" data-guid="1651689404254" id="if_insertedNode_1651689403461" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34298" 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="34298" 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="34298" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nidhi_desai - 5/4/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-34298"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Thank you Dave for your response. I had tried using insertstimulustime in the past, but remember if it cause issues when the stimulus was a &amp;lt;port&amp;gt; instead of some other display type of stimuli. I am wondering if the insertstimulustime would work with inserting a port element into the trial as well??&lt;a class="if-quote-goto quote-link" href="#" data-id="34298"&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;Yes, you can absolutely use it to insert a port stimulus into the stimulus presentation sequence. The type of stimulus really does not matter.</description><pubDate>Wed, 04 May 2022 18:38:12 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: stimuli near the end of a trial with variable trial duration</title><link>https://forums.millisecond.com/Topic34298.aspx</link><description>Thank you Dave for your response. I had tried using insertstimulustime in the past, but remember if it cause issues when the stimulus was a &amp;lt;port&amp;gt; instead of some other display type of stimuli. I am wondering if the insertstimulustime would work with inserting a port element into the trial as well??</description><pubDate>Wed, 04 May 2022 17:44:20 GMT</pubDate><dc:creator>nidhi_desai</dc:creator></item><item><title>RE: stimuli near the end of a trial with variable trial duration</title><link>https://forums.millisecond.com/Topic34256.aspx</link><description>&lt;blockquote data-id="34255" class="if-quote-wrapper" unselectable="on" data-guid="1650885706454" id="if_insertedNode_1650885706205" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="34255" 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="34255" 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="34255" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;nidhi_desai - 4/24/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-34255"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&amp;nbsp;&lt;br/&gt;Is there a way to add stimuli near the end of the trial even though the trial duration is variable. The trialduration is calcuated using the rand(lowerLimit, upperLimit) function for each trial. But I need to add a few stimuli 10 ms before the end of this trial. Is there a way to do this besides just starting in new &amp;lt;trial&amp;gt; for the last 10 ms.&lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;Nidhi Desai&lt;a class="if-quote-goto quote-link" href="#" data-id="34255"&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;You can insert a stimulus into a trial's stimulus presentation sequence at a variable time per its insertstimulustime() function.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/current/html/language/functions/insertstimulustime.htm"&gt;https://www.millisecond.com/support/docs/current/html/language/functions/insertstimulustime.htm&lt;/a&gt;&lt;br/&gt;</description><pubDate>Mon, 25 Apr 2022 11:23:06 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>