﻿<?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 during same frames with insertstimulusframes</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 13 Sep 2026 02:44:34 GMT</lastBuildDate><ttl>20</ttl><item><title>Stimulus during same frames with insertstimulusframes</title><link>https://forums.millisecond.com/Topic19542.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I have a problem with insertstimulusframe - I have different SOA, and one SOA (9 frames) requires the target ("picture.righttarget") to be drawn on the exact same frame (70) the cue ends ("rightsquare_out, rightsquare_in" whereby rightsquare_in is the black interior of a white square ("rightsqaure_out"), like so: &lt;img src="https://www.millisecond.com/forums/uploads/images/7561eb3c-250f-4f76-a258-873e.png" alt="https://www.millisecond.com/forums/uploads/images/7561eb3c-250f-4f76-a258-873e.png" /&gt;&lt;br/&gt;&lt;br/&gt;Unfortunately, insertstimulusframe seems to draw the target before the squares, which leads to the target not appearing at all when currentsoa = 9. Is there any way to specify the order several things are drawn during one frame with insertstimulusframes?&lt;br/&gt;&lt;br/&gt;My code is &lt;br/&gt;&amp;lt;trial same_late_right&amp;gt;&lt;br/&gt;/ontrialbegin = [trial.same_late_right.insertstimulusframe(picture.righttarget, (61 + values.currentsoa))]&lt;br/&gt;/stimulusframes = [1 = fixation; 31=centersquare_out, centersquare_in, leftsquare_out, leftsquare_in,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; rightsquare_out, rightsquare_in; 61 = rightsquare_out_bright, rightsquare_in; 70 = rightsquare_out,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; rightsquare_in; 91 = centersquare_out_bright, centersquare_in; 100 = centersquare_out, centersquare_in]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 26 Aug 2016 12:34:29 GMT</pubDate><dc:creator>BenS</dc:creator></item><item><title>RE: Stimulus during same frames with insertstimulusframes</title><link>https://forums.millisecond.com/Topic19590.aspx</link><description>It does, which makes me very confused :D. I'll take a dive into my code and try to find differences.&lt;br/&gt;</description><pubDate>Fri, 26 Aug 2016 12:34:29 GMT</pubDate><dc:creator>BenS</dc:creator></item><item><title>RE: Stimulus during same frames with insertstimulusframes</title><link>https://forums.millisecond.com/Topic19544.aspx</link><description>&amp;gt; Unfortunately, insertstimulusframe seems to draw the target before the squares, which leads to the target not appearing at all when &lt;br/&gt;&amp;gt; currentsoa = 9.&lt;br/&gt;&lt;br/&gt;Actually that is not how insertstimulusframe() is supposed to behave (and it doesn't behave like that for me). The target is (supposed to be) inserted *after* the stimuli that are already present in the frame (the outer and inner squares). Here's a simplified script for testing purposes &lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-4=example]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial example&amp;gt;&lt;br/&gt;/ontrialbegin = [trial.example.insertstimulusframe(text.target, (61 + values.currentsoa))]&lt;br/&gt;/ ontrialend = [trial.example.resetstimulusframes(); ]&lt;br/&gt;/stimulusframes = [1 = fixation; 70 = square_out, square_in; 91 = blank]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ currentsoa = 9&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape square_out&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = orangered&lt;br/&gt;/ size = (210px, 210px)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape square_in&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ size = (200px, 200px)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text target&amp;gt;&lt;br/&gt;/ items = ("TARGET")&lt;br/&gt;/ txcolor = yellow&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;shape blank&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = white&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;br/&gt;and a screenshot of the result. &lt;br/&gt;&lt;br/&gt;&lt;img src="https://www.millisecond.com/forums/uploads/images/ed18e5f1-2c43-4967-a385-1f4c.jpg" alt="https://www.millisecond.com/forums/uploads/images/ed18e5f1-2c43-4967-a385-1f4c.jpg"&gt;&lt;br/&gt;&lt;br/&gt;I'm running this under the most recent Inquisit 4 release. Does the target stimulus show up on your system when running the above example script? &lt;br/&gt;</description><pubDate>Sun, 21 Aug 2016 15:20:15 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>