﻿<?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  » Stimulus Randomization Question</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 29 Apr 2026 04:27:31 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10755.aspx</link><description>&lt;p&gt;I can do that. Note that you can simply attach the script to this thread (see the 'Options' tab for upload controls). Also, please indicate clearly where you see delays (i.e., include data to illustrate the issue) and what you expect the code to do (i.e., include comments in the relevant portions of your script).&lt;/p&gt;</description><pubDate>Wed, 26 Jun 2013 10:59:38 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10754.aspx</link><description>&lt;p&gt;Still having problems with extra ms intervals. Would you be willing to look at the code via email?&lt;/p&gt;</description><pubDate>Wed, 26 Jun 2013 10:47:51 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10733.aspx</link><description>&lt;p&gt;Cleanup, stimulus erasing. You should read the help topic mentioned previously ("How to control trial duration..."), the topic for the /erase attribute as well as the "How to erase stimuli" topic. Also: It is useful to think about timing strictly in terms of (display) frames and make proper use of /pretrialpause and /posttrialpause.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 14:49:33 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10732.aspx</link><description>&lt;p&gt;I am getting ranges between the ~88ms to ~146ms still.&lt;/p&gt;
&lt;p&gt;I have multiple trials for breaks in the beginning. What factors usually cause the trials to get extra ms added on?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 14:38:23 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10731.aspx</link><description>&lt;p&gt;[quote]So what would be the best way to eliminate the extra delay? Setting stims to erase=false?[/quote]&lt;/p&gt;
&lt;p&gt;Yes.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 14:21:45 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10730.aspx</link><description>&lt;p&gt;So what would be the best way to eliminate the extra delay? Setting stims to erase=false?&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 14:19:22 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10729.aspx</link><description>&lt;p&gt;As far as I can see, the instructions trial has no fixed duration. Also, as the marker depends on the time of response submission, there is no way to predict when exactly it will occur. Once it does occur, you've specified it to last 50 ms. Presumably, you also haven't set the respective &amp;lt;port&amp;gt; or other stims to /erase=false in &amp;lt;trial instructions&amp;gt;, thus introducing a frame between trials for cleanup / stimulus erasing. In sum, you may get a variable delay of a couple of frames.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 14:07:50 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10728.aspx</link><description>&lt;p&gt;Whoops. Put it in there. But there is still a delay of about ~88ms from beginning of instruction marker to the beginning of the break marker.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 14:02:06 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10727.aspx</link><description>&lt;p&gt;And why is that a problem? Also, why are you running the instructions trial in a separate block? Note that there'll be at least a single frame between &amp;lt;block&amp;gt;s for cleanup.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 13:57:24 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10726.aspx</link><description>&lt;p&gt;Here is the trials and blocks:&lt;br /&gt;&lt;br /&gt;&amp;lt;trial instructions&amp;gt;&lt;br /&gt;/ stimulustimes = [1=instructions]&lt;br /&gt;/ validresponse = ("0")&lt;br /&gt;/ errormessage = false&lt;br /&gt;/ recorddata = false&lt;br /&gt;/ responsemessage = ("0", tPort, 50)&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;trial break&amp;gt;&lt;br /&gt;/ stimulustimes&amp;nbsp;&amp;nbsp;&amp;nbsp; = [1=blank, bPort; 50=zeroPort]&lt;br /&gt;/ trialduration = values.break&lt;br /&gt;/ errormessage = false&lt;br /&gt;/ recorddata = false&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;trial warnsound&amp;gt;&lt;br /&gt;/ stimulustimes = [0=warnsound]&lt;br /&gt;/ trialduration = 500&lt;br /&gt;/ errormessage = false&lt;br /&gt;/ recorddata = false&lt;br /&gt;&amp;lt;/trial&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;block instructions&amp;gt;&lt;br /&gt;/ screencolor = (0, 0, 0)&lt;br /&gt;/ trials = [1=instructions]&lt;br /&gt;&amp;lt;/block&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;block warning&amp;gt;&lt;br /&gt;/ onblockbegin = [values.break=200]&lt;br /&gt;/ screencolor = (0, 0, 0)&lt;br /&gt;/ trials = [1=break; 2=warnsound; 3=break; 4=warnsound; 5=break; 6=warnsound]&lt;br /&gt;&amp;lt;/block&amp;gt;&lt;/p&gt;

&lt;p&gt;When I run this there is a gap of 100ms between Instructions and the first break in warning block.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 13:51:21 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10725.aspx</link><description>&lt;p&gt;[quote]&lt;/p&gt;
&lt;p&gt;Does Inquisit put an automatic 50ms gap between stimulus???&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;p&gt;[/quote]vg&lt;/p&gt;
&lt;p&gt;No. But you may be mistaken about how trial timings work / the interplay between the various components. For that, see the "How to Control Trial Duration and Inter-Trial Intervals" topic in the docs.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 13:49:13 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10724.aspx</link><description>&lt;p&gt;Sorry, I'm not following. (a) What's the relation to the trial-ratio question in this thread and (b) how would anyone know what code you are referring to (I don't see any of that posted)? Can you clarify? Otherwise I can't help here.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 13:47:31 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10723.aspx</link><description>&lt;p&gt;Does Inquisit put an automatic 50ms gap between stimulus???&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 13:46:08 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10722.aspx</link><description>&lt;p&gt;Looking through my code I do not see what the cause could be. It's just a random gap of ~100ms between marker data.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 13:42:01 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10721.aspx</link><description>&lt;p&gt;I am having a 100ms gap between the instructions and the beginning of a blank screen.&lt;/p&gt;
&lt;p&gt;The instructions end when 0 key is pressed.&lt;br /&gt;I need it to be instant. &lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 13:22:03 GMT</pubDate><dc:creator>Lostcode</dc:creator></item><item><title>RE: Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10719.aspx</link><description>&lt;p&gt;Yes, selection at the &amp;lt;block&amp;gt; level works according to the proportions given. See the examples in the documentation for the /trials attribute for details. One short example here (many more can be found by searching the forum):&lt;/p&gt;
&lt;p&gt;/ trials = [1-10 = noreplace(a,a,b,b,b)]&lt;/p&gt;
&lt;p&gt;will result in 4 'a' trials and 6 'b' trials in random order.&lt;/p&gt;
&lt;p&gt;Another option is to use a &amp;lt;list&amp;gt; element for trial selection in the respective &amp;lt;block&amp;gt;s' /trials attribute. The desired trial-ratio can be specified via the &amp;lt;list&amp;gt;'s /itemprobabilities.&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 09:18:20 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>Stimulus Randomization Question</title><link>https://forums.millisecond.com/Topic10718.aspx</link><description>&lt;p&gt;I have two stimuli that need to be displayed 250 times in total.&lt;/p&gt;
&lt;p&gt;Image 1 = 48 times&lt;/p&gt;
&lt;p&gt;Image 2 = 202 times&lt;/p&gt;
&lt;p&gt;They must be randomized though.&lt;/p&gt;
&lt;p&gt;Anyway to tell the block to do this?&lt;/p&gt;</description><pubDate>Mon, 24 Jun 2013 09:04:36 GMT</pubDate><dc:creator>Lostcode</dc:creator></item></channel></rss>