﻿<?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  » Terminate Experiment After Elapsed Time X</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 12 Sep 2026 00:34:48 GMT</lastBuildDate><ttl>20</ttl><item><title>Terminate Experiment After Elapsed Time X</title><link>https://forums.millisecond.com/Topic15560.aspx</link><description>Hey Inquisiters,&lt;br/&gt;I'm trying to have my experiment terminate itself after expt.name.elapsedtime becomes &amp;gt; a certain duration. &amp;nbsp;I tried doing the following.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial&amp;gt;&lt;br/&gt;...&lt;br/&gt;/branch = [if (expt.myexpt.elapsedtime &amp;lt; 810000) block.theblock)]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;exp myexptt&amp;gt;&lt;br/&gt;/blocks [1 = theblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;This is giving me the error that block.theblock is the wrong element type. &amp;nbsp;I suspect that is because I am trying to branch to a block from a trial? &amp;nbsp;I have to code my experiment this way b/c my trials refresh on each button press (fills a bar). &amp;nbsp;So I have blocks as my "trials". &amp;nbsp;Is there a way to 'break' the experiment with a certain command or to branch to a block from a trial? &amp;nbsp;Maybe there is something I am missing.&lt;br/&gt;&lt;br/&gt;Thanks for your time,&lt;br/&gt;Dan&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 19 Feb 2015 13:52:15 GMT</pubDate><dc:creator>DCole9</dc:creator></item><item><title>RE: Terminate Experiment After Elapsed Time X</title><link>https://forums.millisecond.com/Topic15563.aspx</link><description>Thanks for the response Dave. &amp;nbsp;/stop seems suitable for me. &amp;nbsp;</description><pubDate>Thu, 19 Feb 2015 13:52:15 GMT</pubDate><dc:creator>DCole9</dc:creator></item><item><title>RE: Terminate Experiment After Elapsed Time X</title><link>https://forums.millisecond.com/Topic15562.aspx</link><description>&amp;lt;trial&amp;gt;&lt;br/&gt;...&lt;br/&gt;&lt;strong&gt;/branch = [if (expt.myexpt.elapsedtime &amp;lt; 810000) block.theblock)]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;You cannot branch from a trial to a block. Branches must be at the same level, i.e. a trial can branch to another trial, a block can branch to another block.&lt;br/&gt;&lt;br/&gt;The /stop attribute will *not* interrupt the currently running trial. It will only kick in once the trial terminates.&lt;br/&gt;&lt;br/&gt;If you want a *hard* interrupt, use the /timeout attribute.&lt;br/&gt;</description><pubDate>Thu, 19 Feb 2015 13:51:03 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Terminate Experiment After Elapsed Time X</title><link>https://forums.millisecond.com/Topic15561.aspx</link><description>I discovered the stop command--- seems to work well. &amp;nbsp;I was testing it in my experiment section and set it to stop the experiment after just 1 second. &amp;nbsp;However I noticed that the experiment continues well beyond one second. &amp;nbsp;Does it always finish the current block/trial/etc. before it terminates?</description><pubDate>Thu, 19 Feb 2015 13:31:53 GMT</pubDate><dc:creator>DCole9</dc:creator></item></channel></rss>