﻿<?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  » Avoiding False Collects on the BART</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 25 Sep 2026 22:49:11 GMT</lastBuildDate><ttl>20</ttl><item><title>Avoiding False Collects on the BART</title><link>https://forums.millisecond.com/Topic9701.aspx</link><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm using the Balloon Analogue Risk Task (BART) template from the Inquisit Task Library, but I'm having a problem with it - if a participant presses Collect twice in a row (which is easy to do by accident), then they are recorded as having made zero button presses for that balloon, which artificially drags down the adjusted average (as the balloon is not considered to have exploded either).&lt;/p&gt;
&lt;p&gt;I'd like to modify the template so that the Collect button cannot be pressed until the Pump button has been pressed at least once on each balloon, but I'm having difficulty with this (my solutions have mostly involved the / validresponse expression but if it considers every Collect press to be invalid then it breaks the program).&lt;/p&gt;
&lt;p&gt;Does anybody know of a solution to this problem?&lt;/p&gt;
&lt;p&gt;Thank-you for your time,&lt;/p&gt;
&lt;p&gt;James&lt;/p&gt;</description><pubDate>Sun, 15 Jun 2014 19:36:11 GMT</pubDate><dc:creator>JDC</dc:creator></item><item><title>RE: Avoiding False Collects on the BART</title><link>https://forums.millisecond.com/Topic13555.aspx</link><description>&lt;p&gt;Thanks for your help :)&lt;/p&gt;</description><pubDate>Sun, 15 Jun 2014 19:36:11 GMT</pubDate><dc:creator>RH</dc:creator></item><item><title>RE: Avoiding False Collects on the BART</title><link>https://forums.millisecond.com/Topic13552.aspx</link><description>As the post says, you add it somewhere in &amp;lt;trial choice&amp;gt;. Exactly where does not matter in this case, but I would put it in the vicinity of / below the existing /validresponse attribute.&lt;br/&gt;</description><pubDate>Sun, 15 Jun 2014 16:19:19 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Avoiding False Collects on the BART</title><link>https://forums.millisecond.com/Topic13551.aspx</link><description>Hi Dave,&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;This is great advice. When inserting this into the script where would you put it? (I am sorry if this is really obvious it is my first time working with a program like this).&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial choice&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.countchoice += 1]&lt;br/&gt;/ ontrialbegin = [values.pumpresult = list.pumpresult.nextvalue]&lt;/div&gt;&lt;div&gt;/ontrialbegin = [if (values.pumpsound == 1) trial.choice.insertstimulustime(sound.inflatesound,0)]&lt;br/&gt;/ontrialbegin = [values.pumpsound = 0]&lt;/div&gt;&lt;div&gt;/ stimulustimes = [1=collectbutton, balloon, pumpbutton, totalearnings, pumpcount, potentialearnings, ballooncount]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (collectbutton, pumpbutton)&lt;br/&gt;/ monkeyresponse = ("collectbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton", "pumpbutton")&lt;/div&gt;&lt;div&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton" &amp;amp;&amp;amp; values.countchoice == 1) &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.timebefore1stpump = trial.choice.latency ]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton"&amp;nbsp; &amp;amp;&amp;amp; values.countchoice &amp;gt; 1) &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{values.timebtwpumps = trial.choice.latency; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.sum_timebtwpumps += values.timebtwpumps }]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "collectbutton" &amp;amp;&amp;amp; values.countchoice == 1) &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.timebeforecollectwithoutpump =&amp;nbsp; trial.choice.latency ]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "collectbutton" &amp;amp;&amp;amp; values.countchoice &amp;gt; 1) &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.timebtwlastpumpandcollect =&amp;nbsp; trial.choice.latency ]&lt;/div&gt;&lt;div&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton") picture.balloon.width += values.balloonsizeincrement]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton")picture.balloon.height += values.balloonsizeincrement]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton")shape.blank.width = picture.balloon.width]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton")shape.blank.height = picture.balloon.height]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton")values.pumpcount += 1]&lt;/div&gt;&lt;div&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton")values.totalpumpcount += 1]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton" &amp;amp;&amp;amp; values.ballooncount &amp;lt; 11) values.totalpumpcount_10 += 1]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton" &amp;amp;&amp;amp; values.ballooncount &amp;gt; 10 &amp;amp;&amp;amp; values.ballooncount &amp;lt;21 ) values.totalpumpcount_20 += 1]&lt;br/&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton" &amp;amp;&amp;amp; values.ballooncount &amp;gt; 20 &amp;amp;&amp;amp; values.ballooncount &amp;lt;31 ) values.totalpumpcount_30 += 1]&lt;/div&gt;&lt;div&gt;/ ontrialend = [if (trial.choice.response == "pumpbutton" &amp;amp;&amp;amp; values.pumpcount &amp;gt;1) values.mean_timebtwpumps = values.sum_timebtwpumps / (values.pumpcount-1) ]&lt;/div&gt;&lt;div&gt;/ontrialend = [trial.choice.resetstimulusframes()]&lt;br/&gt;&amp;nbsp;&lt;br/&gt;/ branch = [if (values.pumpresult == 1 &amp;amp;&amp;amp; trial.choice.response == "pumpbutton") trial.pop]&lt;br/&gt;/ branch = [if ( trial.choice.response == "pumpbutton") {values.pumpsound = 1; trial.choice}]&lt;br/&gt;/ branch = [if ( trial.choice.response == "collectbutton") trial.collect]&lt;/div&gt;&lt;div&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Thank you,&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Rachel&lt;br/&gt;&lt;/div&gt;</description><pubDate>Sun, 15 Jun 2014 15:45:13 GMT</pubDate><dc:creator>RH</dc:creator></item><item><title>RE: Avoiding False Collects on the BART</title><link>https://forums.millisecond.com/Topic9718.aspx</link><description>&lt;p&gt;Excellent, thanks very much for your help Dave, that worked perfectly!&lt;/p&gt;
&lt;p&gt;- James&lt;/p&gt;</description><pubDate>Wed, 20 Feb 2013 21:56:08 GMT</pubDate><dc:creator>JDC</dc:creator></item><item><title>RE: Avoiding False Collects on the BART</title><link>https://forums.millisecond.com/Topic9703.aspx</link><description>&lt;p&gt;You could add&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;/ isvalidresponse = [values.pumpcount&amp;lt;1 &amp;amp;&amp;amp; trial.choice.response=="pumpbutton"]&lt;br /&gt;/ isvalidresponse = [values.pumpcount&amp;gt;=1 &amp;amp;&amp;amp; trial.choice.response=="pumpbutton"]&lt;br /&gt;/ isvalidresponse = [values.pumpcount&amp;gt;=1 &amp;amp;&amp;amp; trial.choice.response=="collectbutton"]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;to &amp;lt;trial choice&amp;gt;, which will basically disable the collectbutton for the 1st pump trial. I.e., subjects have to pump at least *once* before they can collect.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Tue, 19 Feb 2013 15:21:18 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>