﻿<?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  » Adding error feedback to downloaded AAT script</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 28 Sep 2026 09:16:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Adding error feedback to downloaded AAT script</title><link>https://forums.millisecond.com/Topic27689.aspx</link><description>Hi there, hoping someone can help.&lt;br/&gt;&lt;br/&gt;I've downloaded the AAT script from the website and modified it to show my images and its all working well. What I want to do now is display a message to participants saying "Incorrect" after each trial where they make an error.&lt;br/&gt;&lt;br/&gt;I've tried putting the /errormessage option in the block but this seems to mess things up a lot and doesn't work.&lt;br/&gt;&lt;br/&gt;Has anyone had any success in adding error feedback to this script?&lt;br/&gt;&lt;br/&gt;I've attached my working version of the script but I haven't made many changes to the downloaded script other than to the items and the number of stimulus categories/trial types.</description><pubDate>Tue, 03 Sep 2019 09:05:40 GMT</pubDate><dc:creator>drud9876</dc:creator></item><item><title>RE: Adding error feedback to downloaded AAT script</title><link>https://forums.millisecond.com/Topic27708.aspx</link><description>&lt;div data-id="27707" class="if-quote-wrapper" unselectable="on" data-guid="1567526563259"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27707" 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="27707" 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="27707" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;drud9876 - 9/3/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27707"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;Yes that must be what is happening. Because I am definitely returning the joystick to the center within the 2 second window and then the trial gets "stuck" until I press something or move the joystick slightly.&amp;nbsp;&lt;a class="if-quote-goto quote-link" href="#" data-id="27707"&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;Okay. I assume you want the error feedback displayed for some sizeable amount of time -- it need not be 2 seconds, perhaps, but you won't want it to vanish after the briefest amount of time either, so I don't see any ideal way to prevent this from happening. Maybe adding some on-screen instructions to the joystickrest trial is an option? E.g. "Please move the joystick to its center position now."&lt;br/&gt;&lt;br/&gt;Alternatively, you could /branch from the endincrease and enddecrease trials to a separate error feedback trial that requires joystick movement to terminate (i.e. joystick won't be in center position when that trial ends) -- from there then /branch to the joystickrest trial.&lt;br/&gt;</description><pubDate>Tue, 03 Sep 2019 09:05:40 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Adding error feedback to downloaded AAT script</title><link>https://forums.millisecond.com/Topic27707.aspx</link><description>&lt;div data-id="27706" class="if-quote-wrapper" unselectable="on" data-guid="1567523550662"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27706" 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="27706" 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="27706" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 9/3/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27706"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27705" class="if-quote-wrapper" unselectable="on" data-guid="1567523550662"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27705" 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="27705" 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="27705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;drud9876 - 9/2/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27691" class="if-quote-wrapper" unselectable="on" data-guid="1567523550662"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27691" 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="27691" 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="27691" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27691"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27689" class="if-quote-wrapper" unselectable="on" data-guid="1567523550662"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27689" 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="27689" 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="27689" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;drud9876 - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27689"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there, hoping someone can help.&lt;br/&gt;&lt;br/&gt;I've downloaded the AAT script from the website and modified it to show my images and its all working well. What I want to do now is display a message to participants saying "Incorrect" after each trial where they make an error.&lt;br/&gt;&lt;br/&gt;I've tried putting the /errormessage option in the block but this seems to mess things up a lot and doesn't work.&lt;br/&gt;&lt;br/&gt;Has anyone had any success in adding error feedback to this script?&lt;br/&gt;&lt;br/&gt;I've attached my working version of the script but I haven't made many changes to the downloaded script other than to the items and the number of stimulus categories/trial types.&lt;a class="if-quote-goto quote-link" href="#" data-id="27689"&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;If you want to display error feedback *after* each trial, can fold that into the enddecrease and endincrease &amp;lt;trial&amp;gt; elements. Something like that:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endincrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "l") {&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;} else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height + values.joystick_change/1000 * expressions.maxheightchange_px&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.endincrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial enddecrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;}else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "l"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height - values.joystick_change/1000 * expressions.maxheightchange_px;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.enddecrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = clearscreen, targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27691"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks so much for your suggestion. I've pasted in this code but it seems to have introduced a new problem.&lt;br/&gt;&lt;br/&gt;The error message is now displaying correctly but the task now seems to freeze for an inordinate amount of time at the end of each trial regardless of whether the response was correct or incorrect. It seems to only move onto the next trial when I click a button on the joystick (not sure if this is my imagination or something is going on here??)&lt;br/&gt;&lt;br/&gt;do you have any idea why this might be the case?&lt;br/&gt;&lt;br/&gt;I've attached a copy of the current code I'm using&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="27705"&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;Could you please specify what "inordinate amount of time" means? The endincrease and enddecrease trials are set to a fixed duration of 2 seconds in the code per /trialduration, and then they move to the joystickrest trial which waits for the joystick to move back to its center position before beginning the next round of trials. &lt;br/&gt;&lt;br/&gt;Based on that I can see the following scenario: In the event that the joystick was already moved into the resting position during the 2-second duration of the endincrease or enddecrease trial, the joystickrest trial will sit there and wait until something happens, e.g. joystick gets moved slightly away from the resting position and then back. Would that be in line with what you're seeing?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27706"&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;Yes that must be what is happening. Because I am definitely returning the joystick to the center within the 2 second window and then the trial gets "stuck" until I press something or move the joystick slightly.&amp;nbsp;</description><pubDate>Tue, 03 Sep 2019 08:13:26 GMT</pubDate><dc:creator>drud9876</dc:creator></item><item><title>RE: Adding error feedback to downloaded AAT script</title><link>https://forums.millisecond.com/Topic27706.aspx</link><description>&lt;div data-id="27705" class="if-quote-wrapper" unselectable="on" data-guid="1567508865516"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27705" 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="27705" 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="27705" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;drud9876 - 9/2/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27705"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27691" class="if-quote-wrapper" unselectable="on" data-guid="1567508865516"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27691" 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="27691" 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="27691" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27691"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27689" class="if-quote-wrapper" unselectable="on" data-guid="1567508865516"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27689" 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="27689" 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="27689" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;drud9876 - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27689"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there, hoping someone can help.&lt;br/&gt;&lt;br/&gt;I've downloaded the AAT script from the website and modified it to show my images and its all working well. What I want to do now is display a message to participants saying "Incorrect" after each trial where they make an error.&lt;br/&gt;&lt;br/&gt;I've tried putting the /errormessage option in the block but this seems to mess things up a lot and doesn't work.&lt;br/&gt;&lt;br/&gt;Has anyone had any success in adding error feedback to this script?&lt;br/&gt;&lt;br/&gt;I've attached my working version of the script but I haven't made many changes to the downloaded script other than to the items and the number of stimulus categories/trial types.&lt;a class="if-quote-goto quote-link" href="#" data-id="27689"&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;If you want to display error feedback *after* each trial, can fold that into the enddecrease and endincrease &amp;lt;trial&amp;gt; elements. Something like that:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endincrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "l") {&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;} else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height + values.joystick_change/1000 * expressions.maxheightchange_px&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.endincrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial enddecrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;}else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "l"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height - values.joystick_change/1000 * expressions.maxheightchange_px;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.enddecrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = clearscreen, targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27691"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks so much for your suggestion. I've pasted in this code but it seems to have introduced a new problem.&lt;br/&gt;&lt;br/&gt;The error message is now displaying correctly but the task now seems to freeze for an inordinate amount of time at the end of each trial regardless of whether the response was correct or incorrect. It seems to only move onto the next trial when I click a button on the joystick (not sure if this is my imagination or something is going on here??)&lt;br/&gt;&lt;br/&gt;do you have any idea why this might be the case?&lt;br/&gt;&lt;br/&gt;I've attached a copy of the current code I'm using&lt;br/&gt;&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="27705"&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;Could you please specify what "inordinate amount of time" means? The endincrease and enddecrease trials are set to a fixed duration of 2 seconds in the code per /trialduration, and then they move to the joystickrest trial which waits for the joystick to move back to its center position before beginning the next round of trials. &lt;br/&gt;&lt;br/&gt;Based on that I can see the following scenario: In the event that the joystick was already moved into the resting position during the 2-second duration of the endincrease or enddecrease trial, the joystickrest trial will sit there and wait until something happens, e.g. joystick gets moved slightly away from the resting position and then back. Would that be in line with what you're seeing?&lt;br/&gt;</description><pubDate>Tue, 03 Sep 2019 04:11:51 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Adding error feedback to downloaded AAT script</title><link>https://forums.millisecond.com/Topic27705.aspx</link><description>&lt;div data-id="27691" class="if-quote-wrapper" unselectable="on" data-guid="1567476581525"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27691" 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="27691" 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="27691" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27691"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27689" class="if-quote-wrapper" unselectable="on" data-guid="1567476581525"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27689" 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="27689" 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="27689" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;drud9876 - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27689"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there, hoping someone can help.&lt;br/&gt;&lt;br/&gt;I've downloaded the AAT script from the website and modified it to show my images and its all working well. What I want to do now is display a message to participants saying "Incorrect" after each trial where they make an error.&lt;br/&gt;&lt;br/&gt;I've tried putting the /errormessage option in the block but this seems to mess things up a lot and doesn't work.&lt;br/&gt;&lt;br/&gt;Has anyone had any success in adding error feedback to this script?&lt;br/&gt;&lt;br/&gt;I've attached my working version of the script but I haven't made many changes to the downloaded script other than to the items and the number of stimulus categories/trial types.&lt;a class="if-quote-goto quote-link" href="#" data-id="27689"&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;If you want to display error feedback *after* each trial, can fold that into the enddecrease and endincrease &amp;lt;trial&amp;gt; elements. Something like that:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endincrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "l") {&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;} else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height + values.joystick_change/1000 * expressions.maxheightchange_px&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.endincrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial enddecrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;}else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "l"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height - values.joystick_change/1000 * expressions.maxheightchange_px;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.enddecrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = clearscreen, targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27691"&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;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks so much for your suggestion. I've pasted in this code but it seems to have introduced a new problem.&lt;br/&gt;&lt;br/&gt;The error message is now displaying correctly but the task now seems to freeze for an inordinate amount of time at the end of each trial regardless of whether the response was correct or incorrect. It seems to only move onto the next trial when I click a button on the joystick (not sure if this is my imagination or something is going on here??)&lt;br/&gt;&lt;br/&gt;do you have any idea why this might be the case?&lt;br/&gt;&lt;br/&gt;I've attached a copy of the current code I'm using&lt;br/&gt;&lt;br/&gt;Thanks!</description><pubDate>Mon, 02 Sep 2019 19:11:48 GMT</pubDate><dc:creator>drud9876</dc:creator></item><item><title>RE: Adding error feedback to downloaded AAT script</title><link>https://forums.millisecond.com/Topic27697.aspx</link><description>&lt;div data-id="27691" class="if-quote-wrapper" unselectable="on" data-guid="1567089213105"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27691" 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="27691" 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="27691" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27691"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27689" class="if-quote-wrapper" unselectable="on" data-guid="1567089213105"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27689" 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="27689" 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="27689" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;drud9876 - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27689"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there, hoping someone can help.&lt;br/&gt;&lt;br/&gt;I've downloaded the AAT script from the website and modified it to show my images and its all working well. What I want to do now is display a message to participants saying "Incorrect" after each trial where they make an error.&lt;br/&gt;&lt;br/&gt;I've tried putting the /errormessage option in the block but this seems to mess things up a lot and doesn't work.&lt;br/&gt;&lt;br/&gt;Has anyone had any success in adding error feedback to this script?&lt;br/&gt;&lt;br/&gt;I've attached my working version of the script but I haven't made many changes to the downloaded script other than to the items and the number of stimulus categories/trial types.&lt;a class="if-quote-goto quote-link" href="#" data-id="27689"&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;If you want to display error feedback *after* each trial, can fold that into the enddecrease and endincrease &amp;lt;trial&amp;gt; elements. Something like that:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endincrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "l") {&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;} else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height + values.joystick_change/1000 * expressions.maxheightchange_px&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.endincrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial enddecrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;}else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "l"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height - values.joystick_change/1000 * expressions.maxheightchange_px;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.enddecrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = clearscreen, targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27691"&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;Note that the above would give feedback based on the final response. If you want to give feedback based on the initial response, i.e. whether the direction the participant initially moved the joystick in was wrong, do the same based on values.correct. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endincrease&amp;gt;&lt;br/&gt;&lt;strong&gt;/ ontrialbegin = [&lt;br/&gt;if (!values.correct) {&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height + values.joystick_change/1000 * expressions.maxheightchange_px&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.endincrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial enddecrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;}else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "l"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height - values.joystick_change/1000 * expressions.maxheightchange_px;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.enddecrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = clearscreen, targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 29 Aug 2019 07:35:34 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Adding error feedback to downloaded AAT script</title><link>https://forums.millisecond.com/Topic27691.aspx</link><description>&lt;div data-id="27689" class="if-quote-wrapper" unselectable="on" data-guid="1567079885957"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27689" 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="27689" 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="27689" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;drud9876 - 8/29/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27689"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there, hoping someone can help.&lt;br/&gt;&lt;br/&gt;I've downloaded the AAT script from the website and modified it to show my images and its all working well. What I want to do now is display a message to participants saying "Incorrect" after each trial where they make an error.&lt;br/&gt;&lt;br/&gt;I've tried putting the /errormessage option in the block but this seems to mess things up a lot and doesn't work.&lt;br/&gt;&lt;br/&gt;Has anyone had any success in adding error feedback to this script?&lt;br/&gt;&lt;br/&gt;I've attached my working version of the script but I haven't made many changes to the downloaded script other than to the items and the number of stimulus categories/trial types.&lt;a class="if-quote-goto quote-link" href="#" data-id="27689"&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;If you want to display error feedback *after* each trial, can fold that into the enddecrease and endincrease &amp;lt;trial&amp;gt; elements. Something like that:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endincrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "l") {&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;} else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.endincrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height + values.joystick_change/1000 * expressions.maxheightchange_px&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.endincrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial enddecrease&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;if (values.expcondition == 1 &amp;amp;&amp;amp; values.targetformat == "p"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;}else if (values.expcondition == 2 &amp;amp;&amp;amp; values.targetformat == "l"){&lt;br/&gt;trial.enddecrease.insertstimulustime(text.error, 0);&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;picture.targetstimulus.height = picture.targetstimulus.height - values.joystick_change/1000 * expressions.maxheightchange_px;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;trial.enddecrease.resetstimulusframes();&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = clearscreen, targetstimulus]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ branch = [trial.joystickrest]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 29 Aug 2019 05:07:28 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>