﻿<?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  » GNGT: Problems with the script (intertrial interval)</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 21 Sep 2026 09:48:14 GMT</lastBuildDate><ttl>20</ttl><item><title>GNGT: Problems with the script (intertrial interval)</title><link>https://forums.millisecond.com/Topic23827.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;we adapted a script and programmed a GNGT. We defined a testblock, the pictorial stimuli and the trials (see elements of the scripts below). Originally, we wanted the stimuli to be presented for 250ms, thus, blankscreen was set to 250ms. However, in a new study, the stimuli should be presented for a max. of 1000ms (or until a response is made for no targets) and then an intertrial interval of 1000ms should follow.&lt;br/&gt;However, if blankscreen (written in bold) is set to 1000, the stimuli are presented longer, but if the spacebar is pressed, the next pictures appears on the screen immediately. What do I have to do in order to insert an ITI of 1s after the correct response was executed?&lt;br/&gt;&lt;br/&gt;Thanks a lot in advance for your help!&lt;br/&gt;Best,&lt;br/&gt;Charlotte&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial notarget&amp;gt;&lt;br/&gt;/ ontrialbegin = [if(values.expcondition == 1) {values.stimulus=list.nt1_stimuli.nextvalue;values.trialcount += 1; values.count_nogo += 1; values.targettype = 2}&lt;br/&gt;else if(values.expcondition == 2) {values.stimulus=list.nt2_stimuli.nextvalue;values.trialcount += 1; values.count_nogo += 1; values.targettype = 2}] &lt;br/&gt;/ stimulustimes = [0=blankscreen; 1=stimuli; &lt;strong&gt;250=blankscreen&lt;/strong&gt;;  1150=blankscreen]&lt;br/&gt;/ validresponse = (57, noresponse)&lt;br/&gt;/ correctresponse = (57)&lt;br/&gt;/ beginresponsetime = 1&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ response = timeout(1000)&lt;br/&gt;/ ontrialend = [if (trial.notarget.correct) values.correctcount += 1]&lt;br/&gt;/ ontrialend = [if (trial.notarget.correct) {values.correct_go += 1; values.sumrt += trial.notarget.latency}]&lt;br/&gt;/ ontrialend = [if (trial.notarget.error) values.omissionerrors += 1]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block testblock&amp;gt;&lt;br/&gt;/ trials = [1=start; 2-321=noreplace(notarget, notarget, notarget, notarget, notarget, notarget, target,target)]&lt;br/&gt;/ preinstructions = (Experiment)&lt;br/&gt;/ onblockbegin = [values.targettype = 0; values.correctresp = 0; values.trialcount = 0; values.correctcount = 0; values.count_go = 0; values.correct_go = 0; values.count_nogo = 0; values.correct_nogo = 0; values.commissionerror = 0; values.sumrt = 0; values.omissionerrors = 0]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture stimuli &amp;gt;&lt;br/&gt;/ items = stimuli&lt;br/&gt;/ select = values.stimulus&lt;br/&gt;/ position = (50%,50%)&lt;br/&gt;/ size = (30%,30%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 06 Feb 2018 00:56:28 GMT</pubDate><dc:creator>c.witteki</dc:creator></item><item><title>RE: GNGT: Problems with the script (intertrial interval)</title><link>https://forums.millisecond.com/Topic23834.aspx</link><description>Hi Dave,&lt;br/&gt;&lt;br/&gt;I think that worked! Thanks for your help.&lt;br/&gt;&lt;br/&gt;Best&lt;br/&gt;Charlotte&lt;br/&gt;</description><pubDate>Tue, 06 Feb 2018 00:56:28 GMT</pubDate><dc:creator>c.witteki</dc:creator></item><item><title>RE: GNGT: Problems with the script (intertrial interval)</title><link>https://forums.millisecond.com/Topic23830.aspx</link><description>&lt;div data-id="23827" class="if-quote-wrapper" unselectable="on" data-guid="1517852381956"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23827" 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="23827" 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="23827" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;c.witteki - Monday, February 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23827"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt;we adapted a script and programmed a GNGT. We defined a testblock, the pictorial stimuli and the trials (see elements of the scripts below). Originally, we wanted the stimuli to be presented for 250ms, thus, blankscreen was set to 250ms. However, in a new study, the stimuli should be presented for a max. of 1000ms (or until a response is made for no targets) and then an intertrial interval of 1000ms should follow.&lt;br/&gt;However, if blankscreen (written in bold) is set to 1000, the stimuli are presented longer, but if the spacebar is pressed, the next pictures appears on the screen immediately. What do I have to do in order to insert an ITI of 1s after the correct response was executed?&lt;br/&gt;&lt;br/&gt;Thanks a lot in advance for your help!&lt;br/&gt;Best,&lt;br/&gt;Charlotte&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial notarget&amp;gt;&lt;br/&gt;/ ontrialbegin = [if(values.expcondition == 1) {values.stimulus=list.nt1_stimuli.nextvalue;values.trialcount += 1; values.count_nogo += 1; values.targettype = 2}&lt;br/&gt;else if(values.expcondition == 2) {values.stimulus=list.nt2_stimuli.nextvalue;values.trialcount += 1; values.count_nogo += 1; values.targettype = 2}] &lt;br/&gt;/ stimulustimes = [0=blankscreen; 1=stimuli; &lt;strong&gt;250=blankscreen&lt;/strong&gt;;  1150=blankscreen]&lt;br/&gt;/ validresponse = (57, noresponse)&lt;br/&gt;/ correctresponse = (57)&lt;br/&gt;/ beginresponsetime = 1&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ response = timeout(1000)&lt;br/&gt;/ ontrialend = [if (trial.notarget.correct) values.correctcount += 1]&lt;br/&gt;/ ontrialend = [if (trial.notarget.correct) {values.correct_go += 1; values.sumrt += trial.notarget.latency}]&lt;br/&gt;/ ontrialend = [if (trial.notarget.error) values.omissionerrors += 1]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block testblock&amp;gt;&lt;br/&gt;/ trials = [1=start; 2-321=noreplace(notarget, notarget, notarget, notarget, notarget, notarget, target,target)]&lt;br/&gt;/ preinstructions = (Experiment)&lt;br/&gt;/ onblockbegin = [values.targettype = 0; values.correctresp = 0; values.trialcount = 0; values.correctcount = 0; values.count_go = 0; values.correct_go = 0; values.count_nogo = 0; values.correct_nogo = 0; values.commissionerror = 0; values.sumrt = 0; values.omissionerrors = 0]&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture stimuli &amp;gt;&lt;br/&gt;/ items = stimuli&lt;br/&gt;/ select = values.stimulus&lt;br/&gt;/ position = (50%,50%)&lt;br/&gt;/ size = (30%,30%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23827"&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;Your &amp;lt;picture&amp;gt; element is set to /erase=false, i.e. it will remain on-screen unless it is overwritten by a blank or other stimulus later in the trial. This doesn't happen if a response occurs prior to the blankscreen stimulus --&amp;nbsp; the image will remain visible during the 500ms posttrialpause you defined. &lt;br/&gt;&lt;br/&gt;&amp;lt;picture stimuli &amp;gt;&lt;br/&gt;/ items = stimuli&lt;br/&gt;/ select = values.stimulus&lt;br/&gt;/ position = (50%,50%)&lt;br/&gt;/ size = (30%,30%)&lt;br/&gt;&lt;strong&gt;/erase = false&lt;/strong&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Either remove the /erase attribute from the &amp;lt;picture&amp;gt; (which will lead to it being automatically erased in case of a response) or make use of an additional /responsemessage attribute in the &amp;lt;trial&amp;gt; that overwrites the picture with the blankscreen stimulus in case of anyresponse.&lt;br/&gt;&lt;br/&gt;Finally, for an ITI of 1000ms, you'll want the /posttrialpause set to 1000 (not 500).&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;</description><pubDate>Mon, 05 Feb 2018 09:45:42 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>