﻿<?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  » Batch prematurely aborts after probablilistic reversal learning task</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 10 Sep 2026 20:28:16 GMT</lastBuildDate><ttl>20</ttl><item><title>Batch prematurely aborts after probablilistic reversal learning task</title><link>https://forums.millisecond.com/Topic26941.aspx</link><description>Dear all,&lt;br/&gt;&lt;br/&gt;i have a Batch with a couple of tasks (Iowa Gambling Task, Probabilistic Reversal learning Task, Food Go No Go) and a couple of questionnaires.&lt;br/&gt;The problem is now that whenever the batch comes to the PRL, it lets the task finish, but doesnt go to the next questionnaire in line. It doesnt matter on which position i put the PRL, the batch stops at the end of that task. If I put the PRL at the far end of the batch, i experience no problems with the whole batch. I need to put the PRL on second place however,&amp;nbsp;&lt;br/&gt;Does anyone have an idea what the problem might be here?&lt;br/&gt;&lt;br/&gt;Thanks so much in advance!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sabrina</description><pubDate>Fri, 10 May 2019 23:20:34 GMT</pubDate><dc:creator>SabRV</dc:creator></item><item><title /><link>https://forums.millisecond.com/Topic26945.aspx</link><description>Thank you so so much Dave!!!</description><pubDate>Fri, 10 May 2019 23:20:34 GMT</pubDate><dc:creator>SabRV</dc:creator></item><item><title>RE: Batch prematurely aborts after probablilistic reversal learning task</title><link>https://forums.millisecond.com/Topic26942.aspx</link><description>&lt;div data-id="26941" class="if-quote-wrapper" unselectable="on" data-guid="1557491983430"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26941" 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="26941" 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="26941" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;SabRV - Friday, May 10, 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-26941"&gt;&lt;div class="if-quote-message-margin"&gt;Dear all,&lt;br/&gt;&lt;br/&gt;i have a Batch with a couple of tasks (Iowa Gambling Task, Probabilistic Reversal learning Task, Food Go No Go) and a couple of questionnaires.&lt;br/&gt;The problem is now that whenever the batch comes to the PRL, it lets the task finish, but doesnt go to the next questionnaire in line. It doesnt matter on which position i put the PRL, the batch stops at the end of that task. If I put the PRL at the far end of the batch, i experience no problems with the whole batch. I need to put the PRL on second place however,&amp;nbsp;&lt;br/&gt;Does anyone have an idea what the problem might be here?&lt;br/&gt;&lt;br/&gt;Thanks so much in advance!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sabrina&lt;a class="if-quote-goto quote-link" href="#" data-id="26941"&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;The PRL has various abort conditions, which lead to &amp;lt;block abortTask&amp;gt; being run. In that &amp;lt;block&amp;gt;, the script.abort() function is called.&lt;br/&gt;&lt;br/&gt;&amp;lt;block abortTask&amp;gt;&lt;br/&gt;/ trials = [1 = finish]&lt;br/&gt;/ onblockend = [&lt;br/&gt;values.abort = 1;&lt;br/&gt;&lt;strong&gt;script.abort();&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;By default, the abort() function will terminate not only the currently running script, but also the entire &amp;lt;batch&amp;gt; if the script is being run by a &amp;lt;batch&amp;gt;. To avoid this, change the above &amp;lt;block&amp;gt; to&lt;br/&gt;&lt;br/&gt;&amp;lt;block abortTask&amp;gt;&lt;br/&gt;/ trials = [1 = finish]&lt;br/&gt;/ onblockend = [&lt;br/&gt;values.abort = 1;&lt;br/&gt;&lt;strong&gt;script.abort(false);&lt;/strong&gt;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;which will only terminate the PRL, but not the overall &amp;lt;batch&amp;gt;.&lt;br/&gt;</description><pubDate>Fri, 10 May 2019 05:47:07 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>