﻿<?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  » removestimulustime() and removcestimulusframe() remove the stimuli but not the control</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 29 May 2026 17:20:05 GMT</lastBuildDate><ttl>20</ttl><item><title>removestimulustime() and removcestimulusframe() remove the stimuli but not the control</title><link>https://forums.millisecond.com/Topic16724.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I am using the "removestimulusframe()" to remove a picture from a trial the second time the trial runs.&lt;br/&gt; The function does indeed remove the picture but i still have to wait the specific timeframe that was specified by the control that was removed. (The same goes for removestimulustime()).&lt;br/&gt;&lt;br/&gt;e.g. &lt;br/&gt;In an expression within a block, before the trial runs for the first time : trial.x_x_trial.insertstimulusframe(picture.go,300);&lt;br/&gt;The trial has /ontrialend=[trial.x_x_trial.removestimulusframe(300)] and /branch = [if(values.trialno&amp;lt;values.num_responses) trial.x_x_trial]&lt;br/&gt;The second time the trial runs- i don't see the stimulus specified but i can't respond immediately.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Please let me know if my post is not clear enough and i could include some code.&lt;br/&gt;&lt;br/&gt;Thank you in advance!&lt;br/&gt;Konstantina&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 16 Jul 2015 13:18:01 GMT</pubDate><dc:creator>Konstantina</dc:creator></item><item><title>RE: removestimulustime() and removcestimulusframe() remove the stimuli but not the control</title><link>https://forums.millisecond.com/Topic16734.aspx</link><description>Thanks a lot Dave! beginresponseframe did it!&lt;br/&gt;</description><pubDate>Thu, 16 Jul 2015 13:18:01 GMT</pubDate><dc:creator>Konstantina</dc:creator></item><item><title>RE: removestimulustime() and removcestimulusframe() remove the stimuli but not the control</title><link>https://forums.millisecond.com/Topic16730.aspx</link><description>Depends on how you've set up the trial and the other stimuli it displays. If you have&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=a; 100=b; 200=c]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;/ onblockbegin = [trial.mytrial.insertstimulusframe(text.mytext,300); ]&lt;br/&gt;&lt;br/&gt;then &lt;br/&gt;&lt;br/&gt;/ ontrialend = [trial.mytrial.resetstimulusframes(); ] &lt;br/&gt;&lt;br/&gt;will effectively only remove that single injected stimulus, while the rest remains intact.&lt;br/&gt;&lt;br/&gt;Alternatively, you can force the beginsresponseframe or -time property to the desired value in addition to removing the frame:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ onblockbegin = [trial.mytrial.insertstimulusframe(text.mytext,300); ]&lt;br/&gt;/ trials = [1-2=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialend = [trial.mytrial.removestimulusframe(300); trial.mytrial.beginresponseframe=1; ]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("GO")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 16 Jul 2015 11:49:06 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: removestimulustime() and removcestimulusframe() remove the stimuli but not the control</title><link>https://forums.millisecond.com/Topic16728.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;Thank you for the prompt reply. I only have to remove the last stimulus, i need the rest to remain as they are and so resetstimulusframes() won't work for me.&lt;br/&gt;Is there anything else i can do to remove just this one stimulus? &lt;br/&gt;&lt;br/&gt;Thank you,&lt;br/&gt;Konstantina&lt;br/&gt;&lt;div style="position: absolute; top: -1999px; left: -1988px;" id="stcpDiv"&gt;.resetstimulusframes()#sthash.5X5jwNvt.dpuf&lt;div style="position: absolute; top: -1999px; left: -1988px;" id="stcpDiv"&gt;.resetstimulusframes()#sthash.5X5jwNvt.dpufresetstimulus&lt;/div&gt;&lt;/div&gt;</description><pubDate>Thu, 16 Jul 2015 11:18:29 GMT</pubDate><dc:creator>Konstantina</dc:creator></item><item><title>RE: removestimulustime() and removcestimulusframe() remove the stimuli but not the control</title><link>https://forums.millisecond.com/Topic16727.aspx</link><description>Try using the resetstimulusframes() function instead, which restores the &amp;lt;trial&amp;gt;'s original state (i.e., before the picture was injected into the stimulus presentation sequence):&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ onblockbegin = [trial.mytrial.insertstimulusframe(text.mytext,300); ]&lt;br/&gt;/ trials = [1-2=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialend = [trial.mytrial.resetstimulusframes(); ] &lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("GO")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 16 Jul 2015 10:59:27 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>