﻿<?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  » Variable to control stimulus times</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 14 Sep 2026 10:02:10 GMT</lastBuildDate><ttl>20</ttl><item><title>Variable to control stimulus times</title><link>https://forums.millisecond.com/Topic20499.aspx</link><description>Is it possible to control stimulus presentation times via a variable?&lt;br/&gt;&lt;br/&gt;For example:&lt;br/&gt;/ stimulustimes = [1=Fixation; 1000=Video1; 1500=TextLT; 2000=MaskLT]&lt;br/&gt;&lt;br/&gt;if I wanted to display the TextLT and MaskLT at different times, can I control this programmatically (replacing 1500 and 2000 with a value or parameter), or do I need different types of trials with pre-specified stimulus times for each stimulus presentation sequence?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Lisa</description><pubDate>Tue, 24 Jan 2017 07:07:15 GMT</pubDate><dc:creator>lwise</dc:creator></item><item><title>RE: Variable to control stimulus times</title><link>https://forums.millisecond.com/Topic20522.aspx</link><description>&lt;div data-id="20516" class="if-quote-wrapper" unselectable="on" data-guid="1485270323387"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20516" 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="20516" 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="20516" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;lwise - Monday, January 23, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20516"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20503" class="if-quote-wrapper" unselectable="on" data-guid="1485270323387"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20503" 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="20503" 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="20503" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, January 23, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20503"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20499" class="if-quote-wrapper" unselectable="on" data-guid="1485270323387"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20499" 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="20499" 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="20499" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;lwise - Sunday, January 22, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20499"&gt;&lt;div class="if-quote-message-margin"&gt;Is it possible to control stimulus presentation times via a variable?&lt;br/&gt;&lt;br/&gt;For example:&lt;br/&gt;/ stimulustimes = [1=Fixation; 1000=Video1; 1500=TextLT; 2000=MaskLT]&lt;br/&gt;&lt;br/&gt;if I wanted to display the TextLT and MaskLT at different times, can I control this programmatically (replacing 1500 and 2000 with a value or parameter), or do I need different types of trials with pre-specified stimulus times for each stimulus presentation sequence?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Lisa&lt;a class="if-quote-goto quote-link" href="#" data-id="20499"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can control this programmatically, but not via the /stimulustimes attribute. Instead you ought to use the /insertstimulustime function /ontrialbegin. See e.g.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/forums/FindPost19286.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/FindPost19286.aspx"&gt;https://www.millisecond.com/forums/FindPost19286.aspx&lt;/a&gt;&lt;/a&gt; or &lt;a href="https://www.millisecond.com/forums/FindPost19694.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/FindPost19694.aspx"&gt;https://www.millisecond.com/forums/FindPost19694.aspx&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20503"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks for that - it solves my problem.&lt;br/&gt;&lt;br/&gt;Where do I find documentation on the various things one can do with /ontrialbegin ?&lt;br/&gt;&lt;br/&gt;Thanks again&lt;br/&gt;Lisa&lt;a class="if-quote-goto quote-link" href="#" data-id="20516"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;/ontrialbegin, /ontrialend, etc. are event attributes. They execute logic at the start or end of a trial. See the documentation on event atributes, the functions reference, as well as the available properties and functions in a given element's language reference topic.&lt;br/&gt;</description><pubDate>Tue, 24 Jan 2017 07:07:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title /><link>https://forums.millisecond.com/Topic20516.aspx</link><description>&lt;div data-id="20503" class="if-quote-wrapper" unselectable="on"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20503" 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="20503" 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="20503" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, January 23, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20503"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20499" class="if-quote-wrapper" unselectable="on" data-guid="1485184877441"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20499" 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="20499" 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="20499" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;lwise - Sunday, January 22, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20499"&gt;&lt;div class="if-quote-message-margin"&gt;Is it possible to control stimulus presentation times via a variable?&lt;br/&gt;&lt;br/&gt;For example:&lt;br/&gt;/ stimulustimes = [1=Fixation; 1000=Video1; 1500=TextLT; 2000=MaskLT]&lt;br/&gt;&lt;br/&gt;if I wanted to display the TextLT and MaskLT at different times, can I control this programmatically (replacing 1500 and 2000 with a value or parameter), or do I need different types of trials with pre-specified stimulus times for each stimulus presentation sequence?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Lisa&lt;a class="if-quote-goto quote-link" href="#" data-id="20499"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can control this programmatically, but not via the /stimulustimes attribute. Instead you ought to use the /insertstimulustime function /ontrialbegin. See e.g.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/forums/FindPost19286.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/FindPost19286.aspx"&gt;https://www.millisecond.com/forums/FindPost19286.aspx&lt;/a&gt;&lt;/a&gt; or &lt;a href="https://www.millisecond.com/forums/FindPost19694.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/FindPost19694.aspx"&gt;https://www.millisecond.com/forums/FindPost19694.aspx&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20503"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thanks for that - it solves my problem.&lt;br/&gt;&lt;br/&gt;Where do I find documentation on the various things one can do with /ontrialbegin ?&lt;br/&gt;&lt;br/&gt;Thanks again&lt;br/&gt;Lisa</description><pubDate>Mon, 23 Jan 2017 18:45:38 GMT</pubDate><dc:creator>lwise</dc:creator></item><item><title>RE: Variable to control stimulus times</title><link>https://forums.millisecond.com/Topic20503.aspx</link><description>&lt;div data-id="20499" class="if-quote-wrapper" unselectable="on" data-guid="1485184877441"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20499" 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="20499" 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="20499" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;lwise - Sunday, January 22, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20499"&gt;&lt;div class="if-quote-message-margin"&gt;Is it possible to control stimulus presentation times via a variable?&lt;br/&gt;&lt;br/&gt;For example:&lt;br/&gt;/ stimulustimes = [1=Fixation; 1000=Video1; 1500=TextLT; 2000=MaskLT]&lt;br/&gt;&lt;br/&gt;if I wanted to display the TextLT and MaskLT at different times, can I control this programmatically (replacing 1500 and 2000 with a value or parameter), or do I need different types of trials with pre-specified stimulus times for each stimulus presentation sequence?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Lisa&lt;a class="if-quote-goto quote-link" href="#" data-id="20499"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You can control this programmatically, but not via the /stimulustimes attribute. Instead you ought to use the /insertstimulustime function /ontrialbegin. See e.g.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/forums/FindPost19286.aspx"&gt;https://www.millisecond.com/forums/FindPost19286.aspx&lt;/a&gt; or &lt;a href="https://www.millisecond.com/forums/FindPost19694.aspx"&gt;https://www.millisecond.com/forums/FindPost19694.aspx&lt;/a&gt;&lt;br/&gt;</description><pubDate>Mon, 23 Jan 2017 07:24:51 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>